28 m_WidgetRoot =
g_Game.GetWorkspace().CreateWidgets(
"gui/layouts/debug/day_z_debug_monitor.layout");
55 g_Game.GetVersion(version);
59 if (
g_Game.GetInput().IsKeyboardConnected())
67 string health =
string.Format(
" %1", value.
ToString());
73 string blood =
string.Format(
" %1", value.
ToString());
105 #ifdef PLATFORM_CONSOLE
110 widget.SetColor(0xFFFF8000);
120 widget.SetColor(0xFFFF8000);
125 widget.SetTextFormat(
"%1",
Math.
Round(value));
134 if (
GetUApi().GetInputByID(UAUICopyDebugMonitorPos).LocalPress())
136 string adjusted = (value[0] + 200000).
ToString() +
" " + value[2].
ToString();
137 g_Game.CopyToClipboard(adjusted);
174 float worldSize =
g_Game.GetWorld().GetWorldSize();
188 else if (fraction < 0.5)
190 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)
TextWidget m_EnvironmentTemperatureValue
int m_FPSTextDefaultColor
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
TextWidget m_VersionValue
void SetEnvironmentTemperature(float value)
TextWidget m_HeatComfortValue
void SetThermalBias(float value)
int GetTileFomFraction(float fraction)
TextWidget m_DmgSourceValue
void SetPosition(vector value)
TextWidget m_CopyPositionInfo
string CalculateMapTile(vector pos)
TextWidget m_MapTileValue
TextWidget m_ThermalBiasValue
void SetHeatComfort(float value)
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,...
static proto string ToString(void var, bool type=false, bool name=false, bool quotes=true)
Return string representation of variable.