ListBox1
Definition
-- @/=[C]:-1
function ListBox1(...)
Callers
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
function M.EndListBox() imgui.EndListBox() end
function M.ListBox1(string_label, int_current_item, charconstPtr_items, int_items_count, int_height_in_items)
if int_height_in_items == nil then int_height_in_items = -1 end
if charconstPtr_items == nil then log("E", "", "Parameter 'charconstPtr_items' of function 'ListBox1' cannot be nil, as the c type is 'const char *const[]'") ; return end
return imgui.ListBox1(string_label, int_current_item, charconstPtr_items, int_items_count, int_height_in_items)
end
@/lua/ge/extensions/editor/decalEditor.lua
im.PushItemWidth(avail.x)
if im.ListBox1("", templateSelectionIndex, im.ArrayCharPtrByTbl(names), table.getn(names), avail.y/21) then
editor.selectObjectById(templates[templateSelectionIndex[0]+1]:getID())
@/lua/ge/extensions/editor/roadTemplateEditor.lua
if im.ListBox1("", decalRoadSelectionIndex, im.ArrayCharPtrByTbl(roadNames), table.getn(roadNames), 4) then
editor.selectObjectById(decalRoads[decalRoadSelectionIndex[0]+1])
if im.ListBox1("", decorationSelectionIndex, im.ArrayCharPtrByTbl(decoNames), table.getn(decoNames), 4) then
editor.selectObjectById(decorations[decorationSelectionIndex[0]+1])
if im.ListBox1("", decalSelectionIndex, im.ArrayCharPtrByTbl(decalNames), table.getn(decalNames), 4) then
editor.selectObjectById(decals[decalSelectionIndex[0]+1])