778 {
780 if (selected_row_index != -1)
781 {
782 string item_name;
784
785 array<string> tokens = new array<string>();
786 int index = item_name.
IndexOf(
" - [");
787 if (index > -1)
788 {
789 item_name.
Split(
" - [", tokens);
790 }
791
792 return tokens[0];
793 }
794 return "";
795 }
TextListboxWidget m_ObjectsTextListbox
void Split(string sample, out array< string > output)
Splits string into array of strings separated by 'sample'.
proto native int IndexOf(string sample)
Finds 'sample' in 'str'. Returns -1 when not found.