9 Widget checkboxWidget = w.FindAnyWidget(m_sUiComponentName);
14 if (!m_SelectionBoxComponent)
17 m_SelectionBoxComponent.m_OnChanged.Insert(OnChangeCheckbox);
19 super.Init(w, attribute);
25 m_SelectionBoxComponent.SetCurrentItem(0);
33 super.SetFromVar(var);
38 m_SelectionBoxComponent.SetCurrentItem((
int)var.GetBool(),
false,
false);
43 OnChange(selectionBox.GetRootWidget(), value, 0,
false);
46 override bool OnChange(Widget w,
int x,
int y,
bool finished)
48 if (!m_SelectionBoxComponent)
52 if (!attribute)
return false;
56 if (var.GetBool() == x)
60 super.OnChange(w, x, y, finished);
64 override void HandlerDeattached(Widget w)
66 if (m_SelectionBoxComponent)
67 m_SelectionBoxComponent.m_OnChanged.Remove(OnChangeCheckbox);