Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
huddebugwinhealth.c File Reference

Go to the source code of this file.

Data Structures

class  HudDebugWinHealthEntry

Functions

void ~HudDebugWinHealth ()
void CleanupEntries ()
override int GetType ()
void HandleTargetState (bool button)
override void Hide ()
void HudDebugWinHealth (Widget widget_root)
void InitDebug ()
void InitEntityEntries ()
void InitEntry (SyncedValue data)
bool OnClick (Widget w, int x, int y, int button)
 Called from HudDebug.c.
void RunRPC (HudDebugWinHealthEntry entry, int buttonID)
override void SetUpdate (bool state)
override void Show ()
override void Update ()
void UpdateZones ()

Variables

ButtonWidget m_ButtonSelf
ButtonWidget m_ButtonTarget
PluginDeveloperSync m_DevSyncPlugin
ref array< ref HudDebugWinHealthEntrym_Entries = {}
class HudDebugWinHealthEntry m_IsInit
bool m_IsModeSelf = true
TextWidget m_TargetDisplayNameW
EntityAI m_TargetEntity
Widget m_WgtPanel
ScrollWidget m_WgtPanelScroll

Function Documentation

◆ ~HudDebugWinHealth()

void ~HudDebugWinHealth ( )
protected

Definition at line 35 of file huddebugwinhealth.c.

References HudDebugWinBase::SetUpdate().

◆ CleanupEntries()

void CleanupEntries ( )
protected

Definition at line 315 of file huddebugwinhealth.c.

References m_Entries.

Referenced by Hide(), and Update().

◆ GetType()

override int GetType ( )
protected

Definition at line 68 of file huddebugwinhealth.c.

References HudDebug().

◆ HandleTargetState()

void HandleTargetState ( bool button)
protected

Definition at line 205 of file huddebugwinhealth.c.

References COLOR_YELLOW, m_ButtonSelf, m_ButtonTarget, and m_IsModeSelf.

Referenced by OnClick().

◆ Hide()

override void Hide ( )
protected

◆ HudDebugWinHealth()

void HudDebugWinHealth ( Widget widget_root)
protected

Definition at line 28 of file huddebugwinhealth.c.

References m_WgtPanel, m_WgtPanelScroll, and m_WgtRoot.

Referenced by Init().

◆ InitDebug()

void InitDebug ( )
protected

◆ InitEntityEntries()

void InitEntityEntries ( )
protected

◆ InitEntry()

◆ OnClick()

bool OnClick ( Widget w,
int x,
int y,
int button )
protected

Called from HudDebug.c.

Definition at line 132 of file huddebugwinhealth.c.

References HandleTargetState(), m_ButtonSelf, m_ButtonTarget, m_Entries, RunRPC(), x, and y.

◆ RunRPC()

void RunRPC ( HudDebugWinHealthEntry entry,
int buttonID )
protected

◆ SetUpdate()

override void SetUpdate ( bool state)
protected

Definition at line 92 of file huddebugwinhealth.c.

References g_Game, m_DevSyncPlugin, and HudDebugWinBase::SetRPCSent().

◆ Show()

override void Show ( )
protected

Definition at line 73 of file huddebugwinhealth.c.

References GetPlugin(), m_DevSyncPlugin, and HudDebugWinBase::SetUpdate().

◆ UpdateZones()

Variable Documentation

◆ m_ButtonSelf

ButtonWidget m_ButtonSelf
protected

Definition at line 19 of file huddebugwinhealth.c.

Referenced by HandleTargetState(), InitDebug(), and OnClick().

◆ m_ButtonTarget

ButtonWidget m_ButtonTarget
protected

Definition at line 20 of file huddebugwinhealth.c.

Referenced by HandleTargetState(), InitDebug(), and OnClick().

◆ m_DevSyncPlugin

PluginDeveloperSync m_DevSyncPlugin
protected

Definition at line 23 of file huddebugwinhealth.c.

Referenced by InitEntityEntries(), SetUpdate(), Show(), Update(), and UpdateZones().

◆ m_Entries

ref array<ref HudDebugWinHealthEntry> m_Entries = {}
protected

Definition at line 25 of file huddebugwinhealth.c.

Referenced by CleanupEntries(), InitEntry(), OnClick(), and UpdateZones().

◆ m_IsInit

class HudDebugWinHealthEntry m_IsInit

Referenced by Hide(), InitDebug(), and Update().

◆ m_IsModeSelf

bool m_IsModeSelf = true
protected

Definition at line 15 of file huddebugwinhealth.c.

Referenced by HandleTargetState(), InitDebug(), and Update().

◆ m_TargetDisplayNameW

TextWidget m_TargetDisplayNameW
protected

Definition at line 18 of file huddebugwinhealth.c.

Referenced by InitDebug(), InitEntityEntries(), and Update().

◆ m_TargetEntity

EntityAI m_TargetEntity
protected

Definition at line 22 of file huddebugwinhealth.c.

Referenced by Hide(), InitEntityEntries(), Update(), and UpdateZones().

◆ m_WgtPanel

Widget m_WgtPanel
protected

Definition at line 16 of file huddebugwinhealth.c.

Referenced by HudDebugWinHealth(), InitEntityEntries(), and InitEntry().

◆ m_WgtPanelScroll

ScrollWidget m_WgtPanelScroll
protected

Definition at line 17 of file huddebugwinhealth.c.

Referenced by HudDebugWinHealth(), and InitEntityEntries().