ImGUI

GUI library

Flags

  1. WindowFlags_None

  2. WindowFlags_NoTitleBar

  3. WindowFlags_NoResize

  4. WindowFlags_NoMove

  5. WindowFlags_NoScrollbar

  6. WindowFlags_NoCollapse

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()

Function to specify the ends of the window

Example Usage:

text(text)

Plain text

Parameters:

  • text (string).

Example Usage:

textDisabled(text)

Text with color turned off

Parameters:

  • text (string).

Example Usage:

textColored(red, green, blue, text)

Colored text

Parameters:

  • red (number).

  • green (number).

  • blue (number).

  • text (string).

Example Usage:

bulletText(text)

Text with a round piece

Parameters:

  • text (string).

Example Usage:

checkbox(text, state)

Text with a round piece

Parameters:

  • text (string)

  • state (boolean)

Example Usage:

inputText(text, buffer)

Text with a round piece

Parameters:

  • text (string)

  • buffer (string)

Example Usage:

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)

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)

Text with a round piece

Parameters:

  • text (string)

  • buffer (string)

  • step (number)

  • step_fast (number)

  • format (string)

Example Usage:

listBox(text, current_item, items)

Text with a round piece

Parameters:

  • text (string)

  • current_item (number)

  • items (table)

Example Usage:

button(text, width, height)

A regular button

Parameters:

  • text (string)

  • width (number)

  • height (number)

Example Usage:

smallButton(text)

Small button

Parameters:

  • text (string)

Example Usage:

arrowButton(id, direction)

Button with arrows

Parameters:

  • id (string)

Example Usage:

sameLine(offset, spacing)

Text with a round piece

Parameters:

  • text (string)

Example Usage:

Last updated