Arma Reforger Script API
|
Base class for modular button effects. More...
Public Member Functions | |
bool | GetEnabled () |
void | SetEnabled (bool enabled) |
void | PropertiesChanged () |
Call it if properties have changed and they must be reapplied. | |
bool | HasTag (string tag) |
Returns true when the effect contains a given tag. | |
void | OnHandlerAttached (Widget w) |
void | OnDisabled () |
bool | Internal_OnEvent (EModularButtonEventFlag eventFlag, EInputDeviceType deviceType, bool instant=false) |
void | Init (SCR_ModularButtonComponent parentButton) |
Public Attributes | |
ref array< string > | m_aTags |
EModularButtonEventFlag | m_eEvents |
EModularButtonInputDevice | m_eInputDevices |
Protected Member Functions | |
void | OnStateDefault (bool instant) |
void | OnStateHovered (bool instant) |
void | OnStateActivated (bool instant) |
void | OnStateActivatedHovered (bool instant) |
void | OnStateDisabled (bool instant) |
void | OnStateDisabledActivated (bool instant) |
void | OnClicked (bool instant) |
void | OnFocusGained (bool instant) |
void | OnFocusLost (bool instant) |
void | OnToggledOn (bool instant) |
void | OnToggledOff (bool instant) |
void | OnMouseEnter (bool instant) |
void | OnMouseLeave (bool instant) |
void | _print (string s) |
Protected Attributes | |
bool | m_bEnabled |
SCR_ModularButtonComponent | m_Button |
Base class for modular button effects.
Override methods in inherited classes with specific effect implementations.
|
protected |
bool SCR_ButtonEffectBase.GetEnabled | ( | ) |
bool SCR_ButtonEffectBase.HasTag | ( | string | tag | ) |
Returns true when the effect contains a given tag.
void SCR_ButtonEffectBase.Init | ( | SCR_ModularButtonComponent | parentButton | ) |
[in] | parentButton |
bool SCR_ButtonEffectBase.Internal_OnEvent | ( | EModularButtonEventFlag | eventFlag, |
EInputDeviceType | deviceType, | ||
bool | instant = false |
||
) |
[in] | eventFlag | |
[in] | deviceType | |
[in] | instant |
|
protected |
void SCR_ButtonEffectBase.OnDisabled | ( | ) |
|
protected |
|
protected |
void SCR_ButtonEffectBase.OnHandlerAttached | ( | Widget | w | ) |
[in] | w |
Implemented in SCR_ButtonEffectSlaveButton, and SCR_ButtonEffectWidgetBase.
|
protected |
Implemented in SCR_ButtonEffectOpacity, and SCR_ButtonEffectSound.
|
protected |
Implemented in SCR_ButtonEffectOpacity, and SCR_ButtonEffectSound.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
void SCR_ButtonEffectBase.PropertiesChanged | ( | ) |
Call it if properties have changed and they must be reapplied.
void SCR_ButtonEffectBase.SetEnabled | ( | bool | enabled | ) |
[in] | enabled |
ref array<string> SCR_ButtonEffectBase.m_aTags |
|
protected |
|
protected |
EModularButtonEventFlag SCR_ButtonEffectBase.m_eEvents |
EModularButtonInputDevice SCR_ButtonEffectBase.m_eInputDevices |