| 297 | //----------------------------------------------------------------------------- |
| 298 | |
| 299 | void GuiTreeViewCtrl::Item::setText(StringTableEntry txt) |
| 300 | { |
| 301 | if(mState.test(InspectorData)) |
| 302 | { |
| 303 | Con::errorf("Tried to set text for item %d, which is InspectorData!", mId); |
| 304 | return; |
| 305 | } |
| 306 | |
| 307 | mScriptInfo.mText = txt; |
| 308 | |
| 309 | |
| 310 | // Update Render Data |
| 311 | if( !mProfile.isNull() ) |
| 312 | mDataRenderWidth = getDisplayTextWidth( mProfile->mFont ); |
| 313 | |
| 314 | } |
| 315 | |
| 316 | //----------------------------------------------------------------------------- |
| 317 |
no test coverage detected