Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_GeneralContextAction.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
9 {
10  [Attribute(desc: "Should this action be hidden when an entity is hovered")]
11  protected bool m_HideOnHover;
12  [Attribute(desc: "Should this action be hidden when any entities are selected")]
13  protected bool m_HideOnSelected;
14 
15  override bool CanBeShown(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition, int flags)
16  {
17  if(m_HideOnHover && hoveredEntity)
18  {
19  return false;
20  }
21  if(m_HideOnSelected && !selectedEntities.IsEmpty())
22  {
23  return false;
24  }
25  return true;
26  }
27 
28  override bool CanBePerformed(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition, int flags)
29  {
30  return true;
31  }
32 
33  override void Perform(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,int flags, int param = -1)
34  {
35  PrintFormat("This is general action %1, description: %2", GetInfo().GetName(), GetInfo().GetDescription());
36  }
37 };
GetName
string GetName()
Definition: SCR_ScenarioFrameworkLayerBase.c:85
GetInfo
override SCR_UIInfo GetInfo(IEntity owner=null)
Definition: SCR_EditablePlayerDelegateComponent.c:140
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
SCR_GeneralContextAction
Definition: SCR_GeneralContextAction.c:8
SCR_BaseContextAction
Definition: SCR_BaseContextAction.c:7
Attribute
typedef Attribute
Post-process effect of scripted camera.
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