Problem with StartupGui
by Shook · in Torque Game Engine · 12/17/2004 (7:59 pm) · 3 replies
I can't figure out why my StartupGui won't load. All other GUIs are fine, but the game skips past the StartupGui to the main menu GUI.
Please let me know if I've got this straight:
I load/initialize StartupGui with all the rest of my GUIs in my Game/main.cs in function initClient() like so:
All other GUIs load fine. Where else might I need to specify or qualify the StartupGui?
The startupGui itself is just the default fps.starter StartupGui with the GarageGames logo. I haven't edited the StartupGui.gui file. I did make sure that both StartupGui.gui and the garagegames.jpg are in the ui directory.
I know initClient() is in game/client/init.cs in the fps.starter instead of games/Main.cs like it is in mine, but that shouldn't matter... right?
Thanks in advanced. :)
Please let me know if I've got this straight:
I load/initialize StartupGui with all the rest of my GUIs in my Game/main.cs in function initClient() like so:
initCanvas("Game");
// Load up the shell and game GUIs
exec("./client/ui/StartupGui.gui");
exec("./client/ui/PlayGui.gui");
exec("./client/ui/mainMenuGui.gui");
exec("./client/ui/loadingGui.gui");
exec("./client/ui/optionsDlg.gui");
exec("./client/ui/remapDlg.gui");All other GUIs load fine. Where else might I need to specify or qualify the StartupGui?
The startupGui itself is just the default fps.starter StartupGui with the GarageGames logo. I haven't edited the StartupGui.gui file. I did make sure that both StartupGui.gui and the garagegames.jpg are in the ui directory.
I know initClient() is in game/client/init.cs in the fps.starter instead of games/Main.cs like it is in mine, but that shouldn't matter... right?
Thanks in advanced. :)
#2
Canvas.pushDialog(StartupGui);
You can then remove it very easily later (possibly scheduled) with
Canvas.popDialog(StartupGui);
12/19/2004 (7:29 am)
Or in this particular case, it might make more sense (since this is a temporary GUI that you know you will be no longer showing in just a short time) to use:Canvas.pushDialog(StartupGui);
You can then remove it very easily later (possibly scheduled) with
Canvas.popDialog(StartupGui);
#3
this line loadstartup();
12/19/2004 (10:58 am)
The startup Gui launches default from client/init.csthis line loadstartup();
Torque Owner Davide Archetti
Default Studio Name