3 protected bool m_bIsFocused;
6 override void HandlerAttached(Widget w)
8 super.HandlerAttached(w);
9 SetNavigationActive(
false);
13 override bool OnFocus(Widget w,
int x,
int y)
15 super.OnFocus(w, x, y);
16 SetNavigationActive(
true);
19 OnSpinBoxSelectionChanged(
this, m_iSelectedItem);
21 m_FocusedPoint.GetMenuHandler().OnAttachmentSpinboxFocused();
26 override bool OnFocusLost(Widget w,
int x,
int y)
28 super.OnFocusLost(w, x, y);
29 SetNavigationActive(
false);
37 if (!m_bIsFocused || itemIndex < 0)
40 m_FocusedPoint =
null;
44 m_FocusedPoint = hzContainer.GetStorage();
45 hzContainer.ShowApplicableItems();
51 point.ShowCompatibleAttachments();
55 int FindItem(
string item)
57 return m_aElementNames.Find(item);
67 return m_FocusedPoint;
70 void SetNavigationActive(
bool active)
75 m_ButtonLeft.m_OnClicked.Remove(OnLeftArrowClick);
77 m_ButtonLeft.m_OnClicked.Insert(OnLeftArrowClick);
82 m_ButtonRight.m_OnClicked.Remove(OnRightArrowClick);
84 m_ButtonRight.m_OnClicked.Insert(OnRightArrowClick);
88 override protected void OnMenuLeft()
93 override protected void OnMenuRight()