mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-15 12:43:50 +00:00
Updates to various components, added a few new ones.
This commit is contained in:
parent
e0627973fb
commit
dac8d6e1fd
52 changed files with 4566 additions and 1799 deletions
|
|
@ -456,7 +456,7 @@ void Component::checkComponentFieldModified(const char* slotName, const char* ne
|
|||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void Component::addComponentField(const char *fieldName, const char *desc, const char *type, const char *defaultValue /* = NULL */, const char *userData /* = NULL */, /*const char* dependency /* = NULL *//*,*/ bool hidden /* = false */)
|
||||
void Component::addComponentField(const char *fieldName, const char *desc, const char *type, const char *defaultValue /* = NULL */, const char *userData /* = NULL */, /*const char* dependency /* = NULL *//*,*/ bool hidden /* = false */, const char* customLabel /* = ""*/)
|
||||
{
|
||||
StringTableEntry stFieldName = StringTable->insert(fieldName);
|
||||
|
||||
|
|
@ -467,6 +467,12 @@ void Component::addComponentField(const char *fieldName, const char *desc, const
|
|||
}
|
||||
|
||||
ComponentField field;
|
||||
|
||||
if (customLabel != "")
|
||||
field.mFieldLabel = customLabel;
|
||||
else
|
||||
field.mFieldLabel = stFieldName;
|
||||
|
||||
field.mFieldName = stFieldName;
|
||||
|
||||
//find the field type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue