Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
fracturedlegnotfr.c
Go to the documentation of this file.
2 {
4  {
5  m_Active = false;
6  }
7 
8  override int GetNotifierType()
9  {
10  return eNotifiers.NTF_FRACTURE;
11  }
12 
13  override void SetActive( bool state )
14  {
15  if (state == true)
16  {
17  DisplayBadge();
18  }
19  else
20  {
21  HideBadge();
22  }
23 
24  }
25 
26  override void DisplayBadge()
27  {
28  DisplayElementBadge dis_elm = DisplayElementBadge.Cast(GetVirtualHud().GetElement(eDisplayElements.DELM_BADGE_FRACTURE));
29  if( dis_elm )
30  {
31  dis_elm.SetLevel(eBadgeLevel.FIRST);
32  }
33 
34  }
35 
36  override void HideBadge()
37  {
38  DisplayElementBadge dis_elm = DisplayElementBadge.Cast(GetVirtualHud().GetElement(eDisplayElements.DELM_BADGE_FRACTURE));
39  if( dis_elm )
40  {
41  dis_elm.SetLevel(eBadgeLevel.NONE);
42  }
43  }
44 };
eBadgeLevel
eBadgeLevel
Definition: _constants.c:1
GetElement
DisplayElementBase GetElement(eDisplayElements element_id)
Definition: displaystatus.c:95
FracturedLegNotfr
Definition: fracturedlegnotfr.c:1
DisplayElementBadge
Definition: badgebleeding.c:1
GetVirtualHud
VirtualHud GetVirtualHud()
Definition: notifiersmanager.c:77
NotifiersManager
void NotifiersManager(PlayerBase player)
Definition: notifiersmanager.c:36
NotifierBase
Definition: notifierbase.c:1
eNotifiers
eNotifiers
Definition: notifiersmanager.c:1