5 const string WIDGET_CHECKER =
"Checker";
6 protected SCR_ModularButtonComponent m_Checker;
9 override void HandlerAttached(Widget w)
11 super.HandlerAttached(w);
14 Widget checkerWidget = w.FindAnyWidget(WIDGET_CHECKER);
16 m_Checker = SCR_ModularButtonComponent.Cast(checkerWidget.FindHandler(SCR_ModularButtonComponent));
20 override void SetToggled(
bool toggled,
bool animate =
true,
bool invokeChange =
true)
22 super.SetToggled(toggled, animate, invokeChange);
26 m_Checker.SetToggled(toggled);
29 override bool OnClick(Widget w,
int x,
int y,
int button)
31 super.OnClick(w, x, y, button);