mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Small fixes to the inspector, and added the ability for the variableInspector to process command and filename field types.
This commit is contained in:
parent
6563f46242
commit
73b81a8246
2 changed files with 11 additions and 2 deletions
|
|
@ -54,7 +54,8 @@ GuiInspector::GuiInspector()
|
||||||
mOverDivider( false ),
|
mOverDivider( false ),
|
||||||
mMovingDivider( false ),
|
mMovingDivider( false ),
|
||||||
mHLField( NULL ),
|
mHLField( NULL ),
|
||||||
mShowCustomFields( true )
|
mShowCustomFields( true ),
|
||||||
|
mComponentGroupTargetId(-1)
|
||||||
{
|
{
|
||||||
mPadding = 1;
|
mPadding = 1;
|
||||||
}
|
}
|
||||||
|
|
@ -620,7 +621,10 @@ void GuiInspector::refresh()
|
||||||
else
|
else
|
||||||
compName = comp->getComponentName();
|
compName = comp->getComponentName();
|
||||||
|
|
||||||
GuiInspectorGroup *compGroup = new GuiInspectorComponentGroup(compName, this, comp);
|
StringBuilder captionString;
|
||||||
|
captionString.format("%s [%i]", compName.c_str(), comp->getId());
|
||||||
|
|
||||||
|
GuiInspectorGroup *compGroup = new GuiInspectorComponentGroup(captionString.data(), this, comp);
|
||||||
if (compGroup != NULL)
|
if (compGroup != NULL)
|
||||||
{
|
{
|
||||||
compGroup->registerObject();
|
compGroup->registerObject();
|
||||||
|
|
|
||||||
|
|
@ -167,6 +167,10 @@ void GuiVariableInspector::addField(const char* name, const char* label, const c
|
||||||
fieldTypeMask = TypeColorF;
|
fieldTypeMask = TypeColorF;
|
||||||
else if (newField.mFieldTypeName == StringTable->insert("ease"))
|
else if (newField.mFieldTypeName == StringTable->insert("ease"))
|
||||||
fieldTypeMask = TypeEaseF;
|
fieldTypeMask = TypeEaseF;
|
||||||
|
else if (newField.mFieldTypeName == StringTable->insert("command"))
|
||||||
|
fieldTypeMask = TypeCommand;
|
||||||
|
else if (newField.mFieldTypeName == StringTable->insert("filename"))
|
||||||
|
fieldTypeMask = TypeStringFilename;
|
||||||
else
|
else
|
||||||
fieldTypeMask = -1;
|
fieldTypeMask = -1;
|
||||||
|
|
||||||
|
|
@ -192,6 +196,7 @@ void GuiVariableInspector::addCallbackField(const char* name, const char* label,
|
||||||
void GuiVariableInspector::clearFields()
|
void GuiVariableInspector::clearFields()
|
||||||
{
|
{
|
||||||
mFields.clear();
|
mFields.clear();
|
||||||
|
clearGroups();
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue