Passing an Enum into the GUI
by Mike Wigand · in Torque Game Engine · 02/25/2002 (11:03 pm) · 2 replies
Im trying to send an Enum to be used by my own guiTextBoxes. Does anyone know how to use this function? Its located in console types.
static void setDataTypeEnum(void *dptr, S32 argc, const char **argv, EnumTable *tbl, BitSet32)
Thanks
Mike Wigand
MuffinMan Productions
"Do you know the Muffin Man?
static void setDataTypeEnum(void *dptr, S32 argc, const char **argv, EnumTable *tbl, BitSet32)
Thanks
Mike Wigand
MuffinMan Productions
"Do you know the Muffin Man?
Torque 3D Owner Joel Baxter
To see examples of TypeEnum fields being created, in the engine code look for addField invocations that have TypeEnum as the second argument. The last argument is a pointer to an EnumTable object that specifies the mapping between the enums used in the engine code and strings used by the scripting.