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_GameModeHUDComponent.c
Go to the documentation of this file.
1
[
ComponentEditorProps
(
category
:
"GameScripted/GameMode"
, description:
"Base UI Component for deathmatch game mode"
)]
2
class
SCR_GameModeHUDComponentClass
:
ScriptComponentClass
3
{
4
};
5
6
//------------------------------------------------------------------------------------------------
8
class
SCR_GameModeHUDComponent
:
ScriptComponent
9
{
10
[
Attribute
(
"{5E5A12EF04688432}UI/layouts/HUD/Deathmatch/DeathmatchLayout.layout"
,
UIWidgets
.ResourceNamePicker,
"layout"
,
""
)]
11
protected
ResourceName
m_sLayout
;
12
protected
Widget
m_RootWidget
;
13
protected
bool
m_bShow
=
true
;
14
15
16
//------------------------------------------------------------------------------------------------
17
void
Show
(
bool
show)
18
{
19
m_bShow
= show;
20
}
21
22
//------------------------------------------------------------------------------------------------
23
void
SCR_GameModeHUDComponent
(
IEntityComponentSource
src,
IEntity
ent,
IEntity
parent)
24
{
25
if
(
m_sLayout
!=
string
.Empty)
26
{
27
ArmaReforgerScripted
game
=
GetGame
();
28
if
(
game
)
29
{
30
SCR_HUDManagerComponent
manager =
game
.GetHUDManager();
31
if
(manager)
32
{
33
m_RootWidget
= manager.
CreateLayout
(
m_sLayout
,
EHudLayers
.LOW);
34
}
35
}
36
}
37
38
if
(
m_RootWidget
)
39
m_RootWidget
.SetVisible(
m_bShow
);
40
}
41
42
//------------------------------------------------------------------------------------------------
43
void
~SCR_GameModeHUDComponent
()
44
{
45
if
(
m_RootWidget
)
46
m_RootWidget
.RemoveFromHierarchy();
47
48
m_RootWidget
= null;
49
}
50
};
game
ref DSGameConfig game
Definition
DSConfig.c:81
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
ComponentEditorProps
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
Definition
SCR_AIGroupUtilityComponent.c:12
EHudLayers
EHudLayers
Definition
SCR_HUDManagerComponent.c:6
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
IEntityComponentSource
Definition
IEntityComponentSource.c:13
IEntity
Definition
IEntity.c:13
ResourceName
Definition
ResourceName.c:13
SCR_GameModeHUDComponentClass
Definition
SCR_GameModeHUDComponent.c:3
SCR_GameModeHUDComponent::m_sLayout
ResourceName m_sLayout
Definition
SCR_GameModeHUDComponent.c:11
SCR_GameModeHUDComponent::~SCR_GameModeHUDComponent
void ~SCR_GameModeHUDComponent()
Definition
SCR_GameModeHUDComponent.c:43
SCR_GameModeHUDComponent::m_bShow
bool m_bShow
Definition
SCR_GameModeHUDComponent.c:13
SCR_GameModeHUDComponent::Show
void Show(bool show)
Definition
SCR_GameModeHUDComponent.c:17
SCR_GameModeHUDComponent::SCR_GameModeHUDComponent
void SCR_GameModeHUDComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition
SCR_GameModeHUDComponent.c:23
SCR_GameModeHUDComponent::m_RootWidget
Widget m_RootWidget
Definition
SCR_GameModeHUDComponent.c:12
SCR_HUDManagerComponent
Definition
SCR_HUDManagerComponent.c:24
SCR_HUDManagerComponent::CreateLayout
Widget CreateLayout(ResourceName path, EHudLayers layer, int zOrder=0)
Definition
SCR_HUDManagerComponent.c:305
ScriptComponentClass
Definition
ScriptComponentClass.c:8
ScriptComponent
Definition
ScriptComponent.c:24
UIWidgets
Definition
attributes.c:40
Widget
Definition
Widget.c:13
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
UI
HUD
SCR_GameModeHUDComponent.c
Generated by
1.17.0