Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_InfoDisplayExtended.c
Go to the documentation of this file.
1 //#define DISABLE_HUD
2 //#define DEBUG_INFO_DISPLAY_EXT
3 
4 enum EShowGUI // TODO: SCR_
5 {
6  IN_ADS = 1,
9  IN_PAUSE_MENU = 8,
10  WITHOUT_ENTITY = 16,
11  WHILE_UNCONSCIOUS = 32,
12  IN_EDITOR = 64
13 }
14 
15 //------------------------------------------------------------------------------------------------
16 class SCR_InfoDisplayExtended : SCR_InfoDisplay
17 {
18  [Attribute("1", UIWidgets.CheckBox, "Toggles ON/OFF info display.")]
19  protected bool m_bIsEnabled;
20 
21  [Attribute("39", UIWidgets.Flags, "Defines when the GUI element is allowed to show.", "", ParamEnumArray.FromEnum(EShowGUI) )]
22  private EShowGUI m_eShow;
23 
26  protected SCR_CharacterCameraHandlerComponent m_CameraHandler;
27  protected MenuManager m_MenuManager;
28  protected EventHandlerManagerComponent m_EventHandlerManager;
30 
32 
33  protected bool m_bInThirdPerson;
34  protected bool m_bInADS;
35  protected bool m_bIsUnconscious;
36  protected bool m_bInPauseMenu;
37  protected bool m_bInEditor;
38  protected bool m_bCanShow; // Global GUI visibility flag, is not meant to be fiddled with outside this class
39  protected bool m_bShowInAllCameras = true;
40 
41  //------------------------------------------------------------------------------------------------
42  // DEBUG: Used to output debug prints only for specific class
43  //------------------------------------------------------------------------------------------------
44  #ifdef DEBUG_INFO_DISPLAY_EXT
45  //------------------------------------------------------------------------------------------------
46  void _printClass(string str)
47  {
48  if (this.Type() != SCR_DeathScreenEffect)
49  return;
50 
51  Print(str, LogLevel.DEBUG);
52  }
53  #endif
54 
55  //------------------------------------------------------------------------------------------------
56  void SetEnabled(bool isEnabled)
57  {
58  m_bIsEnabled = isEnabled;
59  }
60 
61  //------------------------------------------------------------------------------------------------
62  // Interface methods for the extended InfoDisplay class.
63  //------------------------------------------------------------------------------------------------
64  protected bool DisplayStartDrawInit(IEntity owner)
65  {
66  return true;
67  }
68 
69  //------------------------------------------------------------------------------------------------
70  protected void DisplayStartDraw(IEntity owner);
71 
72  //------------------------------------------------------------------------------------------------
73  protected void DisplayStopDraw(IEntity owner);
74 
75  //------------------------------------------------------------------------------------------------
76  protected void DisplayInit(IEntity owner);
77 
78  //------------------------------------------------------------------------------------------------
79  protected void DisplayUpdate(IEntity owner, float timeSlice);
80 
81  //------------------------------------------------------------------------------------------------
82  protected void DisplayControlledEntityChanged(IEntity from, IEntity to);
83 
84  //------------------------------------------------------------------------------------------------
85  protected void DisplayConsciousnessChanged(bool conscious, bool init = false);
86 
87  //------------------------------------------------------------------------------------------------
89  protected void DisplayOnSuspended()
90  {
91  #ifdef DEBUG_INFO_DISPLAY_EXT
92  _printClass(string.Format("%1 [DisplayOnSuspended]", this));
93  #endif
94  }
95 
96  //------------------------------------------------------------------------------------------------
97  // Called when the visibility flags no longer suspend the GUI; e.g. GM left and GUI marked as not to show in GM -> GUI can show again
98  // Doesn't mean the GUI is visible, it is just not hidded due to visibility flags; use m_bShown to check the visibility
99  protected void DisplayOnResumed()
100  {
101  #ifdef DEBUG_INFO_DISPLAY_EXT
102  _printClass(string.Format("%1 [DisplayOnResumed]", this));
103  #endif
104  }
105 
106  //------------------------------------------------------------------------------------------------
107  // InfoDisplay events blocked for overriding.
108  // The interface methods above should be used instead.
109  //------------------------------------------------------------------------------------------------
110  private override event void OnStartDraw(IEntity owner)
111  {
112  #ifdef DEBUG_INFO_DISPLAY_EXT
113  _printClass(string.Format("%1 [OnStartDraw] owner: %2", this, owner));
114  #endif
115 
116  #ifdef DISABLE_HUD
117  m_bIsEnabled = false;
118  #endif
119 
120  if (!m_bIsEnabled)
121  return;
122 
123  m_MenuManager = GetGame().GetMenuManager();
124 
125  if (!m_MenuManager)
126  {
127  m_bIsEnabled = false;
128  return;
129  }
130 
131  m_HUDManager = SCR_HUDManagerComponent.GetHUDManager();
132 
133  if (!m_HUDManager)
134  {
135  m_bIsEnabled = false;
136  return;
137  }
138 
139  // Terminate if UI is not enabled for any of the camera modes (1PV, 3PV, ADS) && requires a controlled entity
140  if (m_eShow & (EShowGUI.IN_ADS | EShowGUI.IN_1ST_PERSON | EShowGUI.IN_3RD_PERSON | EShowGUI.WITHOUT_ENTITY) == 0)
141  {
142  m_bIsEnabled = false;
143  return;
144  }
145 
146  m_bShowInAllCameras = (m_eShow & (EShowGUI.IN_ADS | EShowGUI.IN_1ST_PERSON | EShowGUI.IN_3RD_PERSON)) == (EShowGUI.IN_ADS | EShowGUI.IN_1ST_PERSON | EShowGUI.IN_3RD_PERSON);
147 
148  m_PlayerController = SCR_PlayerController.Cast(GetGame().GetPlayerController());
149 
150  if (!m_PlayerController)
151  {
152  m_bIsEnabled = false;
153  return;
154  }
155 
156  // Init Editor Open/Close handling
157  SCR_EditorManagerEntity editorManager = SCR_EditorManagerEntity.GetInstance();
158 
159  // If Editor doesn't exist yet, we need to add invoker and postpone the initialization of Editor Open/Close invokers
160  if (!editorManager)
161  {
163  core.Event_OnEditorManagerInitOwner.Insert(OnEditorInit);
164  }
165  else
166  {
167  OnEditorInit(editorManager);
168  }
169 
170  // Init PauseMenu handling
171  if ((m_eShow & EShowGUI.IN_PAUSE_MENU) == 0)
172  {
173  PauseMenuUI.m_OnPauseMenuOpened.Insert(OnPauseMenuOpen);
174 
175  PauseMenuUI.m_OnPauseMenuClosed.Insert(OnPauseMenuClose);
176  }
177 
178  // Init monitor of controlled entity and setup initial GUI visibility
180  {
181  m_PlayerController.m_OnControlledEntityChanged.Insert(OnControlledEntityChanged);
182  }
183  // Init the 'OnControlledEntityChanged' with currently controlled entity
184  OnControlledEntityChanged(null, m_PlayerController.GetControlledEntity());
185 
187 
188  if (!m_bIsEnabled)
189  return;
190 
191  super.OnStartDraw(owner);
192 
193  if (!m_wRoot)
194  {
195  m_bIsEnabled = false;
196  return;
197  }
198 
199  // Call the interface method, to allow setup and customization of newly created InfoDisplayExtended class
200  DisplayStartDraw(owner);
201 
202  // Call the interface method, to allow init of custom 'EntityChanged' code
203  DisplayControlledEntityChanged(null, m_PlayerController.GetControlledEntity());
204 
205  // Call the interface method, with 'init = true' to flag this is not a standard state change, but initialization
207 
208  // Init visibility of newly created InfoDisplay
210  }
211 
212  //------------------------------------------------------------------------------------------------
213  private void OnControlledEntityChanged(IEntity from, IEntity to)
214  {
215  #ifdef DEBUG_INFO_DISPLAY_EXT
216  _printClass(string.Format("%1 [OnControlledEntityChanged] %2 -> %3", this, from, to));
217  #endif
218 
219  if (from)
220  {
221  ChimeraCharacter character = ChimeraCharacter.Cast(from);
222  if (character && m_CharacterController)
223  m_CharacterController.m_OnLifeStateChanged.Remove(OnLifeStateChanged);
224  }
225 
226  // Update camera handler + init 1st/3rd person monitoring, if visibility is changing between 1st/3rd person cameras
227  if (m_CameraHandler)
228  m_CameraHandler.GetThirdPersonSwitchInvoker().Remove(UpdateVisibility);
229 
230  if (to)
231  m_CameraHandler = SCR_CharacterCameraHandlerComponent.Cast(to.FindComponent(SCR_CharacterCameraHandlerComponent));
232  else
233  m_CameraHandler = null;
234 
236  m_CameraHandler.GetThirdPersonSwitchInvoker().Insert(UpdateVisibility);
237 
239  m_EventHandlerManager.RemoveScriptHandler("OnADSChanged", this, OnADSSwitched);
240 
241  IEntity eventHandlerOwner;
243  eventHandlerOwner = to;
244  else
245  eventHandlerOwner = m_OwnerEntity;
246 
247  if (eventHandlerOwner)
248  m_EventHandlerManager = EventHandlerManagerComponent.Cast(eventHandlerOwner.FindComponent(EventHandlerManagerComponent));
249  else
250  m_EventHandlerManager = null;
251 
253  m_EventHandlerManager.RegisterScriptHandler("OnADSChanged", this, OnADSSwitched);
254 
255  m_bIsUnconscious = false;
256 
257  // Update character controller
258  ChimeraCharacter character = ChimeraCharacter.Cast(to);
259  if (character)
260  {
261  m_CharacterController = SCR_CharacterControllerComponent.Cast(character.GetCharacterController());
263  {
264  m_CharacterController.m_OnLifeStateChanged.Insert(OnLifeStateChanged);
265  m_bIsUnconscious = m_CharacterController.IsUnconscious();
266  }
267  }
268 
269  // Init the state flags
270  m_bInADS = false;
271  m_bInThirdPerson = m_CameraHandler && m_CameraHandler.Is3rdPersonView();
272 
273  // Stop if InfoDisplay is not created yet - happens on the 1st 'init' run only
274  if (!m_wRoot)
275  return;
276 
277  // Call the interface method
279 
280  // Call the interface method, with 'init = true' to flag this is not a standard state change, but initialization when entity changed
282 
283  // Update visibility after entity changed
284  UpdateVisibility();
285  }
286 
287  //------------------------------------------------------------------------------------------------
288  private void OnADSSwitched(BaseWeaponComponent weapon, bool inADS)
289  {
290  #ifdef DEBUG_INFO_DISPLAY_EXT
291  _printClass(string.Format("%1 [OnADSSwitched] inADS: %2", this, inADS));
292  #endif
293 
294  m_bInADS = inADS;
295 
297  }
298 
299  //------------------------------------------------------------------------------------------------
300  private void OnLifeStateChanged(ECharacterLifeState previousLifeState, ECharacterLifeState newLifeState)
301  {
302  #ifdef DEBUG_INFO_DISPLAY_EXT
303  _printClass(string.Format("%1 [OnLifeStateChanged] lifeState: %2", this, SCR_Enum.GetEnumName(ECharacterLifeState, newLifeState)));
304  #endif
305 
306  m_bIsUnconscious = newLifeState == ECharacterLifeState.INCAPACITATED;
307 
309 
311  }
312 
313  //------------------------------------------------------------------------------------------------
314  private void OnPauseMenuOpen()
315  {
316  #ifdef DEBUG_INFO_DISPLAY_EXT
317  _printClass(string.Format("%1 [OnPauseMenuOpen]", this));
318  #endif
319 
320  m_bInPauseMenu = true;
321 
323  }
324 
325  //------------------------------------------------------------------------------------------------
326  private void OnPauseMenuClose()
327  {
328  #ifdef DEBUG_INFO_DISPLAY_EXT
329  _printClass(string.Format("%1 [OnPauseMenuClose]", this));
330  #endif
331 
332  m_bInPauseMenu = false;
333 
335  }
336 
337  //------------------------------------------------------------------------------------------------
338  private void OnEditorInit(SCR_EditorManagerEntity editorManager)
339  {
340  #ifdef DEBUG_INFO_DISPLAY_EXT
341  _printClass(string.Format("%1 [OnEditorInit] editorManager: %2", this, editorManager));
342  #endif
343 
344  if (!editorManager)
345  return;
346 
347  m_EditorManager = editorManager;
348  m_bInEditor = editorManager.IsOpened();
349 
350  // Init Editor handling
351  if ((m_eShow & EShowGUI.IN_EDITOR) == 0)
352  {
353  m_EditorManager.GetOnOpened().Insert(OnEditorOpen);
354 
355  m_EditorManager.GetOnClosed().Insert(OnEditorClose);
356  }
357  }
358 
359  //------------------------------------------------------------------------------------------------
360  private void OnEditorOpen()
361  {
362  #ifdef DEBUG_INFO_DISPLAY_EXT
363  _printClass(string.Format("%1 [OnEditorOpen]", this));
364  #endif
365 
366  m_bInEditor = true;
367 
369  }
370 
371  //------------------------------------------------------------------------------------------------
372  private void OnEditorClose()
373  {
374  #ifdef DEBUG_INFO_DISPLAY_EXT
375  _printClass(string.Format("%1 [OnEditorClose]", this));
376  #endif
377 
378  m_bInEditor = false;
379 
381  }
382 
383  //------------------------------------------------------------------------------------------------
384  private void UpdateVisibility()
385  {
386  #ifdef DEBUG_INFO_DISPLAY_EXT
387  _printClass(string.Format("%1 [UpdateVisibility] m_bInEditor: %2 | m_bInPauseMenu: %3 | m_bIsUnconscious: %4", this, m_bInEditor, m_bInPauseMenu, m_bIsUnconscious));
388  #endif
389 
390  bool menuPassed = !m_bInPauseMenu || (m_bInPauseMenu && m_eShow & EShowGUI.IN_PAUSE_MENU);
391  bool editorPassed = !m_bInEditor || (m_bInEditor && m_eShow & EShowGUI.IN_EDITOR);
392  bool statePassed = !m_bIsUnconscious || (m_bIsUnconscious && m_eShow & EShowGUI.WHILE_UNCONSCIOUS);
393  bool cameraPassed;
394 
395  if (m_CameraHandler)
396  {
397  m_bInThirdPerson = !m_bInADS && m_CameraHandler.Is3rdPersonView();
398 
399  cameraPassed = (m_bInADS && m_eShow & EShowGUI.IN_ADS) || (m_bInThirdPerson && m_eShow & EShowGUI.IN_3RD_PERSON) || (!m_bInThirdPerson && !m_bInADS && m_eShow & EShowGUI.IN_1ST_PERSON);
400  }
401  else
402  {
403  cameraPassed = m_eShow & EShowGUI.WITHOUT_ENTITY;
404  }
405 
406  bool updateNeeded = (cameraPassed && statePassed && menuPassed && editorPassed) != m_bCanShow;
407 
408  m_bCanShow = cameraPassed && statePassed && menuPassed && editorPassed;
409 
410  if (!updateNeeded)
411  return;
412 
413  Show(m_bShown);
414 
415  if (m_bCanShow)
417  else
419  }
420 
421  //------------------------------------------------------------------------------------------------
422  override void Show(bool show, float speed = UIConstants.FADE_RATE_INSTANT, EAnimationCurve curve = EAnimationCurve.LINEAR)
423  {
424  // Make hiding GUI cuz failing show-conditions always instant as we want to prevent visual artifacts
425  if (!m_bCanShow)
426  speed = UIConstants.FADE_RATE_INSTANT;
427 
428  #ifdef DEBUG_INFO_DISPLAY_EXT
429  _printClass(string.Format("%1 [Show] m_bShown && m_bCanShow: %2 | m_bShown: %3 | m_bCanShow: %4", this, show && m_bCanShow, show, m_bCanShow));
430  #endif
431 
432  super.Show(show && m_bCanShow, speed, curve);
433 
434  m_bShown = show; // Re-store the 'shown' flag, that get overridden inside the Show() method, so the info is not lost
435  }
436 
437  //------------------------------------------------------------------------------------------------
438  private override event void OnStopDraw(IEntity owner)
439  {
440  #ifdef DEBUG_INFO_DISPLAY_EXT
441  _printClass(string.Format("%1 [OnStopDraw] owner: %2", this, owner));
442  #endif
443 
444  #ifdef DISABLE_HUD
445  m_bIsEnabled = false;
446  #endif
447 
448  if (!m_bIsEnabled)
449  return;
450 
451  if (m_PlayerController)
452  m_PlayerController.m_OnControlledEntityChanged.Remove(OnControlledEntityChanged);
453 
455  m_CharacterController.m_OnLifeStateChanged.Remove(OnLifeStateChanged);
456 
457  PauseMenuUI.m_OnPauseMenuOpened.Remove(OnPauseMenuOpen);
458  PauseMenuUI.m_OnPauseMenuClosed.Remove(OnPauseMenuClose);
459 
460  if(m_EditorManager)
461  {
462  m_EditorManager.GetOnOpened().Remove(OnEditorOpen);
463  m_EditorManager.GetOnClosed().Remove(OnEditorClose);
464  }
465 
466  if(m_CameraHandler)
467  m_CameraHandler.GetThirdPersonSwitchInvoker().Remove(UpdateVisibility);
468 
470  m_EventHandlerManager.RemoveScriptHandler("OnADSChanged", this, OnADSSwitched);
471 
472  super.OnStopDraw(owner);
473 
474  DisplayStopDraw(owner);
475  }
476 
477  //------------------------------------------------------------------------------------------------
478  private override event void OnInit(IEntity owner)
479  {
480  #ifdef DEBUG_INFO_DISPLAY_EXT
481  _printClass(string.Format("%1 [OnInit] owner: %2", this, owner));
482  #endif
483 
484  #ifdef DISABLE_HUD
485  m_bIsEnabled = false;
486  #endif
487 
488  if (!m_bIsEnabled)
489  return;
490 
491  m_bAttachedToPlayerController = PlayerController.Cast(owner);
492 
493  super.OnInit(owner);
494 
495  DisplayInit(owner);
496  }
497 
498  //------------------------------------------------------------------------------------------------
499  private override event void UpdateValues(IEntity owner, float timeSlice)
500  {
501  if (!m_bIsEnabled || !m_bCanShow)
502  return;
503 
504  super.UpdateValues(owner, timeSlice);
505 
506  DisplayUpdate(owner, timeSlice);
507  }
508 }
m_bShown
protected bool m_bShown
Definition: SCR_InfoDisplay.c:61
OnEditorOpen
private void OnEditorOpen()
Definition: SCR_InfoDisplayExtended.c:360
SCR_HUDManagerComponent
Definition: SCR_HUDManagerComponent.c:23
OnADSSwitched
private void OnADSSwitched(BaseWeaponComponent weapon, bool inADS)
Definition: SCR_InfoDisplayExtended.c:288
SCR_PlayerController
Definition: SCR_PlayerController.c:31
SCR_Enum
Definition: SCR_Enum.c:1
EShowGUI
EShowGUI
Definition: SCR_InfoDisplayExtended.c:4
OnStopDraw
private override event void OnStopDraw(IEntity owner)
Definition: SCR_InfoDisplayExtended.c:438
m_EditorManager
protected SCR_EditorManagerEntity m_EditorManager
Definition: SCR_InfoDisplayExtended.c:29
m_wRoot
protected Widget m_wRoot
Definition: SCR_ScenarioFrameworkLayerTaskDefend.c:59
OnEditorInit
private void OnEditorInit(SCR_EditorManagerEntity editorManager)
Definition: SCR_InfoDisplayExtended.c:338
OnStartDraw
private override event void OnStartDraw(IEntity owner)
Definition: SCR_InfoDisplayExtended.c:110
DisplayStartDraw
protected void DisplayStartDraw(IEntity owner)
Definition: SCR_VonDisplay.c:730
ECharacterLifeState
ECharacterLifeState
Definition: ECharacterLifeState.c:12
OnControlledEntityChanged
private void OnControlledEntityChanged(IEntity from, IEntity to)
Runs every time the controlled entity has been changed.
Definition: SCR_InfoDisplayExtended.c:213
m_HUDManager
protected SCR_HUDManagerComponent m_HUDManager
Definition: game.c:41
UIConstants
Definition: Constants.c:130
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
m_bInADS
protected bool m_bInADS
Definition: SCR_InfoDisplayExtended.c:34
PauseMenuUI
Definition: SCR_PauseMenuUI.c:2
DisplayUpdate
protected void DisplayUpdate(IEntity owner, float timeSlice)
Definition: SCR_VonDisplay.c:618
IN_PAUSE_MENU
IN_PAUSE_MENU
Definition: SCR_InfoDisplayExtended.c:5
m_bInThirdPerson
protected bool m_bInThirdPerson
Definition: SCR_InfoDisplayExtended.c:33
func
func
Definition: SCR_AIThreatSystem.c:5
DisplayOnResumed
protected void DisplayOnResumed()
Definition: SCR_InfoDisplayExtended.c:99
m_bShowInAllCameras
protected bool m_bShowInAllCameras
Definition: SCR_InfoDisplayExtended.c:39
SCR_CharacterControllerComponent
Definition: SCR_CharacterControllerComponent.c:35
UpdateValues
private override event void UpdateValues(IEntity owner, float timeSlice)
Definition: SCR_InfoDisplayExtended.c:499
DisplayStopDraw
protected void DisplayStopDraw(IEntity owner)
Definition: SCR_VonDisplay.c:752
m_EventHandlerManager
protected EventHandlerManagerComponent m_EventHandlerManager
Definition: SCR_InfoDisplayExtended.c:28
m_bCanShow
protected bool m_bCanShow
Definition: SCR_InfoDisplayExtended.c:38
SetEnabled
void SetEnabled(bool isEnabled)
Definition: SCR_InfoDisplayExtended.c:56
Show
override void Show(bool show, float speed=UIConstants.FADE_RATE_INSTANT, EAnimationCurve curve=EAnimationCurve.LINEAR)
Definition: SCR_InfoDisplayExtended.c:422
WITHOUT_ENTITY
WITHOUT_ENTITY
Definition: SCR_InfoDisplayExtended.c:6
DisplayInit
protected void DisplayInit(IEntity owner)
SCR_EditorManagerCore
Core component to manage SCR_EditorManagerEntity.
Definition: SCR_EditorManagerCore.c:5
BaseWeaponComponent
Definition: BaseWeaponComponent.c:12
IN_EDITOR
IN_EDITOR
Definition: SCR_InfoDisplayExtended.c:8
DisplayControlledEntityChanged
protected void DisplayControlledEntityChanged(IEntity from, IEntity to)
Definition: SCR_VonDisplay.c:739
m_CharacterController
protected SCR_CharacterControllerComponent m_CharacterController
Definition: SCR_InfoDisplayExtended.c:25
m_eShow
private EShowGUI m_eShow
Definition: SCR_InfoDisplayExtended.c:22
m_bIsEnabled
protected bool m_bIsEnabled
Definition: SCR_BaseSupportStationComponent.c:97
m_CameraHandler
protected SCR_CharacterCameraHandlerComponent m_CameraHandler
Definition: SCR_InfoDisplayExtended.c:26
UpdateVisibility
private void UpdateVisibility()
Definition: SCR_InfoDisplayExtended.c:384
SCR_DeathScreenEffect
Definition: SCR_DeathScreenEffect.c:1
Attribute
enum EShowGUI Attribute("1", UIWidgets.CheckBox, "Toggles ON/OFF info display.")] protected bool m_bIsEnabled
OnPauseMenuOpen
private void OnPauseMenuOpen()
Definition: SCR_InfoDisplayExtended.c:314
OnPauseMenuClose
private void OnPauseMenuClose()
Definition: SCR_InfoDisplayExtended.c:326
IN_ADS
IN_ADS
Definition: SCR_InfoDisplayExtended.c:2
OnEditorClose
private void OnEditorClose()
Definition: SCR_InfoDisplayExtended.c:372
IN_3RD_PERSON
IN_3RD_PERSON
Definition: SCR_InfoDisplayExtended.c:4
m_bIsUnconscious
protected bool m_bIsUnconscious
Definition: SCR_InfoDisplayExtended.c:35
m_bAttachedToPlayerController
protected bool m_bAttachedToPlayerController
Definition: SCR_InfoDisplayExtended.c:31
DisplayConsciousnessChanged
protected void DisplayConsciousnessChanged(bool conscious, bool init=false)
IN_1ST_PERSON
IN_1ST_PERSON
Definition: SCR_InfoDisplayExtended.c:3
m_bInEditor
protected bool m_bInEditor
Definition: SCR_InfoDisplayExtended.c:37
DisplayOnSuspended
protected void DisplayOnSuspended()
Called when GUI is temporarily suspended due to visibility flags; e.g. GM entered and GUI marked as n...
Definition: SCR_InfoDisplayExtended.c:89
WHILE_UNCONSCIOUS
WHILE_UNCONSCIOUS
Definition: SCR_InfoDisplayExtended.c:7
m_bInPauseMenu
protected bool m_bInPauseMenu
Definition: SCR_InfoDisplayExtended.c:36
OnInit
private override event void OnInit(IEntity owner)
Definition: SCR_InfoDisplayExtended.c:478
m_PlayerController
protected SCR_PlayerController m_PlayerController
Definition: SCR_InfoDisplayExtended.c:24
m_MenuManager
protected MenuManager m_MenuManager
Definition: SCR_InfoDisplayExtended.c:27
OnLifeStateChanged
private void OnLifeStateChanged(ECharacterLifeState previousLifeState, ECharacterLifeState newLifeState)
Will be called when the life state of the character changes.
Definition: SCR_InfoDisplayExtended.c:300
DisplayStartDrawInit
protected bool DisplayStartDrawInit(IEntity owner)
Definition: SCR_InfoDisplayExtended.c:64
m_OwnerEntity
SCR_AIUtilityComponentClass m_OwnerEntity
SCR_EditorManagerEntity
Definition: SCR_EditorManagerEntity.c:26