Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
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")]
5
6//------------------------------------------------------------------------------------------------
9{
10 [Attribute("{5E5A12EF04688432}UI/layouts/HUD/Deathmatch/DeathmatchLayout.layout", UIWidgets.ResourceNamePicker, "layout", "")]
13 protected bool m_bShow = true;
14
15
16 //------------------------------------------------------------------------------------------------
17 void Show(bool show)
18 {
19 m_bShow = show;
20 }
21
22 //------------------------------------------------------------------------------------------------
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 {
34 }
35 }
36 }
37
38 if (m_RootWidget)
39 m_RootWidget.SetVisible(m_bShow);
40 }
41
42 //------------------------------------------------------------------------------------------------
44 {
45 if (m_RootWidget)
46 m_RootWidget.RemoveFromHierarchy();
47
48 m_RootWidget = null;
49 }
50};
ref DSGameConfig game
Definition DSConfig.c:81
ArmaReforgerScripted GetGame()
Definition game.c:1398
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
void SCR_GameModeHUDComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Widget CreateLayout(ResourceName path, EHudLayers layer, int zOrder=0)
SCR_FieldOfViewSettings Attribute