MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getData

Method getData

Engine/source/gui/editor/inspector/variableField.cpp:134–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134const char* GuiInspectorVariableField::getData( U32 inspectObjectIndex )
135{
136 if ( !mCaption || mCaption[0] == 0 )
137 return "";
138
139 Settings* setting = dynamic_cast<Settings*>(mOwnerObject);
140 if (setting)
141 {
142 return setting->value(mVariableName);
143 }
144 else
145 {
146 return Con::getVariable(mCaption);
147 }
148}
149
150void GuiInspectorVariableField::setValue( const char* newValue )
151{

Callers

nothing calls this directly

Calls 2

getVariableFunction · 0.85
valueMethod · 0.45

Tested by

no test coverage detected