mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Adds logic and handling for Inspected SimObjects to be able to inject new InspectorGroups and InspectorFields when being inspected for editing.
Allows for expanded editing capabilities of existing classes without needing to add static fields to classes
This commit is contained in:
parent
7fa2e72d5f
commit
3991019912
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