GE Lua Documentation

Press F to search!

ListBox1

Definition


-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:782
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 string_label == nil then log("E", "", "Parameter 'string_label' of function 'ListBox1' cannot be nil, as the c type is 'const char *'") ; return end
  if int_current_item == nil then log("E", "", "Parameter 'int_current_item' of function 'ListBox1' cannot be nil, as the c type is 'int *'") ; return 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

Callers

@/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/common/extensions/ui/imgui_gen_luaintf.lua
  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/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])