Game Development Community

Two main screen gui's

by Nir Ziso · in Torque Game Builder · 10/31/2006 (1:53 pm) · 3 replies

In my game there are some kind of game's so i have to push different main screen gui for those games
What I'm doing now is changing the position the text and the bitmap of my gui controllers

I'm looking for another way to do it something like have 2 different mainscreen gui's
How can i do it?

#1
10/31/2006 (3:27 pm)
MainScreenGui is a named guiControl, so you can't have two. You can, however, create another guiControl with a different name that has a t2dSceneWindow inside it (obviously named something other than SceneWindow2D, since that's the name of the t2dSceneWindow in MainScreenGui).

You can actually copy MainScreen.gui and just change those two names to something else and use it exactly how you would expect to - push it to the canvas and load a level into the second t2dSceneWindow. In fact, you can even create t2dSceneWindows on the fly via script and push them to the canvas/load levels to them/etc.
#2
10/31/2006 (9:25 pm)
Thanks alot for your help
#3
11/04/2006 (4:46 am)
Or you can play visible / not on your gui control in the mainscreengui