ImGUI
GUI library
WindowFlags_None
WindowFlags_NoTitleBar
WindowFlags_NoResize
WindowFlags_NoMove
WindowFlags_NoScrollbar
WindowFlags_NoCollapse
begin(title, flags)
begin(title, flags)Function to specify the beginning of the window
Parameters:
title(string).flags(imgui.constants)
Example Usage:
-- Example code showing how to use the function
local window_flags = imgui.constants.WindowFlags_NoResize
registerImGuiRenderEvent(function()
if imgui.begin("Test", window_flags) then
end
imgui.endBegin()
end)endBegin()
endBegin()Function to specify the ends of the window
Example Usage:
text(text)
text(text)Plain text
Parameters:
text(string).
Example Usage:
textDisabled(text)
textDisabled(text)Text with color turned off
Parameters:
text(string).
Example Usage:
textColored(red, green, blue, text)
textColored(red, green, blue, text)Colored text
Parameters:
red(number).green(number).blue(number).text(string).
Example Usage:
bulletText(text)
bulletText(text)Text with a round piece
Parameters:
text(string).
Example Usage:
checkbox(text, state)
checkbox(text, state)Text with a round piece
Parameters:
text(string)state(boolean)
Example Usage:
inputText(text, buffer)
inputText(text, buffer)Text with a round piece
Parameters:
text(string)buffer(string)
Example Usage:
inputText(text, buffer, wight, height)
inputText(text, buffer, wight, height)Text with a round piece
Parameters:
text(string)state(boolean)wight(bumber)height(number)
Example Usage:
inputInt(text, int_value, step, step_fast)
inputInt(text, int_value, step, step_fast)Text with a round piece
Parameters:
text(string)buffer(string)step(number)step_fast(number)
Example Usage:
inputFloat(text, float_value, step, step_fast, format)
inputFloat(text, float_value, step, step_fast, format)Text with a round piece
Parameters:
text(string)buffer(string)step(number)step_fast(number)format(string)
Example Usage:
listBox(text, current_item, items)
listBox(text, current_item, items)Text with a round piece
Parameters:
text(string)current_item(number)items(table)
Example Usage:
button(text, width, height)
button(text, width, height)A regular button
Parameters:
text(string)width(number)height(number)
Example Usage:
smallButton(text)
smallButton(text)Small button
Parameters:
text(string)
Example Usage:
arrowButton(id, direction)
arrowButton(id, direction)Button with arrows
Parameters:
id(string)
Example Usage:
sameLine(offset, spacing)
sameLine(offset, spacing)Text with a round piece
Parameters:
text(string)
Example Usage:
Last updated