| 875 | } |
| 876 | |
| 877 | StringTableEntry GuiListBoxCtrl::getItemText( S32 index ) |
| 878 | { |
| 879 | // Range Checking |
| 880 | if( index > mItems.size() || index < 0 ) |
| 881 | { |
| 882 | Con::warnf( "GuiListBoxCtrl::getItemText - index out of range!" ); |
| 883 | return StringTable->lookup(""); |
| 884 | } |
| 885 | |
| 886 | return mItems[ index ]->itemText; |
| 887 | } |
| 888 | |
| 889 | DefineEngineMethod( GuiListBoxCtrl, getItemObject, const char*, (S32 index),, |
| 890 | "@brief Returns the object associated with an item. This only makes sense if you are mirroring a simset.\n\n" |
no test coverage detected