ImGui
Bindings for ImGui directly inside lua.
ImGui.Begin(id)
ImGui.Begin(id)function render()
ImGui.Begin("mymenu")
ImGui.Text("some text")
ImGui.End()
end
engine.addEventListener("render", render)ImGui.Begin(id, windowFlags)
ImGui.Begin(id, windowFlags)ImGui.End()
ImGui.End()ImGui.PushStyleColor(colorIndex, color)
ImGui.PushStyleColor(colorIndex, color)ImGui.PopStyleColor(count)
ImGui.PopStyleColor(count)ImGui.PushStyleVarFloat(varIndex, floatValue)
ImGui.PushStyleVarFloat(varIndex, floatValue)ImGui.PushStyleVarVec2(varIndex, vec2Value)
ImGui.PushStyleVarVec2(varIndex, vec2Value)ImGui.PopStyleVar(count)
ImGui.PopStyleVar(count)ImGui.PushFont(name, size)
ImGui.PushFont(name, size)ImGui.PopFont()
ImGui.PopFont()ImGui.GetTexture(name)
ImGui.GetTexture(name)Custom Textures
ImGui.BeginMenuBar()
ImGui.BeginMenuBar()ImGui.EndMenuBar()
ImGui.EndMenuBar()ImGui.BeginMenu(menuName)
ImGui.BeginMenu(menuName)ImGui.EndMenu()
ImGui.EndMenu()ImGui.MenuItem(label, shortCut, selected)
ImGui.MenuItem(label, shortCut, selected)ImGui.SameLine(offsetFromStart, spacing)
ImGui.SameLine(offsetFromStart, spacing)ImGui.Image(texture, size)
ImGui.Image(texture, size)ImGui.Text(text)
ImGui.Text(text)ImGui.calcTextSize(text)
ImGui.calcTextSize(text)ImGui.Checkbox(text, state)
ImGui.Checkbox(text, state)ImGui.Button(text, [size])
ImGui.Button(text, [size])ImGui.GetRandomColor([alphaFloat])
ImGui.GetRandomColor([alphaFloat])Last updated