mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Corrects the clearFields function of the variableInspector and enables the callback field support.
This commit is contained in:
parent
490c05ffd4
commit
b9adeb0f28
3 changed files with 7 additions and 1 deletions
|
|
@ -57,6 +57,7 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
StringTableEntry mVariableName;
|
StringTableEntry mVariableName;
|
||||||
|
StringTableEntry mSetCallbackName;
|
||||||
SimObject* mOwnerObject;
|
SimObject* mOwnerObject;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -151,6 +151,9 @@ bool GuiInspectorVariableGroup::inspectGroup()
|
||||||
fieldGui->setInspectorField(NULL, mFields[i]->mFieldLabel);
|
fieldGui->setInspectorField(NULL, mFields[i]->mFieldLabel);
|
||||||
fieldGui->setDocs(mFields[i]->mFieldDescription);
|
fieldGui->setDocs(mFields[i]->mFieldDescription);
|
||||||
|
|
||||||
|
if(mFields[i]->mSetCallbackName != StringTable->EmptyString())
|
||||||
|
fieldGui->setSpecialEditCallbackName(mFields[i]->mSetCallbackName);
|
||||||
|
|
||||||
/*if (mFields[i]->mSetCallbackName != StringTable->EmptyString())
|
/*if (mFields[i]->mSetCallbackName != StringTable->EmptyString())
|
||||||
{
|
{
|
||||||
fieldGui->on.notify()
|
fieldGui->on.notify()
|
||||||
|
|
|
||||||
|
|
@ -195,8 +195,10 @@ void GuiVariableInspector::addCallbackField(const char* name, const char* label,
|
||||||
|
|
||||||
void GuiVariableInspector::clearFields()
|
void GuiVariableInspector::clearFields()
|
||||||
{
|
{
|
||||||
|
mGroups.clear();
|
||||||
mFields.clear();
|
mFields.clear();
|
||||||
clearGroups();
|
clear();
|
||||||
|
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue