Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EditorContextMenuHintCondition.c
Go to the documentation of this file.
1 [BaseContainerProps(), SCR_BaseContainerHintCondition()]
3 {
4  //------------------------------------------------------------------------------------------------
5  protected void OnMenuOpen(notnull array<SCR_BaseEditorAction> actions, vector cursorWorldPosition, out notnull array<ref SCR_EditorActionData> filteredActions, out int flags = 0)
6  {
7  if (!filteredActions.IsEmpty())
8  Activate();
9  }
10 
11  //------------------------------------------------------------------------------------------------
12  override protected void OnInitConditionEditor(SCR_EditorManagerEntity editorManager)
13  {
15  if (contextMenuManager)
16  contextMenuManager.GetOnMenuOpen().Insert(OnMenuOpen);
17  }
18 
19  //------------------------------------------------------------------------------------------------
20  override protected void OnExitConditionEditor(SCR_EditorManagerEntity editorManager)
21  {
23  if (contextMenuManager)
24  contextMenuManager.GetOnMenuOpen().Remove(OnMenuOpen);
25  }
26 }
SCR_BaseEditorHintCondition
Definition: SCR_BaseEditorHintCondition.c:2
SCR_ContextActionsEditorComponent
Definition: SCR_ContextActionsEditorComponent.c:15
SCR_EditorContextMenuHintCondition
Definition: SCR_EditorContextMenuHintCondition.c:2
Activate
protected void Activate()
Definition: SCR_BaseHintCondition.c:9
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468
SCR_EditorManagerEntity
Definition: SCR_EditorManagerEntity.c:26