Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_MenuActionsComponent Class Reference
Inheritance diagram for SCR_MenuActionsComponent:
SCR_ScriptedWidgetComponent

Protected Member Functions

override void HandlerAttached (Widget w)
override void HandlerDeattached (Widget w)
void OnMenuDeactivated (ChimeraMenuBase menu)
void OnAction (float multiplier, EActionTrigger reason)
 Bind this in your menu.
void AddActionListenersDelayed (int delay)
void AddActionListeners ()
void RemoveActionListeners ()
void ActivateActions ()
void DeactivateActions ()
array< ref SCR_MenuActionPreset > GetActions ()
ScriptInvokerAction GetOnAction ()

Static Protected Member Functions

static SCR_MenuActionsComponent FindComponent (Widget w)

Protected Attributes

ref array< ref SCR_MenuActionPreset > m_aActions
int m_iDelay
bool m_bHasActionListeners
ref array< SCR_MenuActionPreset > m_aPressActions = {}
ref array< SCR_MenuActionPreset > m_aValueActions = {}
ref ScriptInvokerAction m_OnAction

Detailed Description

Definition at line 9 of file SCR_MenuActionsComponent.c.

Member Function Documentation

◆ ActivateActions()

void SCR_MenuActionsComponent::ActivateActions ( )
inlineprotected

Definition at line 182 of file SCR_MenuActionsComponent.c.

◆ AddActionListeners()

void SCR_MenuActionsComponent::AddActionListeners ( )
inlineprotected

Definition at line 140 of file SCR_MenuActionsComponent.c.

◆ AddActionListenersDelayed()

void SCR_MenuActionsComponent::AddActionListenersDelayed ( int delay)
inlineprotected

Activate / deactivate in your menu. Tried calling this on focus gained / lost, but if the menu is not focused the component gets deactivated As of now, if a button press closes a menu and that button's action is active in the menu below, it may get triggered immediatly, thus the delayed activation. This is already being investigated by the Enfusion guys

Definition at line 131 of file SCR_MenuActionsComponent.c.

◆ DeactivateActions()

void SCR_MenuActionsComponent::DeactivateActions ( )
inlineprotected

Definition at line 188 of file SCR_MenuActionsComponent.c.

◆ FindComponent()

SCR_MenuActionsComponent SCR_MenuActionsComponent::FindComponent ( Widget w)
inlinestaticprotected

Definition at line 212 of file SCR_MenuActionsComponent.c.

◆ GetActions()

array< ref SCR_MenuActionPreset > SCR_MenuActionsComponent::GetActions ( )
inlineprotected

Definition at line 197 of file SCR_MenuActionsComponent.c.

◆ GetOnAction()

ScriptInvokerAction SCR_MenuActionsComponent::GetOnAction ( )
inlineprotected

Definition at line 203 of file SCR_MenuActionsComponent.c.

◆ HandlerAttached()

override void SCR_MenuActionsComponent::HandlerAttached ( Widget w)
inlineprotected

Definition at line 25 of file SCR_MenuActionsComponent.c.

◆ HandlerDeattached()

override void SCR_MenuActionsComponent::HandlerDeattached ( Widget w)
inlineprotected

Definition at line 58 of file SCR_MenuActionsComponent.c.

◆ OnAction()

void SCR_MenuActionsComponent::OnAction ( float multiplier,
EActionTrigger reason )
inlineprotected

Bind this in your menu.

We might be in a hidden tab or menu, in which case we don't want the invoker to trigger

Definition at line 84 of file SCR_MenuActionsComponent.c.

◆ OnMenuDeactivated()

void SCR_MenuActionsComponent::OnMenuDeactivated ( ChimeraMenuBase menu)
inlineprotected

Definition at line 73 of file SCR_MenuActionsComponent.c.

◆ RemoveActionListeners()

void SCR_MenuActionsComponent::RemoveActionListeners ( )
inlineprotected

Definition at line 161 of file SCR_MenuActionsComponent.c.

Member Data Documentation

◆ m_aActions

ref array<ref SCR_MenuActionPreset> SCR_MenuActionsComponent::m_aActions
protected

Definition at line 12 of file SCR_MenuActionsComponent.c.

◆ m_aPressActions

ref array<SCR_MenuActionPreset> SCR_MenuActionsComponent::m_aPressActions = {}
protected

Definition at line 19 of file SCR_MenuActionsComponent.c.

◆ m_aValueActions

ref array<SCR_MenuActionPreset> SCR_MenuActionsComponent::m_aValueActions = {}
protected

Definition at line 20 of file SCR_MenuActionsComponent.c.

◆ m_bHasActionListeners

bool SCR_MenuActionsComponent::m_bHasActionListeners
protected

Definition at line 17 of file SCR_MenuActionsComponent.c.

◆ m_iDelay

int SCR_MenuActionsComponent::m_iDelay
protected

Definition at line 15 of file SCR_MenuActionsComponent.c.

◆ m_OnAction

ref ScriptInvokerAction SCR_MenuActionsComponent::m_OnAction
protected

Definition at line 22 of file SCR_MenuActionsComponent.c.


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