Game Development Community

New GUIs not showing up in GUI list.

by Clark Kromenaker · in Torque Game Engine · 08/19/2005 (6:29 pm) · 3 replies

Hi,

After making my way at least a bit through that huge Torque learning curve, I started building a little game. I created a new GUI called "PlayerOpts". Now, when in the GUI editor, all the GUIs the game uses are in that center pulldown menu at the top of the screen. However, if I exit the game and come back later to edit my new "PlayerOpts" GUI, it is not listed. I checked the directory and the file is there, its just not showing up. So, is there something I'm forgetting to do? I would suppose I have to add the GUI name/location to one of the scripts, but I haven't got a clue which one.

#1
08/19/2005 (7:05 pm)
In the client file there should be a file called init.cs

make sure you exec the GUI file (i am assuming its called PlayerOpts.gui) in init.cs
It should go something like this:

exec("./ui/PlayerOpts.gui");

put that with the rest of the commands like it
#2
08/19/2005 (7:15 pm)
If you are using Starter.fps: you need to add
exec("./ui/PlayerOpts.gui");
to the /client /init.cs.



edit: LOL... we posted at the same time
#3
09/01/2005 (10:07 am)
Thanks, it worked perfectly.