Game Development Community

Gui Editor: Profiles not available?

by Dave Young · in Torque Game Engine Advanced · 09/26/2008 (12:09 pm) · 4 replies

In the fabulous new GUI Editor in 1.7.1, I'm not seeing a dropdown box for Gui Profiles, only a text box. Typing in a profile to the box and hitting enter or tabbing out doesn't seem to do anything.

I haven't seen a bug report on this, is it just me?

#1
09/26/2008 (12:21 pm)
The dropdown seems to be missing between 1.7 and 1.7.1
#2
09/27/2008 (2:34 pm)
On further look, it was done explicitly here in guiControl.cpp

So it's supposed to be a string and not the enum. This would be fine if we also had a profile list.

//addProtectedField("Profile", TypeGuiProfile, Offset(mProfile, GuiControl), &setProfileProt, &defaultProtectedGetFn, "");
addField("Profile", TypeString, Offset(mProfileName, GuiControl));
#3
09/28/2008 (1:34 pm)
I coded up a guiProfile pallete so I can drag and drop a profile onto a guiControl in the guiEditor and have the profile updated live.

Necessity is the mother of invention!
#4
09/29/2008 (8:00 am)
I also call it: the brilliance of programmer laziness!

Good job, Dave.