Game Development Community

Defining Gui Profiles in 1.5.1

by James Ford · in Torque Game Builder · 09/03/2007 (8:30 pm) · 2 replies

There is no place like datablocks.cs in which to define your custom gui profiles. Although there use to be, where did it go?

I noticed that you can use datablocks.cs for this. If you put your custom gui profile definitions in datablocks.cs they will be accessible from the guibuilder, but there should probably be a separate location for this.

#1
09/04/2007 (12:53 pm)
I usually just make a "profiles.cs" file in the GUI folder. If you want it to be usable in the editor, just put a script inside the "behaviors" folder which execs it. This is also the way to have additional datablock files besides datablocks.cs be available from the editor.
#2
09/04/2007 (1:28 pm)
OR put a line to exec whatever files you want in the editor inside the game/gamescripts/datablocks.cs file