| 132 | } |
| 133 | |
| 134 | const 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 | |
| 150 | void GuiInspectorVariableField::setValue( const char* newValue ) |
| 151 | { |
nothing calls this directly
no test coverage detected