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

Protected Member Functions

ScriptInvoker GetOnMenuOpen ()
int ValidateSelection (bool isInstant)
override void EvaluateActions (notnull array< SCR_BaseEditorAction > actions, vector cursorWorldPosition, out notnull array< ref SCR_EditorActionData > filteredActions, out int flags=0)
bool ActionCanBeShown (SCR_BaseEditorAction action, vector cursorWorldPosition, int flags)
bool ActionCanBePerformed (SCR_BaseEditorAction action, vector cursorWorldPosition, int flags)
override void EOnEditorActivate ()
override void EOnEditorDeactivate ()

Protected Attributes

ref ScriptInvoker m_OnMenuOpen = new ScriptInvoker()
SCR_LayersEditorComponent m_LayerManager
SCR_StatesEditorComponent m_StateManager

Detailed Description

Component to hold all context actions for each editor mode and filter out actions depending on context

Intended use is for this component to be added to each editor mode entity which should have specific actions available

These actions are defined on the editor mode prefab entity as types of SCR_BaseContextAction

Definition at line 15 of file SCR_ContextActionsEditorComponent.c.

Member Function Documentation

◆ ActionCanBePerformed()

bool SCR_ContextActionsEditorComponent::ActionCanBePerformed ( SCR_BaseEditorAction action,
vector cursorWorldPosition,
int flags )
inlineprotected

Definition at line 106 of file SCR_ContextActionsEditorComponent.c.

◆ ActionCanBeShown()

bool SCR_ContextActionsEditorComponent::ActionCanBeShown ( SCR_BaseEditorAction action,
vector cursorWorldPosition,
int flags )
inlineprotected

Definition at line 101 of file SCR_ContextActionsEditorComponent.c.

◆ EOnEditorActivate()

override void SCR_ContextActionsEditorComponent::EOnEditorActivate ( )
inlineprotected

Definition at line 111 of file SCR_ContextActionsEditorComponent.c.

◆ EOnEditorDeactivate()

override void SCR_ContextActionsEditorComponent::EOnEditorDeactivate ( )
inlineprotected

Definition at line 120 of file SCR_ContextActionsEditorComponent.c.

◆ EvaluateActions()

override void SCR_ContextActionsEditorComponent::EvaluateActions ( notnull array< SCR_BaseEditorAction > actions,
vector cursorWorldPosition,
out notnull array< ref SCR_EditorActionData > filteredActions,
out int flags = 0 )
inlineprotected

Definition at line 95 of file SCR_ContextActionsEditorComponent.c.

◆ GetOnMenuOpen()

ScriptInvoker SCR_ContextActionsEditorComponent::GetOnMenuOpen ( )
inlineprotected

Get event called for the user when the menu is opened.

Returns
Script invoker

Definition at line 25 of file SCR_ContextActionsEditorComponent.c.

◆ ValidateSelection()

int SCR_ContextActionsEditorComponent::ValidateSelection ( bool isInstant)
inlineprotected

Definition at line 30 of file SCR_ContextActionsEditorComponent.c.

Member Data Documentation

◆ m_LayerManager

SCR_LayersEditorComponent SCR_ContextActionsEditorComponent::m_LayerManager
protected

Definition at line 18 of file SCR_ContextActionsEditorComponent.c.

◆ m_OnMenuOpen

ref ScriptInvoker SCR_ContextActionsEditorComponent::m_OnMenuOpen = new ScriptInvoker()
protected

Definition at line 17 of file SCR_ContextActionsEditorComponent.c.

◆ m_StateManager

SCR_StatesEditorComponent SCR_ContextActionsEditorComponent::m_StateManager
protected

Definition at line 19 of file SCR_ContextActionsEditorComponent.c.


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