browserImGUI

GUI library

Variables

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)

  • direction (number)

Example Usage:

sameLine(offset, spacing)

Text with a round piece

Parameters:

  • offset (number)

  • spacing (number)

Example Usage:

image(id, wigth, height, uv0X, uv0Y, uv1X, uv1Y)

Draw image

Parameters:

  • id (number)

  • wigth (number)

  • height (number)

  • uv0X (number)

  • uv0Y (number)

  • uv1X (number)

  • uv1Y (number)

Example Usage:

Last updated