4 protected Widget m_wPlayablePC;
8 override void HandlerAttached(Widget w)
10 super.HandlerAttached(w);
12 m_wPlayablePC =
m_wRoot.FindAnyWidget(
"PlayablePC");
16 GetGame().OnInputDeviceIsGamepadInvoker().Insert(OnInputDeviceIsGamepad);
20 override void HandlerDeattached(Widget w)
22 GetGame().OnInputDeviceIsGamepadInvoker().Remove(OnInputDeviceIsGamepad);
26 void OnInputDeviceIsGamepad(
bool isGamepad)
28 m_wPlayablePC.SetVisible(!isGamepad);
32 override bool OnMouseButtonDown(Widget w,
int x,
int y,
int button)
38 override bool OnFocus(Widget w,
int x,
int y)
41 super.OnFocus(w, x, y);
42 ColorizeWidgets(COLOR_BACKGROUND_HOVERED, COLOR_CONTENT_HOVERED);