Game Development Community

Need Help About TGB1.5 Gui Builder

by Phua · in Torque Game Builder · 10/08/2007 (10:49 pm) · 5 replies

How do I use the Gui Builder in TGB1.5, I feel that different from TGB1.2 where last time I can place the textbox, button..etc to the game area easily by access the Gui Builder then select the "mainScreenGui" in TGB1.2. But I could not see "mainScreenGui" in TGB1.5. Please guide. Thanks

#1
10/09/2007 (8:59 am)
I was just wondering the same exact thing last night and was going to ask about it this morning. I am trying to learn the GUI portion but was wondering how to add GUI components to my main screen. I know it's possible because the Behavior Tutorial accidentally had a button on the main screen.

Hmmm, maybe take a look at the Behavior Tutorial to see how they did it. Maybe you need to add a new component called "mainScreenGui". Well, I'm glad you asked because if no one answers, you have at least made me realize some ideas to try tonight when I'm back on my TGB computer.
#2
10/09/2007 (3:11 pm)
Thanks to your post, I got it figured out.

Once you are in the GUI Editor, go to "File/Open GUI" and load the 'mainScreen.gui' file. The file is located in your game directory under "game\gui". After loading the file, "mainScreenGui" is added to the list. From here, you can edit the layout and your changes will be reflected on the main screen when you run.
#3
10/09/2007 (8:56 pm)
Thank you for your great help :) Base what you have post I can now get some idea of it!

However one thing I still not comfortable that is last time when I use TGB1.2, I can select a Gui component like button or text box, then it will auto appear on the gui editor screen for me to position where I want to put. But in TGB1.5, I need to go to to the mainScreen.gui to type the Gui script (e.g. new GuiButtonCtrl() ..etc) in the file in order to create a button. Even it is not difficult to do by typing those gui script, but feel that missing that old features in TGB Gui Builder.
#4
10/09/2007 (11:48 pm)
You can add buttons, text, etc., by clicking on "Toggle Palette". This brings up a common list of controls, or you can click on the "All" tab to display all of the possible controls. Click and drag a control onto the screen. From there, you can resize and edit values relating to the control.

Be sure to save "mainScreen.gui" when you are done.
#5
10/17/2007 (1:58 am)
Oh I C...Now I get it, I also not realize the feature still in TGB1.5. It is very great help, thank you very much!!:)