| 316 | //----------------------------------------------------------------------------- |
| 317 | |
| 318 | void GuiTreeViewCtrl::Item::setValue(StringTableEntry val) |
| 319 | { |
| 320 | if(mState.test(InspectorData)) |
| 321 | { |
| 322 | Con::errorf("Tried to set value for item %d, which is InspectorData!", mId); |
| 323 | return; |
| 324 | } |
| 325 | |
| 326 | mScriptInfo.mValue = const_cast<char*>(val); // mValue really ought to be a StringTableEntry |
| 327 | |
| 328 | // Update Render Data |
| 329 | if( !mProfile.isNull() ) |
| 330 | mDataRenderWidth = getDisplayTextWidth( mProfile->mFont ); |
| 331 | |
| 332 | } |
| 333 | |
| 334 | //----------------------------------------------------------------------------- |
| 335 |
no test coverage detected