Immediate mode debug UI API.
bool m_ShowDbgUI = false;
int m_DbgListSelection = 0;
float m_DbgSliderValue = 0.0;
void OnUpdate(float timeslice)
{
if (m_ShowDbgUI)
{
string name = "";
{
}
DbgUI.
List(
"test list", m_DbgListSelection, m_DbgOptions);
DbgUI.
Text(
"Slider value = " + ftoa(m_DbgSliderValue));
}
}
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
Immediate mode debug UI API.
Definition: DbgUI.c:66
static proto void InputText(string txt, out string value, int pxWidth=150)
static proto void List(string label, out int selection, TStringArray elems)
static proto bool Button(string txt, int minWidth=0)
static proto void Begin(string windowTitle, float x=0, float y=0)
static proto void Check(string label, out bool checked)
static proto void Spacer(int height)
static proto void SliderFloat(string label, out float value, float min, float max, int pxWidth=150)
static proto void Text(string label)
proto external string ToString(int len=-1)
Integer to string with fixed length, padded with zeroes.