GUI programming
by kcpdad · in Torque Game Engine · 08/05/2004 (3:55 am) · 1 replies
GUI files, those that end with the extension of gui, are these normally created with the GUI editor instead of being typed in by hand? Most of the gui files begin and end with
//--- OBJECT WRITE BEGIN ---
//--- OBJECT WRITE END ---
so I'm assuming that these are generated by the GUI Editor. Is this correct?
Thanks,
Joe
//--- OBJECT WRITE BEGIN ---
//--- OBJECT WRITE END ---
so I'm assuming that these are generated by the GUI Editor. Is this correct?
Thanks,
Joe
About the author
Hobbyist working on a tank game when time allows. Play the prototype at => http://www.sytrept.com/60tons/
Torque Owner Eustacia Green
When the editor dumps the gui out to a file it writes those two lines of code also. That helps it to not overwrite any script code you include in the .gui file.
So if you type one in by hand, and include script code as well make sure you include those exact lines so your script code is not overwritten. Though I usually separate my script code out to a separate file.