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

Protected Member Functions

string CalculateMapTile (vector pos)
int GetTileFomFraction (float fraction)
void Hide ()
bool IsVisible ()
void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
void SetFramerateText (TextWidget widget, float value)
 Sets the provided text widget to display framerate value.
void SetPosition (vector value)
void Show ()

Protected Attributes

bool m_IsUsingKBM

Private Member Functions

void DebugMonitor ()
void Init ()
void SetBlood (float value)
void SetFramerate (float current, float min, float max, float avg)
 Update the framerate values displayed within the debug monitor with new ones.
void SetHealth (float value)
void SetLastDamage (string value)

Private Attributes

TextWidget m_BloodValue
TextWidget m_CopyPositionInfo
TextWidget m_DmgSourceValue
TextWidget m_FPSAvgValue
TextWidget m_FPSMaxValue
TextWidget m_FPSMinValue
int m_FPSTextDefaultColor
TextWidget m_FPSValue
TextWidget m_HealthValue
TextWidget m_MapTileValue
TextWidget m_PositionValue
TextWidget m_VersionValue
Widget m_WidgetRoot
TextWidget m_WindowLabelText

Detailed Description

Definition at line 1 of file debugmonitor.c.

Constructor & Destructor Documentation

◆ DebugMonitor()

Member Function Documentation

◆ CalculateMapTile()

string CalculateMapTile ( vector pos)
inlineprotected

Definition at line 148 of file debugmonitor.c.

References g_Game, GetTileFomFraction(), and Math::InverseLerp().

Referenced by SetPosition().

◆ GetTileFomFraction()

int GetTileFomFraction ( float fraction)
inlineprotected

Definition at line 161 of file debugmonitor.c.

Referenced by CalculateMapTile().

◆ Hide()

void Hide ( )
inlineprotected

Definition at line 143 of file debugmonitor.c.

References m_WidgetRoot.

◆ Init()

void Init ( )
inlineprivate

Definition at line 44 of file debugmonitor.c.

References g_Game, m_IsUsingKBM, m_VersionValue, m_WidgetRoot, and OnInputDeviceChanged().

◆ IsVisible()

bool IsVisible ( )
inlineprotected

Definition at line 182 of file debugmonitor.c.

References m_WidgetRoot.

◆ OnInputDeviceChanged()

void OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
inlineprotected

Definition at line 174 of file debugmonitor.c.

References m_IsUsingKBM.

Referenced by Init().

◆ SetBlood()

void SetBlood ( float value)
inlineprivate

Definition at line 63 of file debugmonitor.c.

References m_BloodValue, and float::ToString().

◆ SetFramerate()

void SetFramerate ( float current,
float min,
float max,
float avg )
inlineprivate

Update the framerate values displayed within the debug monitor with new ones.

Definition at line 80 of file debugmonitor.c.

References m_FPSAvgValue, m_FPSMaxValue, m_FPSMinValue, m_FPSValue, and SetFramerateText().

◆ SetFramerateText()

void SetFramerateText ( TextWidget widget,
float value )
inlineprotected

Sets the provided text widget to display framerate value.

Formats and colors the widget according to the value.

Definition at line 92 of file debugmonitor.c.

References COLOR_RED, COLOR_YELLOW, m_FPSTextDefaultColor, and Math::Round().

Referenced by SetFramerate().

◆ SetHealth()

void SetHealth ( float value)
inlineprivate

Definition at line 57 of file debugmonitor.c.

References m_HealthValue, and float::ToString().

◆ SetLastDamage()

void SetLastDamage ( string value)
inlineprivate

Definition at line 69 of file debugmonitor.c.

References m_DmgSourceValue.

◆ SetPosition()

void SetPosition ( vector value)
inlineprotected

◆ Show()

void Show ( )
inlineprotected

Definition at line 138 of file debugmonitor.c.

References m_WidgetRoot.

Field Documentation

◆ m_BloodValue

TextWidget m_BloodValue
private

Definition at line 10 of file debugmonitor.c.

Referenced by DebugMonitor(), and SetBlood().

◆ m_CopyPositionInfo

TextWidget m_CopyPositionInfo
private

Definition at line 14 of file debugmonitor.c.

Referenced by DebugMonitor(), and SetPosition().

◆ m_DmgSourceValue

TextWidget m_DmgSourceValue
private

Definition at line 11 of file debugmonitor.c.

Referenced by DebugMonitor(), and SetLastDamage().

◆ m_FPSAvgValue

TextWidget m_FPSAvgValue
private

Definition at line 19 of file debugmonitor.c.

Referenced by DebugMonitor(), and SetFramerate().

◆ m_FPSMaxValue

TextWidget m_FPSMaxValue
private

Definition at line 18 of file debugmonitor.c.

Referenced by DebugMonitor(), and SetFramerate().

◆ m_FPSMinValue

TextWidget m_FPSMinValue
private

Definition at line 17 of file debugmonitor.c.

Referenced by DebugMonitor(), and SetFramerate().

◆ m_FPSTextDefaultColor

int m_FPSTextDefaultColor
private

Definition at line 21 of file debugmonitor.c.

Referenced by DebugMonitor(), and SetFramerateText().

◆ m_FPSValue

TextWidget m_FPSValue
private

Definition at line 16 of file debugmonitor.c.

Referenced by DebugMonitor(), and SetFramerate().

◆ m_HealthValue

TextWidget m_HealthValue
private

Definition at line 9 of file debugmonitor.c.

Referenced by DebugMonitor(), and SetHealth().

◆ m_IsUsingKBM

bool m_IsUsingKBM
protected

Definition at line 3 of file debugmonitor.c.

Referenced by Init(), OnInputDeviceChanged(), and SetPosition().

◆ m_MapTileValue

TextWidget m_MapTileValue
private

Definition at line 12 of file debugmonitor.c.

Referenced by DebugMonitor(), and SetPosition().

◆ m_PositionValue

TextWidget m_PositionValue
private

Definition at line 13 of file debugmonitor.c.

Referenced by DebugMonitor(), and SetPosition().

◆ m_VersionValue

TextWidget m_VersionValue
private

Definition at line 8 of file debugmonitor.c.

Referenced by DebugMonitor(), and Init().

◆ m_WidgetRoot

Widget m_WidgetRoot
private

Definition at line 5 of file debugmonitor.c.

Referenced by DebugMonitor(), Hide(), Init(), IsVisible(), and Show().

◆ m_WindowLabelText

TextWidget m_WindowLabelText
private

Definition at line 6 of file debugmonitor.c.


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