gui rollout menu
by Louis Marchant · in Torque 3D Beginner · 10/20/2012 (9:10 am) · 3 replies
so i am trying to make a menu that rolls out upwards, then each selection within it further rolls out into a set of icons, sideways.(not dissimilar to win 9x start menu i guess) illustrated by the picture below :

now i have seen the guirolloutmenu controls , which would be a start, except they only roll down, and to be brutally honest i'm struggling to get anything to display when you click on one
any help appreciated, thanks :)

now i have seen the guirolloutmenu controls , which would be a start, except they only roll down, and to be brutally honest i'm struggling to get anything to display when you click on one
any help appreciated, thanks :)
About the author
#2
you may just have to set it up manually and dynamically change the category's in script
e.g. set up your gui something like this (in tree view)
(GuiButtonCtrl)MENU
(GuiContainer)Cats
(GuiButtonCtrl)Cat1
(GuiContainer)Icons1
(GuiBitmapButtonCtrl)Icon11
(GuiBitmapButtonCtrl)Icon12
(GuiBitmapButtonCtrl)Icon1..
(GuiButtonCtrl)Cat2
(GuiContainer)Icons2
(GuiBitmapButtonCtrl)Icon21
(GuiBitmapButtonCtrl)Icon22
(GuiBitmapButtonCtrl)Icon2..
(GuiButtonCtrl)Cat...
etc.
you will need to control the visible field in the containers to show/hide the menu items & Icons by hooking script to the command field and putting
cats.visible = ! cats.visible
and
Icons1.visible = ! Icons1.visible
similarly
Icon11.visible = ! Icon11.visible
to hide specific icons.
I know this takes a bit more work than just having a control but the advantage is you can setup the buttons/Icons/Containers anywhere you want and remember containers are your friends
Hope this helps :-)
10/23/2012 (4:18 pm)
Have had a quick play with GuiRolloutCtrl and it dosn't look like this will do what you require sorry :-(you may just have to set it up manually and dynamically change the category's in script
e.g. set up your gui something like this (in tree view)
(GuiButtonCtrl)MENU
(GuiContainer)Cats
(GuiButtonCtrl)Cat1
(GuiContainer)Icons1
(GuiBitmapButtonCtrl)Icon11
(GuiBitmapButtonCtrl)Icon12
(GuiBitmapButtonCtrl)Icon1..
(GuiButtonCtrl)Cat2
(GuiContainer)Icons2
(GuiBitmapButtonCtrl)Icon21
(GuiBitmapButtonCtrl)Icon22
(GuiBitmapButtonCtrl)Icon2..
(GuiButtonCtrl)Cat...
etc.
you will need to control the visible field in the containers to show/hide the menu items & Icons by hooking script to the command field and putting
cats.visible = ! cats.visible
and
Icons1.visible = ! Icons1.visible
similarly
Icon11.visible = ! Icon11.visible
to hide specific icons.
I know this takes a bit more work than just having a control but the advantage is you can setup the buttons/Icons/Containers anywhere you want and remember containers are your friends
Hope this helps :-)
#3
lacks the smooth rollout, but does the job just fine.
thanks for confirming the GUI editor doesnt allow what i wanted, so i'll stick with what i've done.
10/24/2012 (8:23 am)
yea thats pretty much what i had done in the meantime. jsut made a menu button which hides/shows a container, containing the categories. and a clicking on one of them shows a container with it's icons, and hides all the other icon containers.lacks the smooth rollout, but does the job just fine.
thanks for confirming the GUI editor doesnt allow what i wanted, so i'll stick with what i've done.
Louis Marchant