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