Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
SCR_ButtonEffectBase Interface Reference

Base class for modular button effects. More...

Inheritance diagram for SCR_ButtonEffectBase:
[legend]

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
 

Detailed Description

Base class for modular button effects.

Override methods in inherited classes with specific effect implementations.

Member Function Documentation

◆ _print()

void SCR_ButtonEffectBase._print ( string  s)
protected

◆ GetEnabled()

bool SCR_ButtonEffectBase.GetEnabled ( )
Returns

◆ HasTag()

bool SCR_ButtonEffectBase.HasTag ( string  tag)

Returns true when the effect contains a given tag.

◆ Init()

void SCR_ButtonEffectBase.Init ( SCR_ModularButtonComponent  parentButton)
Parameters
[in]parentButton

◆ Internal_OnEvent()

bool SCR_ButtonEffectBase.Internal_OnEvent ( EModularButtonEventFlag  eventFlag,
EInputDeviceType  deviceType,
bool  instant = false 
)
Parameters
[in]eventFlag
[in]deviceType
[in]instant
Returns
true when effect was consumed

◆ OnClicked()

void SCR_ButtonEffectBase.OnClicked ( bool  instant)
protected

◆ OnDisabled()

void SCR_ButtonEffectBase.OnDisabled ( )

◆ OnFocusGained()

void SCR_ButtonEffectBase.OnFocusGained ( bool  instant)
protected

◆ OnFocusLost()

void SCR_ButtonEffectBase.OnFocusLost ( bool  instant)
protected

◆ OnHandlerAttached()

void SCR_ButtonEffectBase.OnHandlerAttached ( Widget  w)
Parameters
[in]w

Implemented in SCR_ButtonEffectSlaveButton, and SCR_ButtonEffectWidgetBase.

◆ OnMouseEnter()

void SCR_ButtonEffectBase.OnMouseEnter ( bool  instant)
protected

◆ OnMouseLeave()

void SCR_ButtonEffectBase.OnMouseLeave ( bool  instant)
protected

◆ OnStateActivated()

void SCR_ButtonEffectBase.OnStateActivated ( bool  instant)
protected

◆ OnStateActivatedHovered()

void SCR_ButtonEffectBase.OnStateActivatedHovered ( bool  instant)
protected

◆ OnStateDefault()

void SCR_ButtonEffectBase.OnStateDefault ( bool  instant)
protected

◆ OnStateDisabled()

void SCR_ButtonEffectBase.OnStateDisabled ( bool  instant)
protected

◆ OnStateDisabledActivated()

void SCR_ButtonEffectBase.OnStateDisabledActivated ( bool  instant)
protected

◆ OnStateHovered()

void SCR_ButtonEffectBase.OnStateHovered ( bool  instant)
protected

◆ OnToggledOff()

void SCR_ButtonEffectBase.OnToggledOff ( bool  instant)
protected

◆ OnToggledOn()

void SCR_ButtonEffectBase.OnToggledOn ( bool  instant)
protected

◆ PropertiesChanged()

void SCR_ButtonEffectBase.PropertiesChanged ( )

Call it if properties have changed and they must be reapplied.

◆ SetEnabled()

void SCR_ButtonEffectBase.SetEnabled ( bool  enabled)
Parameters
[in]enabled

Member Data Documentation

◆ m_aTags

ref array<string> SCR_ButtonEffectBase.m_aTags

◆ m_bEnabled

bool SCR_ButtonEffectBase.m_bEnabled
protected

◆ m_Button

SCR_ModularButtonComponent SCR_ButtonEffectBase.m_Button
protected

◆ m_eEvents

EModularButtonEventFlag SCR_ButtonEffectBase.m_eEvents

◆ m_eInputDevices

EModularButtonInputDevice SCR_ButtonEffectBase.m_eInputDevices

The documentation for this interface was generated from the following file: