Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ResetEditorComponentsToolbarAction.c
Go to the documentation of this file.
3 {
4  override bool IsServer()
5  {
6  return false;
7  }
8  override bool CanBeShown(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition, int flags)
9  {
10  return true;
11  }
12  override bool CanBePerformed(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition, int flags)
13  {
14  return GetGame().GetGameMode() != null;
15  }
16  override void Perform(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,int flags, int param = -1)
17  {
18  SCR_EditorModeEntity editorModeEntity = SCR_EditorModeEntity.GetInstance();
19  array<SCR_BaseEditorComponent> editorComponents = {};
20  for (int i, count = editorModeEntity.FindEditorComponents(editorComponents); i < count; i++)
21  {
22  editorComponents[i].ResetEditorComponent();
23  }
24  }
25 };
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
SCR_EditorModeEntity
Definition: SCR_EditorModeEntity.c:22
SCR_EditorToolbarAction
Definition: SCR_EditorToolbarAction.c:3
SCR_ResetEditorComponentsToolbarAction
Definition: SCR_ResetEditorComponentsToolbarAction.c:2
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