Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_UICore.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
2 [BaseContainerProps(configRoot: true)]
3 class SCR_UICore: SCR_GameCoreBase
4 {
5  [Attribute("", UIWidgets.ResourceNamePicker, "UI sounds entity", "et")]
6  private ResourceName m_UISoundEntityPrefab;
7 
8  [Attribute("5")]
9  private int m_iMaxRecentGames;
10 
11  private static SCR_UICore s_Instance;
12 
13  //------------------------------------------------------------------------------------------------
15  override void OnGameStart()
16  {
17  if (!s_Instance)
18  s_Instance = this;
19 
20  if (!AnimateWidgetEntity.GetInstance())
21  {
22  IEntity animateWidgetEntity = GetGame().SpawnEntity(AnimateWidgetEntity);
23  if (animateWidgetEntity)
24  {
25  ChimeraWorld world = GetGame().GetWorld();
26  if (world)
27  {
28  world.RegisterEntityToBeUpdatedWhileGameIsPaused(animateWidgetEntity);
29  }
30  }
31  }
32 
33  if (!SCR_UISoundEntity.GetInstance())
34  GetGame().SpawnEntityPrefab(Resource.Load(m_UISoundEntityPrefab));
35 
36  if (!SCR_TooltipManagerEntity.GetInstance())
37  GetGame().SpawnEntity(SCR_TooltipManagerEntity);
38 
39  DiagMenu.RegisterBool(SCR_DebugMenuID.DEBUGUI_UI_SHOW_ALL_SETTINGS, "", "Show all settings", "UI");
40  }
41 
42  //------------------------------------------------------------------------------------------------
43  override void OnGameEnd()
44  {
45  if (s_Instance == this)
46  s_Instance = null;
47  }
48 }
ChimeraWorld
Definition: ChimeraWorld.c:12
SCR_TooltipManagerEntity
void SCR_TooltipManagerEntity(IEntitySource src, IEntity parent)
Definition: SCR_TooltipManagerEntity.c:170
SCR_UISoundEntity
Definition: SCR_UISoundEntity.c:7
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
s_Instance
SCR_SpawnerSlotManagerClass s_Instance
Class used for managing changes and removals of slots present in world.
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_UICore
Definition: SCR_UICore.c:3
SCR_DebugMenuID
SCR_DebugMenuID
This enum contains all IDs for DiagMenu entries added in script.
Definition: DebugMenuID.c:3
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