Link gui menus together
by Allan Seguin · in Game Design and Creative Issues · 04/09/2008 (1:13 am) · 5 replies
Ok I have a "title page" logo and a button on the title page "play game" i want to link it to the main menu page i have no idea what the command i need to put in the command box would be...
Allan
Allan
#2
to get to my start gui
thanks for the help
04/16/2008 (10:19 pm)
Well have your heads up i tried that an but i now use a command Canvas.pushDialog(StartGui);to get to my start gui
thanks for the help
#3
"Canvas.setContent(MainMenuGui);";
to get back to the Main Menu GUi
04/16/2008 (10:29 pm)
You know just after i tried the command i had to use the command you sugeested "Canvas.setContent(MainMenuGui);";
to get back to the Main Menu GUi
#4
04/17/2008 (12:07 am)
Quite simply, you are invoking the gui you want to run. It's pretty straightforward once you get familiar with all the components.
#5
04/17/2008 (8:37 am)
That is true and since i am the offical face of n00b LOL its a little hard for me now i just need the ggslpashscreens to work
Torque Owner Lee Latham
Default Studio Name
I use a couple different things for that button:
new GuiBitmapButtonCtrl(single) { canSaveDynamicFields = "0"; Profile = "GuiButtonProfile"; HorizSizing = "relative"; VertSizing = "relative"; position = "500 615"; Extent = "236 186"; MinExtent = "8 8"; canSave = "1"; Visible = "1"; Command = "Canvas.setContent(startMissionGui);"; hovertime = "1000"; text = "Host Game/Edit Level"; groupNum = "-1"; buttonType = "PushButton"; bitmap = "./single.png"; }; new GuiBitmapButtonCtrl(joinserver) { canSaveDynamicFields = "0"; Profile = "GuiButtonProfile"; HorizSizing = "relative"; VertSizing = "relative"; position = "80 478"; Extent = "498 134"; MinExtent = "8 8"; canSave = "1"; Visible = "1"; Command = "Canvas.setContent(JoinServerGui);"; // uncomment this for nondemo (and remove this comment :-) // Command = "joinserver::onSelect();"; hovertime = "1000"; groupNum = "-1"; buttonType = "PushButton"; bitmap = "./online.png"; };The key thing is the Command field. You'll see for the "single" button it has one command, and for "joinserver" two other options. Probably you want the option my "single" button uses. But you might not :-)
Hopefully this will get you at least pointed in the right direction.