61 private void DbgUI() {}
64 static proto native
void DoUnitTest();
65 static proto native
void Text(
string label);
66 static proto native
void ColoredText(
int color,
string label);
67 static proto
void Check(
string label, out
bool checked);
68 static proto
void Combo(
string label, out
int selection,
TStringArray elems);
69 static proto
void List(
string label, out
int selection,
TStringArray elems);
70 static proto
void SliderFloat(
string label, out
float value,
float min,
float max,
int pxWidth = 150);
71 static proto native
void Spacer(
int height);
72 static proto native
void Panel(
string label,
int width,
int height,
int color = 0xaa555555);
73 static proto native
bool Button(
string txt,
int minWidth = 0);
74 static proto
void InputText(
string txt, out
string value,
int pxWidth = 150);
75 static proto
void InputInt(
string txt, out
int value,
int pxWidth = 150);
76 static proto
void InputFloat(
string txt, out
float value,
int pxWidth = 150);
78 static proto native
void PlotLive(
string label,
int sizeX,
int sizeY,
float val,
int timeStep = 100,
int historySize = 30,
int color = 0xFFFFFFFF);
80 static proto native
void SameLine();
81 static proto native
void SameSpot();
83 static proto native
void PushID_Int(
int int_id);
84 static proto native
void PushID_Str(
string str_id);
85 static proto native
void PopID();
87 static proto
void BeginCleanupScope();
88 static proto native
void EndCleanupScope();
90 static proto native
void Begin(
string windowTitle,
float x = 0,
float y = 0);
91 static proto native
void End();
94 static bool FloatOverride(
string id, inout
float value,
float min,
float max,
int precision = 1000,
bool sameLine =
true)
101 DbgUI.PushID_Str(
id+
"_override");
102 DbgUI.Check(
"override", enable);
108 float tmp = value * (
float)precision;
110 DbgUI.PushID_Str(
id+
"_slider");
111 DbgUI.SliderFloat(
"", tmp, min * (
float)precision, max * (
float)precision);
114 tmp = tmp / (
float)precision;
116 DbgUI.PushID_Str(
id+
"_slider_text");
117 DbgUI.Text(tmp.ToString());
Result for an object found in CGame.IsBoxCollidingGeometryProxy.