47 g_Game.GetVersion(version);
51 if (
GetGame().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();
165 else if (fraction < 0.5)
167 else if (fraction < 0.75)
proto native void CopyToClipboard(string text)
proto native World GetWorld()
proto native WorkspaceWidget GetWorkspace()
proto native Mission GetMission()
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)
ScriptInvoker GetOnInputDeviceChanged()
proto bool Insert(func fn, int flags=EScriptInvokerInsertFlags.IMMEDIATE)
insert method to list
proto string ToString(bool simple=true)
proto string ToString(bool beautify=true)
Vector to string.
proto native CGame GetGame()
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,...