mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Merge pull request #982 from Areloch/OnInspectEditorLogic
Adds logic and handling for Inspected SimObjects to be able to injectnew InspectorGroups and InspectorFields when being inspected for editing.
This commit is contained in:
commit
59ed9ee7b6
6 changed files with 154 additions and 2 deletions
|
|
@ -40,6 +40,7 @@
|
|||
#include "core/stream/fileStream.h"
|
||||
#include "core/fileObject.h"
|
||||
#include "persistence/taml/tamlCustom.h"
|
||||
#include "gui/editor/guiInspector.h"
|
||||
|
||||
#include "sim/netObject.h"
|
||||
#include "cinterface/cinterface.h"
|
||||
|
|
@ -2334,7 +2335,13 @@ String SimObject::_getLogMessage(const char* fmt, va_list args) const
|
|||
// MARK: ---- API ----
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
void SimObject::onInspect(GuiInspector* inspector)
|
||||
{
|
||||
if (isMethod("onInspect"))
|
||||
Con::executef(this, "onInspect", inspector);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
DefineEngineMethod( SimObject, dumpGroupHierarchy, void, (),,
|
||||
"Dump the hierarchy of this object up to RootGroup to the console." )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue