Updates to various components, added a few new ones.

This commit is contained in:
Areloch 2019-02-24 01:50:38 -06:00
parent e0627973fb
commit dac8d6e1fd
52 changed files with 4566 additions and 1799 deletions

View file

@ -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