GE Lua Documentation

Press F to search!

Combo1

Definition


-- @/=[C]:-1
function Combo1(...)

Callers

@/lua/ge/extensions/editor/dynamicDecals/loadSave.lua
    im.PushItemWidth(120)
    if im.Combo1("##LoadingMode", editor.getTempInt_NumberNumber(loadingMode), loadingModeNamesCharPtr) then
      loadingMode = editor.getTempInt_NumberNumber()
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
function M.EndCombo() imgui.EndCombo() end
function M.Combo1(string_label, int_current_item, charconstPtr_items, int_items_count, int_popup_max_height_in_items)
  if int_popup_max_height_in_items == nil then int_popup_max_height_in_items = -1 end
  if charconstPtr_items == nil then log("E", "", "Parameter 'charconstPtr_items' of function 'Combo1' cannot be nil, as the c type is 'const char *const[]'") ; return end
  return imgui.Combo1(string_label, int_current_item, charconstPtr_items, int_items_count, int_popup_max_height_in_items)
end
@/lua/ge/extensions/editor/terrainEditor.lua

        if im.Combo1("##MaterialCombo_" .. map.path, map.materialId, var.paintMaterialNamesArrayPtr) then
          map.material = var.paintMaterialNamesArray[map.materialId[0] + 1]
@/lua/ge/extensions/editor/rayCastTest.lua
    local rayCastMode = imgui.IntPtr(editor.getPreference("raycastTest.general.rayCastMode"))
    if imgui.Combo1("##rayCastMode", rayCastMode, rayCastModesArray) then
      editor.setPreference("raycastTest.general.rayCastMode", rayCastMode[0])
@/lua/ge/extensions/editor/assetManagementTool.lua

  if imgui.Combo1("##searchDuplicatesFileTypeCombo", searchDuplicatesFileTypesIndexPtr, searchDuplicatesFileTypesComboItems) then
    local idx = searchDuplicatesFileTypesIndexPtr[0] + 1

  if imgui.Combo1("##namingFileTypeCombo", namingFileTypesIndexPtr, namingFileTypesComboItems) then
    local idx = namingFileTypesIndexPtr[0] + 1
@/lua/ge/extensions/editor/sceneTree.lua
      comboIndex[0] = searchNodeMode
      if imgui.Combo1("##filterType", comboIndex, searchTypesComboItems) then
        searchNodeMode = comboIndex[0]
@/lua/ge/extensions/editor/gen/lib/ui.lua
    local id = 'id_'..key
	if im.Combo1(id, editor.getTempInt_NumberNumber(isel), comboItems, nil, nil) then
		local o = editor.getTempInt_NumberNumber()
@/lua/ge/extensions/core/ropeVisualTest.lua

      if im.Combo1("Selected Rope", im.IntPtr(currentItem), items, #items) then
        local selectedEntry = allRopes[currentItem + 1]
        local animationNames = {"None", "Wiggle", "Circle", "Bumpy Ride", "Rectangle", "Random Walk", "Sin Wave", "Dir Sweep"}
        if im.Combo1("##AnchorAAnim", uiPtrs.anchorAAnimation, animationNames, #animationNames) then
          anchorAAnimation = uiPtrs.anchorAAnimation[0]
        im.TableSetColumnIndex(5)
        if im.Combo1("##AnchorBAnim", uiPtrs.anchorBAnimation, animationNames, #animationNames) then
          anchorBAnimation = uiPtrs.anchorBAnimation[0]
@/lua/ge/extensions/editor/mainToolbar.lua
  end
  if im.Combo1("##gridsize", gridSnapComboItemCurrent, gridSnapWidgetsComboItems) then
    local size = tonumber(gridSnapWidgetsComboItemsTbl[gridSnapComboItemCurrent[0] + 1])
  end
  if im.Combo1("##rotateSnapSize", rotateSnapComboItemCurrent, rotateSnapWidgetsComboItems) then
    local size = tonumber(rotateSnapWidgetsComboItemsTbl[rotateSnapComboItemCurrent[0] + 1])
@/lua/ge/extensions/editor/dynamicDecals/settings.lua
  im.PushItemWidth(im.GetContentRegionAvailWidth())
  if im.Combo1("##uvLayer", editor.getTempInt_NumberNumber(api:getUvLayer()), uvLayerNamesCharPtr) then
    api.setUvLayer(editor.getTempInt_NumberNumber())
    im.PushItemWidth(im.GetContentRegionAvailWidth())
    if im.Combo1("##textureResolution_x", editor.getTempInt_NumberNumber(textureResolutionXId), textureResolutionNamesCharPtr) then
      textureResolutionXId = editor.getTempInt_NumberNumber()
    im.PushItemWidth(im.GetContentRegionAvailWidth())
    if im.Combo1("##textureResolution_y", editor.getTempInt_NumberNumber(textureResolutionYId), textureResolutionNamesCharPtr) then
      textureResolutionYId = editor.getTempInt_NumberNumber()
@/lua/ge/extensions/trackbuilder/trackBuilder.lua
  if hasInterpolation then
    if im.Combo1("##"..name, modifierValues[name].interpolation, interpolations) then
      tbFunctions.modifierChange(name)
  im.PushItemWidth(160)
  if im.Combo1("Material", materialSettings.selectedMaterial, materials.matNameArray) then
    log('I', logTag, 'Material has changed!')
  im.PushItemWidth(180)
  if im.Combo1("Groundmodel", materialSettings.groundModel, materialSettings.groundModelNamesPtr) then
    setGroundmodel(materialSettings.groundModelNames[materialSettings.groundModel[0] + 1])
  if width then im.PushItemWidth(width) end
  im.Combo1("Shape##"..name, modifierValues[name].value, table)
  if width then im.PopItemWidth() end
  -- add own interpolations input, so we can react to changes
  if im.Combo1("##"..'height', modifierValues['height'].interpolation, interpolations) then
    modifierValues.height.customSlope[0] = modifierValues['height'].interpolation[0] > 1
  im.InputTextMultiline("##description", saveSettings.description, im.GetLengthArrayCharPtr(saveSettings.description), im.ImVec2(-1.0, im.GetTextLineHeight() * 3))
  im.Combo1(translateLanguage("ui.trackBuilder.saveLoad.difficulty", 'Difficulty'), saveSettings.difficulty, difficulty)
        im.PushItemWidth(125)
        if im.Combo1("Type##o"..i, o.value, obstacles) then
          variants = obstacleInfo[obstaclesTbl[o.value[0]+1]].variants or 0
        end
        if im.Combo1("Anchor##o"..i,o.anchor,anchors) then
          tbFunctions.modifierChange('obstacles')

        if im.Combo1("Material ##o"..i, o.material, obstacleMatDisplayNames) then
          tbFunctions.modifierChange('obstacles')
  if im.TreeNode1("Create Intersection") then
    im.Combo1("Mode",addSubtrackParams.mode,addSubtrackParams.modes)
    im.DragFloat("Distance",addSubtrackParams.distance,0.1)
@/lua/ge/extensions/editor/dynamicDecals/export.lua
    -- im.PushItemWidth(im.GetContentRegionAvailWidth())
    -- if im.Combo1("##reflectionMode", editor.getTempInt_NumberNumber(texturesExport_exportFormatId), textureExport_NamesCharPtr) then
    --   texturesExport_exportFormatId = editor.getTempInt_NumberNumber()
@/lua/ge/extensions/editor/materialEditor.lua
  im.PushItemWidth(im.GetContentRegionAvailWidth() - 10)
  if im.Combo1("##" .. label .. property .. tostring(layer), editor.getTempInt_StringString(index), cptr) then
    setPropertyWithUndo(property, layer, items[tonumber(editor.getTempInt_StringString()) + 1])
  im.PushItemWidth(im.GetContentRegionAvailWidth() - 10)
  if im.Combo1("##Alpha Blend Mode_translucent0", editor.getTempInt_StringString(index), cptr) then
    local value = items[tonumber(editor.getTempInt_StringString()) + 1]
      im.PushItemWidth(size - (im.CalcTextSize("Preview Meshes(?)").x + 3 * v.style.ItemSpacing.x + 24))
      if im.Combo1("##MaterialPreviewMeshCombo", previewMeshIndex, previewMeshNamesPtr) then
        updateExtMaterialPreviewMesh()
      if v.materialNamesPtrCount == 0 then im.BeginDisabled() end
      if im.Combo1("##Materials", editor.getTempInt_NumberNumber(v.currentMaterialIndex), v.materialNamesPtr, (#v.materialNameList + 1), 20) then
        if dbg then editor.logInfo(logTag .. "Material has changed!") end
@/lua/ge/extensions/editor/assetBrowser.lua
        if var.assetSortingNamePtr then
          if im.Combo1("##AssetSortingCombo", editor.getTempInt_NumberNumber(var.options.assetSortingType - 1), var.assetSortingNamePtr) then
            var.options.assetSortingType = editor.getTempInt_NumberNumber() + 1
        if var.assetGroupingNamePtr then
          if im.Combo1("##AssetGroupingCombo", editor.getTempInt_NumberNumber(var.options.assetGroupingType - 1), var.assetGroupingNamePtr) then
            var.options.assetGroupingType = editor.getTempInt_NumberNumber() + 1
@/lua/ge/extensions/editor/engineAudioDebug.lua
    local engineNameStringArray = im.ArrayCharPtrByTbl(editor_engineAudioDebug.engine.engineNameStrings)
    if im.Combo1("Engine/Sound", selectedEngineSound, engineNameStringArray) then
      changed = true;
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veAeroDebug.lua

      im.Combo1("FL Wheel Name", wheelNamePtrs[1], wheelNameStringArray)
      im.SameLine()
      im.SameLine()
      im.Combo1("FR Wheel Name", wheelNamePtrs[2], wheelNameStringArray)
      im.Combo1("RL Wheel Name", wheelNamePtrs[3], wheelNameStringArray)
      im.Combo1("FR Wheel Name", wheelNamePtrs[2], wheelNameStringArray)
      im.Combo1("RL Wheel Name", wheelNamePtrs[3], wheelNameStringArray)
      im.SameLine()
      im.SameLine()
      im.Combo1("RR Wheel Name", wheelNamePtrs[4], wheelNameStringArray)
@/lua/ge/extensions/editor/visualization.lua

        if im.Combo1("Material Debug", materialDebugVisualizationType, im.ArrayCharPtrByTbl(materialDebugVisualizationTypeNames)) then
          materialDebugVisualizationTypes[(materialDebugVisualizationType[0] + 1)].setter()
@/lua/common/extensions/ui/imgui_custom_luaintf.lua

  function M.Combo1(label, current_item, items, items_count, popup_max_height_in_items)
    if popup_max_height_in_items == nil then popup_max_height_in_items = -1 end
    if items_count == nil then items_count = M.GetLengthArrayCharPtr(items) end
    return imgui.Combo1(label, current_item, items, items_count, popup_max_height_in_items)
  end
@/lua/ge/extensions/editor/biomeTool.lua
  blendingMethodPtr[0] = getBlendingMethod(layerType, layerID)
  if imgui.Combo1("##layersBlendingMth"..layerType..layerID, blendingMethodPtr, layerBlendingComboItems) then
    setBlendingMethod(layerType, layerID, blendingMethodPtr[0])
    mtlPtr[0] = getTerrLayerMaterialIndex(layerID)
    if imgui.Combo1("##terrainLayerMaterialCombo"..layerType..layerID, mtlPtr, imgui.ArrayCharPtrByTbl(layerCreateMtlComboItemsTbl)) then
      setTerrLayerMaterial(layerID, mtlPtr[0])
    blendingMethodPtr[0] = getBlendingMethod(customData.layerType, customData.layerID)
    if imgui.Combo1("##layersDelete", blendingMethodPtr, layerBlendingComboItems) then
      setBlendingMethod(customData.layerType, customData.layerID, blendingMethodPtr[0])
@/lua/ge/extensions/editor/api/valueInspector.lua
    if widgetsBasicComboItems then
      if imgui.Combo1(fieldNameId, self.comboIndex, widgetsBasicComboItems) then
        local index = tonumber(self.comboIndex[0])
@/lua/ge/extensions/editor/dynamicDecals/fonts.lua
  if #generatedFontAtlases == 0 then im.BeginDisabled() end
  if im.Combo1("##generatedFontAtlases", editor.getTempInt_NumberNumber(fontAtlasPreviewId), generatedFontAtlasesCharPtr) then
    fontAtlasPreviewId = editor.getTempInt_NumberNumber()
    im.PushItemWidth(im.GetContentRegionAvailWidth())
    if im.Combo1("##selectedGlyphForPreview", editor.getTempInt_NumberNumber(selectedGlyphId), glyphCharPtr) then
      selectedGlyphId = editor.getTempInt_NumberNumber()
@/lua/ge/extensions/editor/gen/ui.lua
	count_inp = count_inp + 1
	if im.Combo1(tostring(count_inp), editor.getTempInt_NumberNumber(isel), comboItems, nil, nil) then
		local o = editor.getTempInt_NumberNumber()
			local comboItems = im.ArrayCharPtrByTbl(list)
			if im.Combo1('', editor.getTempInt_NumberNumber(selected), comboItems, nil, nil) then
			local comboItems = im.ArrayCharPtrByTbl(mlist)
			if im.Combo1('m', editor.getTempInt_NumberNumber(selected), comboItems, nil, nil) then
				local o = editor.getTempInt_NumberNumber()