Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_PauseMenuUI.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
3 {
4  InputManager m_InputManager;
5 
6  protected TextWidget m_wVersion;
7  protected Widget m_wRoot;
8  protected Widget m_wFade;
9  protected Widget m_wSystemTime;
10  protected bool m_bFocused = true;
11 
12  //Editor and Photo mode Specific
13  protected SCR_ButtonTextComponent m_EditorUnlimitedOpenButton;
14  protected SCR_ButtonTextComponent m_EditorUnlimitedCloseButton;
15  protected SCR_ButtonTextComponent m_EditorPhotoOpenButton;
16  protected SCR_ButtonTextComponent m_EditorPhotoCloseButton;
17 
18  protected SCR_SaveLoadComponent m_SavingComponent;
19 
20  const string EXIT_SAVE = "#AR-PauseMenu_ReturnSaveTitle";
21  const string EXIT_NO_SAVE = "#AR-PauseMenu_ReturnTitle";
22 
23  const ResourceName ACTIONS_IMAGESET = "{2EFEA2AF1F38E7F0}UI/Textures/Icons/icons_wrapperUI-64.imageset";
24  const string EXIT_MESSAGE = "#AR-PauseMenu_ReturnText";
25  const string EXIT_TITLE = "#AR-PauseMenu_ReturnTitle";
26  const string EXIT_IMAGE = "exit";
27 
28  const string RESTART_MESSAGE = "#AR-PauseMenu_RestartText";
29  const string RESTART_TITLE = "#AR-PauseMenu_Restart";
30  const string RESTART_IMAGE = "restart";
31 
32  const string LOAD_MESSAGE = "#AR-PauseMenu_LoadText";
33  const string LOAD_TITLE = "#AR-PauseMenu_Load";
34  const string LOAD_IMAGE = "up";
35 
36  static ref ScriptInvoker m_OnPauseMenuOpened = new ScriptInvoker();
37  static ref ScriptInvoker m_OnPauseMenuClosed = new ScriptInvoker();
38 
39  protected static PauseMenuUI s_Instance;
40 
41  //------------------------------------------------------------------------------------------------
42  // If the pause menu was open, reinitialize it so it sits on top
43  static void MoveToTop()
44  {
45  if (!s_Instance)
46  return;
47 
48  s_Instance.Close();
49 
50  // Must be called the next frame for the menu to be reopened immediately after closing
51  GetGame().GetCallqueue().CallLater(OpenMenuOnTop);
52 
53  // TODO: tried setting the ZOrder but it does not work: ask for Enfusion API
54  }
55 
56  //------------------------------------------------------------------------------------------------
57  // Opens the pause menu with settings for it to be on top of other menus
58  static void OpenMenuOnTop()
59  {
60  GetGame().OpenPauseMenu(false, true);
61  }
62 
63  //------------------------------------------------------------------------------------------------
64  override void OnMenuOpen()
65  {
66  s_Instance = this;
67 
68  m_SavingComponent = SCR_SaveLoadComponent.GetInstance();
69 
71  m_wFade = m_wRoot.FindAnyWidget("BackgroundFade");
72  m_wSystemTime = m_wRoot.FindAnyWidget("SystemTime");
73  SCR_EditorManagerEntity editorManager = SCR_EditorManagerEntity.GetInstance();
75 
76  // Continue
77  comp = SCR_ButtonTextComponent.GetButtonText("Continue", m_wRoot);
78  if (comp)
79  {
80  GetGame().GetWorkspace().SetFocusedWidget(comp.GetRootWidget());
81  comp.m_OnClicked.Insert(Close);
82  }
83 
84  // Restart
85  comp = SCR_ButtonTextComponent.GetButtonText("Restart", m_wRoot);
86  if (comp)
87  {
88  bool enabledRestart = !Replication.IsRunning();
89  comp.GetRootWidget().SetVisible(enabledRestart);
90  comp.m_OnClicked.Insert(OnRestart);
91  }
92 
93  // Respawn
95 
96  comp = SCR_ButtonTextComponent.GetButtonText("Respawn", m_wRoot);
97  if (comp)
98  {
99  if (campaign && campaign.IsTutorial())
100  {
101  comp.SetVisible(false)
102  }
103  else
104  {
105  bool canRespawn;
106  BaseGameMode gameMode = GetGame().GetGameMode();
107  if (gameMode)
108  {
109  RespawnSystemComponent respawn = RespawnSystemComponent.Cast(gameMode.FindComponent(RespawnSystemComponent));
110  canRespawn = (respawn != null);
111  }
112 
113  comp.GetRootWidget().SetVisible(canRespawn);
114  comp.m_OnClicked.Insert(OnRespawn);
115  }
116  }
117 
118  // Leave faction
119  comp = SCR_ButtonTextComponent.GetButtonText("LeaveFaction", m_wRoot);
120  if (comp)
121  {
122  bool factionLeaveAllowed;
123  SCR_BaseGameMode gm = SCR_BaseGameMode.Cast(GetGame().GetGameMode());
124  if (gm)
125  factionLeaveAllowed = gm.IsFactionChangeAllowed();
126 
127  SCR_FactionManager fm = SCR_FactionManager.Cast(GetGame().GetFactionManager());
128  if (fm)
129  {
130  array<Faction> factions = {};
131  fm.GetFactionsList(factions);
132  int playableFactionCount = 0;
133  foreach (Faction f : factions)
134  {
135  SCR_Faction scriptedFaction = SCR_Faction.Cast(f);
136  if (scriptedFaction && scriptedFaction.IsPlayable())
137  playableFactionCount++;
138  }
139 
140  factionLeaveAllowed = factionLeaveAllowed && (playableFactionCount > 1);
141  }
142 
143  comp.GetRootWidget().SetVisible(factionLeaveAllowed);
144  if (factionLeaveAllowed)
145  {
146  PlayerController pc = GetGame().GetPlayerController();
148 
149  if (factionComp)
150  comp.SetEnabled(factionComp.GetAffiliatedFaction() != null);
151 
152  comp.m_OnClicked.Insert(OnLeaveFaction)
153  }
154  }
155 
156  // Exit
157  comp = SCR_ButtonTextComponent.GetButtonText("Exit", m_wRoot);
158  if (comp)
159  {
160  comp.m_OnClicked.Insert(OnExit);
161  if (IsSavingOnExit())
162  comp.SetText(EXIT_SAVE);
163  else
164  comp.SetText(EXIT_NO_SAVE);
165  }
166 
167  // Rewind
168  comp = SCR_ButtonTextComponent.GetButtonText("Rewind", m_wRoot);
169  if (comp)
170  {
171  SCR_RewindComponent rewindManager = SCR_RewindComponent.GetInstance();
172  comp.GetRootWidget().SetVisible(rewindManager != null); //--- Hide the button when rewinding is not configured for the mission
173  comp.GetRootWidget().SetEnabled(rewindManager && rewindManager.HasRewindPoint()); //--- Disable the button when the rewind point does not exist
174 
175  comp.m_OnClicked.Insert(OnRewind);
176  }
177 
178  // Tutorial HUB
179  comp = SCR_ButtonTextComponent.GetButtonText("ReturnHUB", m_wRoot);
180 
181  if (comp)
182  if (!campaign)
183  comp.SetVisible(false);
184  else
185  if (campaign.IsTutorial())
186  {
187  comp.SetVisible(true);
188  comp.m_OnClicked.Insert(OnReturnToHub);
189  }
190  else
191  comp.SetVisible(false);
192 
193  // Camera
194  comp = SCR_ButtonTextComponent.GetButtonText("Camera", m_wRoot);
195  if (comp)
196  {
197  comp.m_OnClicked.Insert(OnCamera);
198  comp.SetEnabled(editorManager && !editorManager.IsOpened());
199  comp.GetRootWidget().SetVisible(Game.IsDev());
200  }
201 
202  // Settings
203  comp = SCR_ButtonTextComponent.GetButtonText("Settings", m_wRoot);
204  if (comp)
205  comp.m_OnClicked.Insert(OnSettings);
206 
207  // Field Manual
208  comp = SCR_ButtonTextComponent.GetButtonText("FieldManual", m_wRoot);
209  if (comp)
210  {
211  comp.m_OnClicked.Insert(OnFieldManual);
212  }
213 
214  // Players
215  comp = SCR_ButtonTextComponent.GetButtonText("Players", m_wRoot);
216  if (comp)
217  {
218  comp.GetRootWidget().SetVisible(Replication.IsRunning());
219  comp.m_OnClicked.Insert(OnPlayers);
220  }
221 
222  // Invite friends
223  comp = SCR_ButtonTextComponent.GetButtonText("InviteFriend", m_wRoot);
224  if (comp)
225  {
226  bool canInvite = Replication.IsRunning() && GetGame().GetPlayerManager().IsMultiplayerActivityInviteAvailable();
227  comp.GetRootWidget().SetVisible(canInvite);
228 
229  if (canInvite)
230  comp.m_OnClicked.Insert(OnInviteFriends);
231  }
232 
233  // Version
234  m_wVersion = TextWidget.Cast(m_wRoot.FindAnyWidget("Version"));
235  if (m_wVersion)
236  m_wVersion.SetText(GetGame().GetBuildVersion());
237 
238  // Unlimited editor (Game Master)
239  m_EditorUnlimitedOpenButton = SCR_ButtonTextComponent.GetButtonText("EditorUnlimitedOpen",m_wRoot);
240  if (m_EditorUnlimitedOpenButton)
241  m_EditorUnlimitedOpenButton.m_OnClicked.Insert(OnEditorUnlimited);
242 
243  m_EditorUnlimitedCloseButton = SCR_ButtonTextComponent.GetButtonText("EditorUnlimitedClose",m_wRoot);
244  if (m_EditorUnlimitedCloseButton)
245  m_EditorUnlimitedCloseButton.m_OnClicked.Insert(OnEditorUnlimited);
246 
247  //--- Photo mode
248  m_EditorPhotoOpenButton = SCR_ButtonTextComponent.GetButtonText("EditorPhotoOpen",m_wRoot);
249  if (m_EditorPhotoOpenButton)
250  m_EditorPhotoOpenButton.m_OnClicked.Insert(OnEditorPhoto);
251  m_EditorPhotoCloseButton = SCR_ButtonTextComponent.GetButtonText("EditorPhotoClose",m_wRoot);
252  if (m_EditorPhotoCloseButton)
253  m_EditorPhotoCloseButton.m_OnClicked.Insert(OnEditorPhoto);
254 
255  SetEditorUnlimitedButton(editorManager);
256  SetEditorPhotoButton(editorManager);
257 
258  if (editorManager)
259  {
260  editorManager.GetOnModeAdd().Insert(OnEditorModeChanged);
261  editorManager.GetOnModeRemove().Insert(OnEditorModeChanged);
262  }
263 
264  comp = SCR_ButtonTextComponent.GetButtonText("Feedback", m_wRoot);
265  if (comp)
266  {
267  comp.m_OnClicked.Insert(OnFeedback);
268  }
269 
270  m_InputManager = GetGame().GetInputManager();
271 
272  m_OnPauseMenuOpened.Invoke();
273 
274  SCR_UISoundEntity.SoundEvent(SCR_SoundEvent.SOUND_FE_HUD_PAUSE_MENU_OPEN);
275  }
276 
277  //------------------------------------------------------------------------------------------------
278  override void OnMenuShow()
279  {
280  //--- Close pause menu when editor is opened or closed
281  SCR_EditorManagerEntity editorManager = SCR_EditorManagerEntity.GetInstance();
282  if (editorManager)
283  {
284  editorManager.GetOnOpened().Insert(Close);
285  editorManager.GetOnClosed().Insert(Close);
286  }
287  }
288 
289  //------------------------------------------------------------------------------------------------
290  override void OnMenuHide()
291  {
292  SCR_EditorManagerEntity editorManager = SCR_EditorManagerEntity.GetInstance();
293  if (editorManager)
294  {
295  editorManager.GetOnOpened().Insert(Close);
296  editorManager.GetOnClosed().Insert(Close);
297  }
298 
299  if (m_wFade)
300  m_wFade.SetVisible(false);
301  }
302 
303  //------------------------------------------------------------------------------------------------
304  override void OnMenuClose()
305  {
306  s_Instance = null;
307 
308  SCR_HUDManagerComponent hud = GetGame().GetHUDManager();
309  if (hud)
310  hud.SetVisible(true);
311 
312  m_OnPauseMenuClosed.Invoke();
313 
314  SCR_UISoundEntity.SoundEvent(SCR_SoundEvent.SOUND_FE_HUD_PAUSE_MENU_CLOSE);
315  }
316 
317  //------------------------------------------------------------------------------------------------
318  override void OnMenuFocusLost()
319  {
320  m_bFocused = false;
321  m_InputManager.RemoveActionListener("MenuOpen", EActionTrigger.DOWN, Close);
322  m_InputManager.RemoveActionListener("MenuBack", EActionTrigger.DOWN, Close);
323  #ifdef WORKBENCH
324  m_InputManager.RemoveActionListener("MenuOpenWB", EActionTrigger.DOWN, Close);
325  m_InputManager.RemoveActionListener("MenuBackWB", EActionTrigger.DOWN, Close);
326  #endif
327  }
328 
329  //------------------------------------------------------------------------------------------------
330  override void OnMenuFocusGained()
331  {
332  m_bFocused = true;
333  m_InputManager.AddActionListener("MenuOpen", EActionTrigger.DOWN, Close);
334  m_InputManager.AddActionListener("MenuBack", EActionTrigger.DOWN, Close);
335  #ifdef WORKBENCH
336  m_InputManager.AddActionListener("MenuOpenWB", EActionTrigger.DOWN, Close);
337  m_InputManager.AddActionListener("MenuBackWB", EActionTrigger.DOWN, Close);
338  #endif
339  }
340 
341  //------------------------------------------------------------------------------------------------
342  void FadeBackground(bool fade, bool animate = true)
343  {
344  if (!m_wFade)
345  return;
346 
347  m_wFade.SetVisible(fade);
348  m_wFade.SetOpacity(0);
349  if (fade && animate)
350  AnimateWidget.Opacity(m_wFade, 1, UIConstants.FADE_RATE_FAST, true);
351  }
352 
353  //------------------------------------------------------------------------------------------------
354  private void OnSettings()
355  {
356  GetGame().GetMenuManager().OpenMenu(ChimeraMenuPreset.SettingsSuperMenu);
357  }
358 
359  //------------------------------------------------------------------------------------------------
360  private void OnFieldManual()
361  {
362  GetGame().GetMenuManager().OpenMenu(ChimeraMenuPreset.FieldManualDialog);
363  }
364 
365  //------------------------------------------------------------------------------------------------
366  private void OnReturnToHub()
367  {
369 
370  if (!campaign)
371  return;
372 
373  SCR_CampaignTutorialArlandComponent component = SCR_CampaignTutorialArlandComponent.Cast(campaign.FindComponent(SCR_CampaignTutorialArlandComponent));
374 
375  component.SetActiveConfig(0);
376 
377  GetGame().GetMenuManager().CloseAllMenus();
378  }
379 
380  //------------------------------------------------------------------------------------------------
381  private void OnExit()
382  {
383  // Create exit dialog
384  SCR_ConfigurableDialogUi dialog = SCR_CommonDialogs.CreateDialog("scenario_exit");
385  if (!dialog)
386  return;
387 
388  dialog.m_OnConfirm.Insert(OnExitConfirm);
389 
390  }
391 
392  //------------------------------------------------------------------------------------------------
393  private void OnRewind()
394  {
395  new SCR_RewindDialog(ESaveType.EDITOR, string.Empty);
396  }
397 
398  //------------------------------------------------------------------------------------------------
399  private void OnExitConfirm()
400  {
401  if (IsSavingOnExit())
402  {
403  //--- Close only after the save file was created
404  GetGame().GetSaveManager().GetOnSaved().Insert(OnSaved);
405  GetGame().GetSaveManager().Save(ESaveType.AUTO);
406  }
407  else
408  {
409  //--- Close instantly
410  Close();
411  GameStateTransitions.RequestGameplayEndTransition();
412  }
413  }
414 
415  //------------------------------------------------------------------------------------------------
416  protected void OnSaved(ESaveType type, string fileName)
417  {
418  GetGame().GetSaveManager().GetOnSaved().Remove(OnSaved);
419  Close();
420  GameStateTransitions.RequestGameplayEndTransition();
421  }
422 
423  //------------------------------------------------------------------------------------------------
424  private void OnEditorUnlimited()
425  {
426  SCR_EditorManagerEntity editorManager = SCR_EditorManagerEntity.GetInstance();
427  if (editorManager)
428  {
429  if (!editorManager.IsOpened() || editorManager.GetCurrentModeEntity().IsLimited())
430  {
431  editorManager.SetCurrentMode(false);
432  editorManager.Open();
433  }
434  else
435  {
436  editorManager.Close();
437  }
438  }
439  Close();
440  }
441 
442  //Update Editor Mode Button text and if Enabled
443  //------------------------------------------------------------------------------------------------
444  private void SetEditorUnlimitedButton(SCR_EditorManagerEntity editorManager)
445  {
446  if (!m_EditorUnlimitedOpenButton || !m_EditorUnlimitedCloseButton) return;
447 
448  if (!editorManager || editorManager.IsLimited())
449  {
450  //--- LIMITED EDITOR
451 
452  //--- Show disabled "Open Unlimited Editor" button when editor is *legal* in the mission
453  bool isUnlimitedEditorLegal;
454  SCR_EditorSettingsEntity settingsEntity = SCR_EditorSettingsEntity.GetInstance();
455  if (settingsEntity)
456  isUnlimitedEditorLegal = settingsEntity.IsUnlimitedEditorLegal();
457 
458  m_EditorUnlimitedOpenButton.GetRootWidget().SetVisible(isUnlimitedEditorLegal);
459  m_EditorUnlimitedOpenButton.SetEnabled(false);
460 
461  //--- Don't show the "Close Unlimited Editor" button
462  m_EditorUnlimitedCloseButton.GetRootWidget().SetVisible(false);
463 
464  //--- Don't show the real-time clock
465  m_wSystemTime.SetVisible(false);
466  }
467  else
468  {
469  //--- UNLIMITED EDITOR
470  if (!editorManager.IsOpened() || editorManager.GetCurrentModeEntity().IsLimited())
471  {
472  //--- Current mode is limited, show the "Open Unlimited Editor" button
473  m_EditorUnlimitedOpenButton.GetRootWidget().SetVisible(true);
474  m_EditorUnlimitedCloseButton.GetRootWidget().SetVisible(false);
475  }
476  else
477  {
478  //--- Current mode is unlimited, show the "Close Unlimited Editor" button
479  m_EditorUnlimitedOpenButton.GetRootWidget().SetVisible(false);
480  m_EditorUnlimitedCloseButton.GetRootWidget().SetVisible(true);
481  m_EditorUnlimitedCloseButton.SetEnabled(editorManager.CanClose());
482  }
483 
484  //--- Show the real-time clock
485  m_wSystemTime.SetVisible(true);
486  }
487  }
488 
489  //Updates Editor and Photomode button if Rights changed
490  //------------------------------------------------------------------------------------------------
491  protected void OnEditorModeChanged(SCR_EditorModeEntity modeEntity)
492  {
493  SCR_EditorManagerEntity editorManager = SCR_EditorManagerEntity.GetInstance();
494  SetEditorUnlimitedButton(editorManager);
495  SetEditorPhotoButton(editorManager);
496  }
497 
498  //------------------------------------------------------------------------------------------------
499  private void OnEditorPhoto()
500  {
501  SCR_EditorManagerEntity editorManager = SCR_EditorManagerEntity.GetInstance();
502  if (editorManager)
503  {
504  if (!editorManager.IsOpened() || editorManager.GetCurrentMode() != EEditorMode.PHOTO)
505  {
506  editorManager.SetCurrentMode(EEditorMode.PHOTO);
507  editorManager.Open();
508  }
509  else
510  {
511  editorManager.Close();
512  }
513  }
514  Close();
515  }
516 
517  //Update Photo Mode Button text and if Enabled
518  //------------------------------------------------------------------------------------------------
519  private void SetEditorPhotoButton(SCR_EditorManagerEntity editorManager)
520  {
521  if (!m_EditorPhotoOpenButton || !m_EditorPhotoCloseButton) return;
522 
523  if (!editorManager || !editorManager.HasMode(EEditorMode.PHOTO))
524  {
525  m_EditorPhotoOpenButton.GetRootWidget().SetVisible(true);
526  m_EditorPhotoOpenButton.SetEnabled(false);
527  m_EditorPhotoCloseButton.GetRootWidget().SetVisible(false);
528  }
529  else
530  {
531  if (!editorManager.IsOpened() || editorManager.GetCurrentMode() != EEditorMode.PHOTO)
532  {
533  m_EditorPhotoOpenButton.GetRootWidget().SetVisible(true);
534  m_EditorPhotoCloseButton.GetRootWidget().SetVisible(false);
535 
536  //Set enabled
537  m_EditorPhotoOpenButton.SetEnabled(!editorManager.IsLimited() || GetGame().GetPlayerController().GetControlledEntity());
538  }
539  else
540  {
541  m_EditorPhotoOpenButton.GetRootWidget().SetVisible(false);
542  m_EditorPhotoCloseButton.GetRootWidget().SetVisible(true);
543  m_EditorPhotoCloseButton.SetEnabled(editorManager.CanClose());
544  }
545  }
546  }
547 
548  //------------------------------------------------------------------------------------------------
549  private void OnFeedback()
550  {
551  FeedbackDialogUI.OpenFeedbackDialog();
552  }
553 
554  //------------------------------------------------------------------------------------------------
555  private void OnRestart()
556  {
557  // Create dialog
558  SCR_ConfigurableDialogUi dialog = SCR_CommonDialogs.CreateDialog("scenario_restart");
559  if (!dialog)
560  return;
561 
562  dialog.m_OnConfirm.Insert(OnRestartConfirm);
563  }
564 
565  //------------------------------------------------------------------------------------------------
566  private void OnRestartConfirm()
567  {
568  GetGame().GetMenuManager().CloseAllMenus();
569  GameStateTransitions.RequestScenarioRestart();
570  }
571 
572  //------------------------------------------------------------------------------------------------
573  private void OnPlayers()
574  {
575  ArmaReforgerScripted.OpenPlayerList();
576  }
577 
578  //------------------------------------------------------------------------------------------------
579  protected void OnInviteFriends()
580  {
581  GetGame().GetPlayerManager().ShowMultiplayerActivityInvite();
582  }
583 
584  //------------------------------------------------------------------------------------------------
585  private void OnRespawn()
586  {
587  PlayerController playerController = GetGame().GetPlayerController();
588  if (!playerController)
589  return;
590 
591  SCR_RespawnComponent respawn = SCR_RespawnComponent.Cast(playerController.FindComponent(SCR_RespawnComponent));
592  if (!respawn)
593  return;
594 
595  respawn.RequestPlayerSuicide();
596  Close();
597  }
598 
599  //------------------------------------------------------------------------------------------------
600  private void OnLeaveFaction()
601  {
602  PlayerController pc = GetGame().GetPlayerController();
603  if (!pc)
604  return;
605 
607  if (!factionComp)
608  return;
609 
611  if (!rc)
612  return;
613 
614  factionComp.RequestFaction(null);
615  rc.RequestPlayerSuicide();
616 
617  Close();
618  }
619 
620  //------------------------------------------------------------------------------------------------
621  private void OnCamera()
622  {
624  if (cameraCore)
625  cameraCore.ToggleCamera();
626  Close();
627  }
628 
629  //------------------------------------------------------------------------------------------------
630  override void HandlerDeattached(Widget w)
631  {
632  super.HandlerDeattached(w);
633 
634  //Remove Editor modes listener
635  SCR_EditorManagerEntity editorManager = SCR_EditorManagerEntity.GetInstance();
636 
637  if (editorManager)
638  {
639  editorManager.GetOnModeAdd().Remove(OnEditorModeChanged);
640  editorManager.GetOnModeRemove().Remove(OnEditorModeChanged);
641  }
642  }
643 
644  //------------------------------------------------------------------------------------------------
645  protected bool IsSavingOnExit()
646  {
647  return !Replication.IsRunning() && GetGame().GetSaveManager().CanSave(ESaveType.AUTO) && m_SavingComponent && m_SavingComponent.CanSaveOnExit();
648  }
649 };
650 
651 
652 
ChimeraMenuBase
Constant variables used in various menus.
Definition: ChimeraMenuBase.c:70
SCR_BaseGameMode
Definition: SCR_BaseGameMode.c:137
SCR_HUDManagerComponent
Definition: SCR_HUDManagerComponent.c:23
SCR_RespawnComponent
void SCR_RespawnComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition: SCR_RespawnComponent.c:576
m_InputManager
protected InputManager m_InputManager
Definition: SCR_BaseManualCameraComponent.c:15
m_wRoot
protected Widget m_wRoot
Definition: SCR_ScenarioFrameworkLayerTaskDefend.c:59
FeedbackDialogUI
Definition: FeedbackDialogUI.c:239
SCR_UISoundEntity
Definition: SCR_UISoundEntity.c:7
UIConstants
Definition: Constants.c:130
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
PauseMenuUI
Definition: SCR_PauseMenuUI.c:2
SCR_CommonDialogs
Definition: CommonDialogs.c:5
SCR_SoundEvent
Definition: SCR_SoundEvent.c:1
SCR_EditorModeEntity
Definition: SCR_EditorModeEntity.c:22
GetPlayerController
proto external PlayerController GetPlayerController()
Definition: SCR_PlayerDeployMenuHandlerComponent.c:307
GetRootWidget
Widget GetRootWidget()
Definition: SCR_UITaskManagerComponent.c:160
SCR_EditorSettingsEntity
Definition: SCR_EditorSettingsEntity.c:12
SCR_RewindDialog
Definition: SCR_RewindComponent.c:71
GetGameMode
SCR_BaseGameMode GetGameMode()
Definition: SCR_BaseGameModeComponent.c:15
SCR_GameModeCampaign
void SCR_GameModeCampaign(IEntitySource src, IEntity parent)
Definition: SCR_GameModeCampaign.c:1927
SCR_DebugCameraCore
Debug manual camera.
Definition: SCR_DebugCameraCore.c:5
GameStateTransitions
Definition: GameStateTransitions.c:12
s_Instance
SCR_SpawnerSlotManagerClass s_Instance
Class used for managing changes and removals of slots present in world.
ESaveType
ESaveType
Definition: ESaveType.c:1
SCR_ButtonTextComponent
Definition: SCR_ButtonTextComponent.c:2
GetControlledEntity
SCR_EditableEntityComponent GetControlledEntity()
Returns the controlled entity or null if none.
Definition: SCR_EditablePlayerDelegateComponent.c:86
EEditorMode
EEditorMode
Editor mode that defines overall functionality.
Definition: EEditorMode.c:5
Faction
Definition: Faction.c:12
SCR_PlayerFactionAffiliationComponent
Definition: SCR_PlayerFactionAffiliationComponent.c:16
ChimeraMenuPreset
ChimeraMenuPreset
Menu presets.
Definition: ChimeraMenuBase.c:3
SCR_ConfigurableDialogUi
Definition: SCR_ConfigurableDialogUI.c:13
type
EDamageType type
Definition: SCR_DestructibleTreeV2.c:32
SCR_FactionManager
void SCR_FactionManager(IEntitySource src, IEntity parent)
Definition: SCR_FactionManager.c:461
SCR_Faction
Definition: SCR_Faction.c:6
SCR_EditorManagerEntity
Definition: SCR_EditorManagerEntity.c:26