Game Development Community

MIA: GUI Reference Doc

by Kevin James · in Torque Game Builder · 07/23/2006 (1:12 pm) · 8 replies

Alright. I've been altering the GUI through scripts recently and have had a fun time guessing at what functions I need to use to manipulate different GuiControls. As an example, SetExtent is used instead of SetSize for GuiCtrls. The TGB Team has done an excellent job with all the tutorials and references and maybe I'm just missing the Gui Reference Doc or anything that will help with it. Please let me know whether you think this is a good idea, or if I'm blind as a bat.

About the author

Hobbyist game developer -- free and open source games FTW.


#1
07/23/2006 (2:07 pm)
There has been a lot of beefing up of GUI tutorials in the TGB mini tutorial section.

tdn.garagegames.com/wiki/TGB/MiniTutorials
#2
07/23/2006 (4:12 pm)
Those mini tuts are real useful but I have to agree where is the documentation for GUI.

all I want is a PDF of all the controls and what they are and any methods they have etc.

I am totally lost what controls I should use to display my league information in.
#3
07/23/2006 (5:59 pm)
Hey, thanks Ben, these should help out.

What I think the TGB Team should add to Torque 2D is exactly what Darren said. . .A PDF with the actual controls, their methods, and callbacks (if they exist). Maybe make the already 330pg TGB Reference even BIGGER

Muwhahaha! Think of the possiblites!
#4
07/24/2006 (3:45 pm)
We're thinking the exact same thing :) In fact earlier last week I managed to squeeze some time to get GuiCanvas and GuiControl in the TGBReference.pdf though haven't had a chance to add all of the sub controls, this should give you at least a good universal reference for GUI controls. Look for the new reference with those two in it in the next release, no promises yet on the rest of the controls... hopefully those Mini Tutorials will help and we can get some more fo the advanced controls tutorialed.
#5
07/24/2006 (6:16 pm)
Nice! That is certainly better than guessing at the functions!
#6
07/24/2006 (7:01 pm)
Most valuable tool right now... and I even use it usually rather than opening the huge reference... is the .dump() command. This is attached to every Torque object and it will list all of the fields and methods of the object.

So just create a GUIControl of the type you want and give it a name, like test... then do

test.dump();

In the console... the definitions usually are decent enough and the names usually are obvious enough, how I learned the GUI system :)
#7
07/25/2006 (5:55 am)
Ah, very nice indeed! I will definetly put that command into practice! Thanks Matt! ^_^
#8
10/08/2009 (5:48 pm)
Is everything in TGB applicable to TGEA, especially concerning the gui editor?