Small fixes to the inspector, and added the ability for the variableInspector to process command and filename field types.

This commit is contained in:
Areloch 2018-01-28 15:12:02 -06:00
parent 6563f46242
commit 73b81a8246
2 changed files with 11 additions and 2 deletions

View file

@ -167,6 +167,10 @@ void GuiVariableInspector::addField(const char* name, const char* label, const c
fieldTypeMask = TypeColorF;
else if (newField.mFieldTypeName == StringTable->insert("ease"))
fieldTypeMask = TypeEaseF;
else if (newField.mFieldTypeName == StringTable->insert("command"))
fieldTypeMask = TypeCommand;
else if (newField.mFieldTypeName == StringTable->insert("filename"))
fieldTypeMask = TypeStringFilename;
else
fieldTypeMask = -1;
@ -192,6 +196,7 @@ void GuiVariableInspector::addCallbackField(const char* name, const char* label,
void GuiVariableInspector::clearFields()
{
mFields.clear();
clearGroups();
update();
}