Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
IngameHudHeatBuffer Class Reference

Protected Member Functions

void IngameHudHeatBuffer (Widget root, notnull PlayerBase player)
bool CanUpdate ()
void OnPlayerConditionChanged (PlayerBase player)
void OnPlayerNegativeCondition (PlayerBase player)
void SetBaseAlpha (Widget hbw, float valuePercent, float stageThreshold)
void Update (float timeslice)
void UpdateEffect (Widget hbw, float duration, float timeslice)

Protected Attributes

int m_CurrentDirection
float m_CurrentValue
float m_EffectDuration
float m_EffectTime
bool m_FadeIn
int m_FlashingStage
ref map< int, floatm_FlashingThresholds
float m_FlashingTime
bool m_IsActive
PlayerBase m_Player
int m_PreviousDirection
Widget m_Root
bool m_Update

Detailed Description

Definition at line 2 of file ingamehudheatbuffer.c.

Constructor & Destructor Documentation

◆ IngameHudHeatBuffer()

Member Function Documentation

◆ CanUpdate()

bool CanUpdate ( )
inlineprotected

Definition at line 59 of file ingamehudheatbuffer.c.

References m_Player, and m_Update.

◆ OnPlayerConditionChanged()

void OnPlayerConditionChanged ( PlayerBase player)
inlineprotected

Definition at line 49 of file ingamehudheatbuffer.c.

References m_Player, m_Update, and Print().

Referenced by IngameHudHeatBuffer().

◆ OnPlayerNegativeCondition()

void OnPlayerNegativeCondition ( PlayerBase player)
inlineprotected

Definition at line 39 of file ingamehudheatbuffer.c.

References m_Player, m_Update, and Print().

Referenced by IngameHudHeatBuffer().

◆ SetBaseAlpha()

void SetBaseAlpha ( Widget hbw,
float valuePercent,
float stageThreshold )
inlineprotected

Definition at line 239 of file ingamehudheatbuffer.c.

References Math::Floor(), Math::Lerp(), and Print().

Referenced by Update().

◆ Update()

◆ UpdateEffect()

void UpdateEffect ( Widget hbw,
float duration,
float timeslice )
inlineprotected

Definition at line 251 of file ingamehudheatbuffer.c.

References Math::Clamp(), Math::Lerp(), m_EffectDuration, m_EffectTime, m_FadeIn, m_IsActive, and Print().

Referenced by Update().

Field Documentation

◆ m_CurrentDirection

int m_CurrentDirection
protected

Definition at line 8 of file ingamehudheatbuffer.c.

Referenced by IngameHudHeatBuffer(), and Update().

◆ m_CurrentValue

float m_CurrentValue
protected

Definition at line 6 of file ingamehudheatbuffer.c.

Referenced by Update().

◆ m_EffectDuration

float m_EffectDuration
protected

Definition at line 13 of file ingamehudheatbuffer.c.

Referenced by UpdateEffect().

◆ m_EffectTime

float m_EffectTime
protected

Definition at line 12 of file ingamehudheatbuffer.c.

Referenced by UpdateEffect().

◆ m_FadeIn

bool m_FadeIn
protected

Definition at line 14 of file ingamehudheatbuffer.c.

Referenced by UpdateEffect().

◆ m_FlashingStage

int m_FlashingStage
protected

Definition at line 16 of file ingamehudheatbuffer.c.

Referenced by IngameHudHeatBuffer(), and Update().

◆ m_FlashingThresholds

ref map<int, float> m_FlashingThresholds
protected

Definition at line 17 of file ingamehudheatbuffer.c.

Referenced by IngameHudHeatBuffer(), and Update().

◆ m_FlashingTime

float m_FlashingTime
protected

Definition at line 15 of file ingamehudheatbuffer.c.

Referenced by Update().

◆ m_IsActive

bool m_IsActive
protected

Definition at line 7 of file ingamehudheatbuffer.c.

Referenced by Update(), and UpdateEffect().

◆ m_Player

◆ m_PreviousDirection

int m_PreviousDirection
protected

Definition at line 9 of file ingamehudheatbuffer.c.

Referenced by IngameHudHeatBuffer(), and Update().

◆ m_Root

Widget m_Root
protected

Definition at line 4 of file ingamehudheatbuffer.c.

Referenced by IngameHudHeatBuffer(), and Update().

◆ m_Update

bool m_Update
protected

The documentation for this class was generated from the following file: