Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
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
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
SCR_DebugMenuID
This enum contains all IDs for DiagMenu entries added in script.
Definition
DebugMenuID.c:4
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
OnGameEnd
override void OnGameEnd()
Called on all machines when the world ends.
Definition
SCR_AnalyticsDataCollectionComponent.c:65
DiagMenu
Diagnostic and developer menu system.
Definition
DiagMenu.c:18
Resource
Object holding reference to resource. In destructor release the resource.
Definition
Resource.c:25
ResourceName
Definition
ResourceName.c:13
SCR_PlayerNamesFilterCache
Definition
SCR_PlayerNamesFilterCache.c:3
SCR_UICore
Definition
SCR_UICore.c:4
SCR_UISoundEntity
Definition
SCR_UISoundEntity.c:8
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
OnGameStart
override bool OnGameStart()
Gets called after world is initialized but before first ticks.
Definition
game.c:561
scripts
Game
UI
Sounds
SCR_UICore.c
Generated by
1.17.0