Widgets: List Boxes
those marked with [O] are optional
-- ImGui.ListBox(...)
-- Parameters: text (label), int (current_item), table (items), int (items_count), int (height_in_items) [O]
-- Returns: int (current_item), bool (clicked)
-- Overloads
current_item, clicked = ImGui.ListBox("Label", current_item, { "Item 1", "Item 2", 2 })
current_item, clicked = ImGui.ListBox("Label", current_item, { "Item 1", "Item 2", 2 }, 5)
-- ImGui.BeginListBox(...)
-- Parameters A: text (label), float (size_x) [O], float (size_y) [O]
-- Returns: bool (open)
-- Overloads
open = ImGui.BeginListBox("Label")
open = ImGui.BeginListBox("Label", 100.0, 100.0)
-- ImGui.EndListBox()
ImGui.EndListBox()Last updated
