Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
DbgUI Class Reference

Detailed Description

Immediate mode debug UI API.

Per frame usage example:

bool m_ShowDbgUI = false;
float m_DbgSliderValue = 0.0;
array<string> m_DbgOptions = {"jedna", "dva", "tri"};
void OnUpdate(float timeslice)
{
DbgUI.Begin("Test");
DbgUI.Check("Show DbgUI", m_ShowDbgUI);
if (m_ShowDbgUI)
{
DbgUI.Text("DbgUI Test");
string name = "";
DbgUI.InputText("name", name);
if (DbgUI.Button("Print name"))
{
Print(name);
}
DbgUI.List("test list", m_DbgListSelection, m_DbgOptions);
DbgUI.Text("Choice = " + m_DbgListSelection.ToString());
DbgUI.Spacer(10);
DbgUI.SliderFloat("slider", m_DbgSliderValue, 0, 100);
DbgUI.Text("Slider value = " + ftoa(m_DbgSliderValue));
}
DbgUI.End();
}
override void OnUpdate()
int m_DbgListSelection
ref array< string > m_DbgOptions
Definition DbgUI.c:66
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.

For non-per frame usage example:

int m_DbgEventCount = 0;
void OnEvent(EventType eventTypeId, Param params)
{
m_DbgEventCount++;
DbgUI.BeginCleanupScope();
DbgUI.Begin("events", 300, 0);
DbgUI.Text("Events count = " + m_DbgEventCount.ToString());
DbgUI.End();
DbgUI.EndCleanupScope();
}
string Param(int index)
TypeID EventType
Definition EnWidgets.c:7

Definition at line 65 of file DbgUI.c.


The documentation for this class was generated from the following file:
  • scripts/Core/generated/Debug/DbgUI.c