Game Development Community

Radial Menu GUI

by Nathan Bowhay - ESAL · in Torque Game Engine · 06/15/2006 (1:19 pm) · 0 replies

My Name is Nathan and I am working on a project through my school. My job is to take care of all the GUI stuff for our game. I was think of doing a radial menu and I see that Ted and others were already (back in 2004) were talking about that. I was wondering if anyone had any suggestions or sample code to help me out with that.

Note: GUI controller (C++)

I had two ideas:
1) I though of extending from a guiMenuBar.cc and taking some visual functionality out of one of the bitMapCtrl controllers. I could just take the menu bar and for each item in it instead of opening a drop-down menu open a new radial menu GUI. Also make the appearance circular instead of straight and have it create the GUI object on a key press by the mouse position.
2) Extending from bitMapButtonCtr and making it follow the mouse. Use a circlular image and just put say 4 of them togeather as one GUI. when the player pressed a key the GUI would apear by his mouse.

I like the first one because it is one object and you could specify as many menu options as you want (almost), but the second seems easier.

Please, tell me any thoughts about this and if you have already made one, if you would be willing to share any code.

Thank you in advance,
Nathan