Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_HUDManagerEditorVisibilityHandler.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "Which HUD Layout should be opened when a player exits Editor.")]
5 protected string m_sExitingEditorLayout;
6 [Attribute(desc: "Which HUD Layout should be opened when a player enters Editor.")]
7 protected string m_sEnteringEditorLayout;
8
9 protected bool m_bIsEditorOpen;
10
11 //------------------------------------------------------------------------------------------------
12 protected void OnEditorExit()
13 {
14 m_bIsEditorOpen = false;
15
17 if (layoutHandler)
19 }
20
21 //------------------------------------------------------------------------------------------------
22 protected void OnEditorEnter()
23 {
24 m_bIsEditorOpen = true;
25
27 if (layoutHandler)
29 }
30
31 //------------------------------------------------------------------------------------------------
32 protected void OnCharacterPossesed(IEntity entity)
33 {
34 if (!m_bIsEditorOpen)
35 return;
36
38 if (layoutHandler)
40 }
41
42 //------------------------------------------------------------------------------------------------
43 override void OnUpdate(notnull SCR_HUDManagerComponent owner)
44 {
46 }
47
48 //------------------------------------------------------------------------------------------------
50 {
52 SCR_EditorManagerEntity editorManager = SCR_EditorManagerEntity.GetInstance();
53
54 if (!pc || !editorManager || m_HUDManager.GetInfoDisplayCount() == 0)
55 return;
56
58 editorManager.GetOnOpened().Insert(OnEditorEnter);
59 editorManager.GetOnClosed().Insert(OnEditorExit);
60
61 m_HUDManager.RemoveHandlerFromUpdatableHandlers(this);
62
63 if (editorManager.IsOpened())
65 }
66}
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
void SCR_EditorManagerEntity(IEntitySource src, IEntity parent)
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
override void OnUpdate(notnull SCR_HUDManagerComponent owner)
SCR_HUDManagerComponent m_HUDManager
void ChangeActiveHUDLayout(string layoutIdentifier=string.Empty)
ref OnBeforePossessedInvoker m_OnBeforePossess
SCR_FieldOfViewSettings Attribute
proto external PlayerController GetPlayerController()