Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_UICore.c
Go to the documentation of this file.
1//------------------------------------------------------------------------------------------------
2[BaseContainerProps(configRoot: true)]
3class SCR_UICore: SCR_GameCoreBase
4{
5 [Attribute("", UIWidgets.ResourceNamePicker, "UI sounds entity", "et")]
6 private ResourceName m_UISoundEntityPrefab;
7
8 private static SCR_UICore s_Instance;
9
10 //------------------------------------------------------------------------------------------------
12 override void OnGameStart()
13 {
14 if (!s_Instance)
15 s_Instance = this;
16
17 if (!SCR_UISoundEntity.GetInstance())
18 GetGame().SpawnEntityPrefab(Resource.Load(m_UISoundEntityPrefab));
19
20 SCR_PlayerNamesFilterCache.GetInstance();
21
22 DiagMenu.RegisterBool(SCR_DebugMenuID.DEBUGUI_UI_SHOW_ALL_SETTINGS, "", "Show all settings", "UI");
23 }
24
25 //------------------------------------------------------------------------------------------------
26 override void OnGameEnd()
27 {
28 SCR_PlayerNamesFilterCache.GetInstance().Destroy();
29
30 if (s_Instance == this)
31 s_Instance = null;
32 }
33
34}
SCR_DebugMenuID
This enum contains all IDs for DiagMenu entries added in script.
Definition DebugMenuID.c:4
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override void OnGameEnd()
Called on all machines when the world ends.
Diagnostic and developer menu system.
Definition DiagMenu.c:18
Object holding reference to resource. In destructor release the resource.
Definition Resource.c:25
SCR_FieldOfViewSettings Attribute
override bool OnGameStart()
Gets called after world is initialized but before first ticks.
Definition game.c:561