Game Development Community

AddField C++ Mysterious types

by Terence Tan · in Torque Game Engine · 06/09/2006 (7:04 pm) · 2 replies

Trying to find out how to setup a drop-down/up UI control with limited (but dynamically intialized) items.

Though I found out what I need from audioEmitter.cc:
addField("description", TypeAudioDescriptionPtr, Offset(mAudioDescription, AudioEmitter));

Then decide find where TypeAudioDescriptionPtr is defined..and couldn't find it.

Is there some magic going on in the background?

Anybody know how to create a drop down controller and add it to an object via addField?

T.

#1
06/09/2006 (7:54 pm)
DECLARE_CONSOLETYPE(AudioDescription) creates the TypeAudioDescriptionPtr.

DECLARE_CONSOLETYPE creates most of the Type'Name'Ptr stuff in TGE now.
#2
06/10/2006 (1:07 am)
Thanks..

Whoo..look pretty MACRO magic;P

I found out how to the drop down list types using static ENUM's and TypeEnum...so alls well for now.