6 {
8
9 m_SelectorType = 2;
10 m_Options = options;
11 if (options.Count() == 0)
12 {
13 Error(
"Invalid OptionSelectorMultistate options");
14 }
15
16 if (current_index < 0 || current_index >= m_Options.Count())
17 {
18 m_SelectedOptionIndex = 0;
19 }
20 else
21 {
22 m_SelectedOptionIndex = current_index;
23 }
24
25 m_SelectedOption.SetText(m_Options.Get(m_SelectedOptionIndex));
26 }
void Error(string err)
Messagebox with error message.