Game Development Community

GUI Builder loses GUIs

by baylor wetzel · in Torque Game Builder · 07/04/2006 (12:24 pm) · 2 replies

I've been having this problem since i started. When i save a GUI, exit and come back, the GUI i saved is not listed as an option in the GUI Builder (second drop down). Since there's no Open GUI, i can't ever get back to the GUI

i see the GUI in the appropriate gui folder and i can load it in the game via exec("~/gui/xyz.gui"); but the GUI editor can't see it and so i can't edit it

This is intermittent. i had to create the Whack-A-Mole GUI four times and at some point (after deleting every DSO i could find and making sacrifices to several gods) all four showed up in the list (all with identical names)

i've also had some flakiness with the GUIChunkedBitmap. The bitmap property always opens a dialog box but the filter on the box is sometimes All Files and sometimes *.t2d files. If i exit and come back (and the menu still exists) it normally works

So my question - how does the middle drop down for opening menus know which menus exist? If i can figure that out, maybe i can hack it to make it recognize the GUIs i built

#1
07/05/2006 (2:00 pm)
If you dont exec it , it wont show up , so each GUI file you create you want to edit again, you'll need to make sure its getting exec'd before your startGame() function. I normally put these in an exec.cs file, then load that from initializeProject()
#2
07/05/2006 (4:59 pm)
Wow, that works like a charm. i've exited and entered several times just to be sure (it was intermittent) and it works consistently now. i never would have guessed that solution. Thanks!