GUI profiles documentation?
by Gustavo Boni · in Torque Game Builder · 02/08/2007 (7:35 pm) · 7 replies
Hi, where can i find GUI profiles documentation? I searched a lot but couldnt find anything usefull. I'd like to have a document explaining how to create one and how the fields each profile will accept. Is it exists?
Thanks.
Thanks.
#2
Now i understand why many guys create your GUIs using the sceneWindow.
02/09/2007 (4:18 am)
Thank you Willian, nice tip!Now i understand why many guys create your GUIs using the sceneWindow.
#4
02/10/2007 (5:36 am)
Thanks Thomas!
#5
I am presently working on a tool to help people understand what each of the member fields does to the GuiControl they are working with.
02/13/2007 (3:17 pm)
I recently prepared this reference to GuiControlProfile. It discusses the class, the default values for the (46!) member fields, and has a relatively complete list of the (>110!) instances of this class bundled with TGB, along with the particular GuiControl classes that use them.I am presently working on a tool to help people understand what each of the member fields does to the GuiControl they are working with.
#6
02/13/2007 (6:43 pm)
Great work, Evan.
#7
I have posted the work I refered to in my post of Feb 13: it is the Gui Learning Project, and will be the vehicle for understanding the member fields of GuiControlProfile, as I mentioned.
In the meantime, please have a look at it and give me feedback.
02/16/2007 (2:28 pm)
Thanks, Thomas!I have posted the work I refered to in my post of Feb 13: it is the Gui Learning Project, and will be the vehicle for understanding the member fields of GuiControlProfile, as I mentioned.
In the meantime, please have a look at it and give me feedback.
Associate William Lee Sims
Machine Code Games
The main problem is that there is only one GuiControlProfile class, not one per GUI control type. Often, in order to see what a GUI needs, I look through the source code. For example, you'll see in GuiButtonControl::onRender that it uses mProfile->mFillColorHL for depressed butons and mProfile->mFillColor otherwise.
Then, looking through GuiControlProfile::initPersistFields, I see that mFillColorHL is mapped to fillColorHL and mFillColor is mapped to fillColor. (In general, "mXYZ" is mapped to "xYZ", with only font colors differing from this.)
Unfortunately, it's really up to each GUI Control type to define how each variable in the GuiControlProfile is used.