6 protected string m_sMouseAndKeyboardWidgetName;
9 protected string m_sControllerWidgetName;
12 protected int m_iOffsetTop;
15 protected int m_iOffsetRight;
18 protected int m_iOffsetBottom;
21 protected int m_iOffsetLeft;
23 protected InputManager m_InputManager;
24 protected Widget m_MouseAndKeyboardWidget;
25 protected Widget m_ControllerWidget;
29 Widget GetAreaWidget()
32 return m_MouseAndKeyboardWidget;
34 return m_ControllerWidget;
42 void GetOffsets(out
int top, out
int right, out
int bottom, out
int left)
45 right = m_iOffsetRight;
46 bottom = m_iOffsetBottom;
54 ClearAreaWidget(m_MouseAndKeyboardWidget);
55 ClearAreaWidget(m_ControllerWidget);
59 protected void ClearAreaWidget(Widget w)
61 Widget child = w.GetChildren();
64 child.RemoveFromHierarchy();
65 child = child.GetSibling();
70 override void HandlerAttachedScripted(Widget w)
74 m_MouseAndKeyboardWidget = w.FindAnyWidget(m_sMouseAndKeyboardWidgetName);
75 if (!m_MouseAndKeyboardWidget)
76 Print(
string.Format(
"Widget '%1' not found!", m_sMouseAndKeyboardWidgetName), LogLevel.NORMAL);
78 m_ControllerWidget = w.FindAnyWidget(m_sControllerWidgetName);
79 if (!m_ControllerWidget)
80 Print(
string.Format(
"Widget '%1' not found!", m_sControllerWidgetName), LogLevel.NORMAL);