Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_NewSessionToolbarAction.c
Go to the documentation of this file.
3 {
4  //---------------------------------------------------------------------------------------------
5  override bool IsServer()
6  {
7  return false;
8  }
9 
10  //---------------------------------------------------------------------------------------------
11  override bool CanBeShown(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition, int flags)
12  {
13  //--- Disabled in MP, SCR_EndGameToolbarAction is used instead
14  if (Replication.IsRunning())
15  return false;
16 
17  //--- Disallow if editor save struct is not configured
18  SCR_SaveLoadComponent saveLoadComponent = SCR_SaveLoadComponent.GetInstance();
19  return saveLoadComponent && saveLoadComponent.ContainsStruct(SCR_EditorStruct);
20  }
21 
22  //---------------------------------------------------------------------------------------------
23  override bool CanBePerformed(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition, int flags)
24  {
25  return CanBeShown(hoveredEntity, selectedEntities, cursorWorldPosition, flags);
26  }
27 
28  //---------------------------------------------------------------------------------------------
29  override void Perform(SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,int flags, int param = -1)
30  {
32  }
33 };
34 
36 {
37  //---------------------------------------------------------------------------------------------
38  override void OnConfirm()
39  {
40  GameStateTransitions.RequestScenarioRestart();
41  }
42 
43  //---------------------------------------------------------------------------------------------
45  {
46  SCR_ConfigurableDialogUi.CreateFromPreset(SCR_CommonDialogs.DIALOGS_CONFIG, "session_new", this);
47  }
48 };
SCR_CommonDialogs
Definition: CommonDialogs.c:5
SCR_NewSessionToolbarAction
Definition: SCR_NewSessionToolbarAction.c:2
SCR_EditorStruct
Definition: SCR_EditorStruct.c:8
GameStateTransitions
Definition: GameStateTransitions.c:12
SCR_EditorToolbarAction
Definition: SCR_EditorToolbarAction.c:3
SCR_NewSessionDialog
Definition: SCR_NewSessionToolbarAction.c:35
SCR_EditableEntityComponent
Definition: SCR_EditableEntityComponent.c:13
SCR_ConfigurableDialogUi
Definition: SCR_ConfigurableDialogUI.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