Immediate mode debug UI APIPer frame usage example:
More...
Immediate mode debug UI API
Per frame usage example:
int m_DbgListSelection = 0;
float m_DbgSliderValue = 0.0;
void OnUpdate(float timeslice)
{
{
DbgUI.Text(
"DbgUI Test");
if (
DbgUI.Button(
"Print name"))
{
}
DbgUI.List(
"test list", m_DbgListSelection, m_DbgOptions);
DbgUI.Text(
"Choice = " + m_DbgListSelection.ToString());
DbgUI.SliderFloat(
"slider", m_DbgSliderValue, 0, 100);
DbgUI.Text(
"Slider value = " + ftoa(m_DbgSliderValue));
}
}
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto void Print(void var)
Prints content of variable to console/log.
For non-per frame usage example:
int m_DbgEventCount = 0;
{
m_DbgEventCount++;
DbgUI.BeginCleanupScope();
DbgUI.Begin(
"events", 300, 0);
DbgUI.Text(
"Events count = " + m_DbgEventCount.ToString());
}
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
override void OnEvent(EventType eventTypeId, Param params)
Handles VON-related events.