Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_FocusHereContextAction.c
Go to the documentation of this file.
3 {
4  override bool CanBeShown(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition, int flags)
5  {
6  return true;
7  }
8 
9  override bool CanBePerformed(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition, int flags)
10  {
11  return false;
12  }
13 
14  override void Perform(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,int flags, int param = -1)
15  {
17  if (!editorCamera)
18  {
19  Print("SCR_FocusHereContextAction - failed to find editor cam base", LogLevel.WARNING);
20  return;
21  }
22 
23  SCR_ManualCamera baseCamera = editorCamera.GetCamera();
24  if (!baseCamera)
25  {
26  Print("SCR_FocusHereContextAction - failed to find base editor cam", LogLevel.WARNING);
27  return;
28  }
29 
31  if (!focus)
32  {
33  Print("SCR_FocusHereContextAction - failed to find editor cam focus", LogLevel.WARNING);
34  return;
35  }
36 
37  focus.SetFocusToCursor();
38  }
39 };
SCR_ManualCamera
Definition: SCR_ManualCamera.c:16
SCR_CameraEditorComponent
Definition: SCR_CameraEditorComponent.c:13
SCR_BaseContextAction
Definition: SCR_BaseContextAction.c:7
SCR_FocusHereContextAction
Definition: SCR_FocusHereContextAction.c:2
SCR_FocusManualCameraComponent
Focus camera on cursor position.
Definition: SCR_FocusManualCameraComponent.c:5
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