Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_PingContextAction.c
Go to the documentation of this file.
3 {
4  [Attribute("0")]
5  bool m_IsUnlimitedOnly;
6 
7  override bool CanBeShown(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition, int flags)
8  {
9  // Only visible on gamepad
10  if (flags & EEditorContextActionFlags.USING_MOUSE_AND_KEYBOARD)
11  {
12  return false;
13  }
14 
15  //~ Check if unlimited editor else do not show (Otherwise players can see the action in photomode)
16  if (m_IsUnlimitedOnly)
17  {
18  SCR_EditorManagerEntity editorManager = SCR_EditorManagerEntity.GetInstance();
19  if (!editorManager || editorManager.IsLimited())
20  return false;
21  }
22 
23  // Only show action if cursorWorldPosition is valid
24  return cursorWorldPosition != vector.Zero;
25  }
26 
27  override bool CanBePerformed(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition, int flags)
28  {
29  return true;
30  }
31 
32  override void Perform(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,int flags, int param = -1)
33  {
35 
36  pingComponent.SendPing(m_IsUnlimitedOnly, cursorWorldPosition, hoveredEntity);
37  }
38 };
SCR_PingContextAction
Definition: SCR_PingContextAction.c:2
SCR_BaseContextAction
Definition: SCR_BaseContextAction.c:7
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_PingEditorComponent
Definition: SCR_PingEditorComponent.c:70
EEditorContextActionFlags
EEditorContextActionFlags
Definition: EEditorContextActionFlags.c:1
SCR_EditableEntityComponent
Definition: SCR_EditableEntityComponent.c:13
SCR_BaseContainerCustomTitleUIInfo
void SCR_BaseContainerCustomTitleUIInfo(string propertyName, string format="%1")
Definition: Attributes.c:788
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