1 [
BaseContainerProps(configRoot :
true), SCR_ButtonEffectTitleAttribute(
"SlaveButton",
"m_sWidgetName")]
5 protected SCR_ModularButtonComponent m_targetComponent;
9 void SetTargetWidget(Widget targetWidget)
11 m_wTarget = targetWidget;
12 SCR_ModularButtonComponent targetComp = SCR_ModularButtonComponent.Cast(m_wTarget.FindHandler(SCR_ModularButtonComponent));
13 m_targetComponent = targetComp;
17 override void OnHandlerAttached(Widget w)
19 super.OnHandlerAttached(w);
22 m_targetComponent = SCR_ModularButtonComponent.Cast(m_wTarget.FindHandler(SCR_ModularButtonComponent));
26 override void OnStateDefault(
bool instant)
28 if (!m_targetComponent)
35 override void OnStateHovered(
bool instant)
37 if (!m_targetComponent)
44 override void OnStateActivated(
bool instant)
46 if (!m_targetComponent)
53 override void OnStateActivatedHovered(
bool instant)
55 if (!m_targetComponent)
62 override void OnStateDisabled(
bool instant)
64 if (!m_targetComponent)
71 override void OnStateDisabledActivated(
bool instant)
73 if (!m_targetComponent)
80 override void OnClicked(
bool instant)
82 if (!m_targetComponent)
89 override void OnFocusGained(
bool instant)
91 if (!m_targetComponent)
98 override void OnFocusLost(
bool instant)
100 if (!m_targetComponent)
107 override void OnToggledOn(
bool instant)
109 if (!m_targetComponent)
116 override void OnToggledOff(
bool instant)
118 if (!m_targetComponent)