25 m_WidgetRoot =
g_Game.GetWorkspace().CreateWidgets(
"gui/layouts/debug/day_z_debug_monitor.layout");
47 g_Game.GetVersion(version);
51 if (
g_Game.GetInput().IsKeyboardConnected())
59 string health =
string.Format(
" %1", value.
ToString());
65 string blood =
string.Format(
" %1", value.
ToString());
97 #ifdef PLATFORM_CONSOLE
102 widget.SetColor(0xFFFF8000);
112 widget.SetColor(0xFFFF8000);
117 widget.SetTextFormat(
"%1",
Math.
Round(value));
126 if (
GetUApi().GetInputByID(UAUICopyDebugMonitorPos).LocalPress())
128 string adjusted = (value[0] + 200000).
ToString() +
" " + value[2].
ToString();
129 g_Game.CopyToClipboard(adjusted);
151 float worldSize =
g_Game.GetWorld().GetWorldSize();
165 else if (fraction < 0.5)
167 else if (fraction < 0.75)
TextWidget m_PositionValue
void SetLastDamage(string value)
TextWidget m_WindowLabelText
void SetBlood(float value)
void SetFramerate(float current, float min, float max, float avg)
void SetHealth(float value)
int m_FPSTextDefaultColor
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
TextWidget m_VersionValue
int GetTileFomFraction(float fraction)
TextWidget m_DmgSourceValue
void SetPosition(vector value)
TextWidget m_CopyPositionInfo
string CalculateMapTile(vector pos)
TextWidget m_MapTileValue
void SetFramerateText(TextWidget widget, float value)
proto string ToString(bool simple=true)
proto string ToString(bool beautify=true)
Vector to string.
static proto float Round(float f)
Returns mathematical round of value.
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...