Game Development Community

Commands

by David Taylor · in Torque Game Engine · 03/16/2006 (9:28 pm) · 1 replies

I'm going through the tutorial supplied with the Torque Game Engine, and I'm currently working through the GUI aspect of it. In the GUI editor, I've added some buttons, but I only know two commands - loadMyMission(); and quit();. Is there a comprehensive list to be found somewhere that I can refer to? What I specifically want to do for now, is to click on a button and have a new gui generate - as in, a new background, with new buttons, etc - a new menu, as it were.

Can anyone either give me the specific command for performing such a command, or at least point me in the correct direction?

#1
03/18/2006 (7:08 pm)
Canvas.setContent(myGui);"; //set a new gui
Canvas.pushDialog(myDlg);"; //push a new gui over the top of an existing one
Canvas.popDialog(myDlg); //remove the gui you pushed with above command
Canvas.add(myGui); //add a new instance of a gui
Canvas.remove(myGui); //remove an instance of a gui
myGui.Visible = 1; //set a gui to be visible
myGui.Visible = 0; //set a gui to not be visible

There are resources and tutorials on gui's on this site, use the search bar and you will find what you are looking for.