GE Lua Documentation

Press F to search!

InputInt

Definition


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

Callers

@/lua/ge/extensions/flowgraph/nodes/ui/imgui/elemental/imNumbers.lua
    imVal = im.IntPtr(self.val)
    ret = im.InputInt(label, imVal, step)
  elseif self.mode == 'Float' then
@/lua/ge/extensions/editor/missionEditor/careerSetup.lua
  im.PushItemWidth(200)
  if im.InputInt("##RA",raInput) then
    self.mission._dirty = true
@/lua/ge/extensions/gameplay/missions/missionTypes/editorHelper.lua
  if not e.fixedCount then
    editEnded[0] = im.InputInt(e.label.." Entry Count", e.count) or editEnded[0]
    e.count[0] = math.max(1,e.count[0])
@/lua/ge/extensions/editor/trafficManager.lua
    im.PushItemWidth(inputWidth)
    if im.InputInt("Spawn Amount##trafficManagerVehicles", options.vehicleMulti, 1) then
      options.vehicleMulti[0] = clamp(options.vehicleMulti[0], 1, 100)
@/lua/ge/extensions/editor/multiSpawnManager.lua
    im.PushItemWidth(inputWidth)
    if im.InputInt("Collection Amount##editGroup", imValues.collectionAmount, 1) then
      imValues.collectionAmount[0] = math.max(1, imValues.collectionAmount[0])
    im.PushItemWidth(inputWidth)
    if im.InputInt("Max Model Year##editGroup", imValues.maxYear, 1) then
      if imValues.maxYear[0] == 1899 then imValues.maxYear[0] = 0 end -- if it is one less than the minimum valid year
    im.PushItemWidth(inputWidth)
    if im.InputInt("Minimum Population##editGroup", imValues.minPop, 1) then
      imValues.minPop[0] = math.max(0, imValues.minPop[0])
  im.PushItemWidth(inputWidth)
  if im.InputInt("Spacing##multiSpawn", imValues.spawnGap, 1) then
    imValues.spawnGap[0] = math.max(0, imValues.spawnGap[0])
  im.PushItemWidth(inputWidth)
  if im.InputInt("Amount##multiSpawn", imValues.amount, 1) then
    imValues.amount[0] = math.max(0, imValues.amount[0])
@/lua/ge/extensions/editor/raceEditor/trackLayout.lua
  local laps = im.IntPtr(self.path.defaultLaps)
  if im.InputInt("Lap Count", laps) then
    self:changeField("defaultLaps",math.max(laps[0], 1))
@/lua/ge/extensions/editor/dynamicDecals/widgets.lua
  im.PushItemWidth(im.GetContentRegionAvailWidth())
  if im.InputInt(widgetId, editor.getTempInt_NumberNumber(baseProp.getMod and baseProp.getMod(value) or value), 1, 10) then
    local newVal = editor.getTempInt_NumberNumber()
@/lua/ge/extensions/career/modules/marketplace.lua
        end
        if im.InputInt("Make New Offer", myOfferValuePtr, nil, nil, im.InputTextFlags_EnterReturnsTrue) then
          makeOffer(myOfferValuePtr[0])
@/lua/ge/extensions/editor/cosimulationSignalEditor.lua
      im.PushItemWidth(120)
      im.InputInt("###301", sPort, 10, nil)
      im.tooltip('Set the port number on the 3rd party computer.')
      im.PushItemWidth(120)
      im.InputInt("###303", rPort, 10, nil)
      im.tooltip('Set the port number on the 3rd party computer.')
      -- im.SameLine()  -- Place the input box right after the label
      -- im.InputInt("", loggingFrequency, 1, 10)  -- Leave the label in InputInt blank to avoid duplicate text
      -- loggingFrequency[0] = math.max(1, loggingFrequency[0])  -- Ensure it's an integer with a minimum value of 1
@/lua/ge/suspensionFrequencyTester.lua
       imgui.Text("Settings:")
       if imgui.InputInt("Front axle node ID", nodeFrontPtr, 0, 0) then nodes[1].id = nodeFrontPtr[0] end
       if imgui.InputInt("Rear axle node ID", nodeRearPtr, 0, 0) then nodes[2].id = nodeRearPtr[0] end
       if imgui.InputInt("Front axle node ID", nodeFrontPtr, 0, 0) then nodes[1].id = nodeFrontPtr[0] end
       if imgui.InputInt("Rear axle node ID", nodeRearPtr, 0, 0) then nodes[2].id = nodeRearPtr[0] end
       if imgui.SliderInt("Detected frequencies", numFreqsPtr, 100, 3000) then
@/lua/ge/extensions/trackbuilder/trackBuilder.lua
  end
  if im.InputInt(translateLanguage("ui.trackBuilder.trackSettings.defaultLaps", "Default Laps"),saveSettings.lapCount) then
    if saveSettings.lapCount[0] < 1 then saveSettings.lapCount[0] = 1 end
        if variants > 0 then
          if im.InputInt("Variant##o"..i,o.variant) then
            if o.variant[0] < 1 then
local function subTracks()
  if im.InputInt("Index", subTrackIndex) then
    --dump("Switched subtrack to: " .. subTrackIndex[0])
    end
    if im.InputInt("Count", addSubtrackParams.count) then
      if addSubtrackParams.count[0] < 1 then addSubtrackParams.count[0] = 1 end
@/lua/ge/extensions/editor/raceEditor/testing.lua
  im.PushItemWidth(im.GetContentRegionAvailWidth() * 0.5)
  if im.InputInt("Lap Count", lapCount) then
    self.race.lapCount = math.max(1, lapCount[0])
@/lua/ge/extensions/util/vehicleRopeDebug.lua
      -- Parameters
      if im.InputInt("Node Count", uiPtrs.nodeCount, 1, 10) then
        uiPtrs.nodeCount[0] = math.max(0, math.min(5000, uiPtrs.nodeCount[0]))
        im.SetNextItemWidth(120)
        if im.InputInt("##BendSegmentLength", uiPtrs.bendSegmentLength, 1, 1) then
          uiPtrs.bendSegmentLength[0] = math.max(1, math.min(uiPtrs.bendSegmentLength[0], 10))
@/lua/ge/extensions/flowgraph/nodes/string/format.lua
  local ptr = im.IntPtr(self.count)
  if im.InputInt('##count'..self.id, ptr) then
    if ptr[0] < 1 then ptr[0] = 1 end
@/lua/ge/extensions/editor/missionEditor/setupModules.lua
    im.PushItemWidth(inputWidth)
    if im.InputInt("Amount##traffic", self.trafficAmountInput, 1) then
      setupModule.amount = self.trafficAmountInput[0]
    im.PushItemWidth(inputWidth)
    if im.InputInt("Active Amount##traffic", self.trafficActiveAmountInput, 1) then
      setupModule.activeAmount = self.trafficActiveAmountInput[0]
    im.PushItemWidth(inputWidth)
    if im.InputInt("Parked Amount##traffic", self.trafficParkedAmountInput, 1) then
      setupModule.parkedAmount = self.trafficParkedAmountInput[0]
@/lua/ge/extensions/flowgraph/nodes/gameplay/sites/locationsByTag.lua
  local ptr = im.IntPtr(self.count)
  if im.InputInt('##count' .. self.id, ptr) then
    if ptr[0] < 1 then
@/lua/ge/extensions/flowgraph/nodes/gameplay/removeOtherVehicles.lua
  local ptr = im.IntPtr(self.count)
  if im.InputInt('##count'..self.id, ptr) then
    if ptr[0] < 1 then ptr[0] = 1 end
@/lua/ge/extensions/editor/dragRaceEditor/strips.lua
  local laneOrder = im.IntPtr(lane.laneOrder or 1)
  if im.InputInt("##laneOrder", laneOrder) then
    lane.laneOrder = laneOrder[0]
@/lua/ge/extensions/flowgraph/nodes/gameplay/traffic/trafficCustomGroup.lua
    local count = im.IntPtr(self.count)
    if im.InputInt('Count', count) then
      self:updatePins(self.count, math.max(1, count[0]))
@/lua/ge/extensions/editor/dragRaceEditor/lanes.lua
  local laneOrder = im.IntPtr(lane.laneOrder or 1)
  if im.InputInt("##laneOrder", laneOrder) then
    lane.laneOrder = laneOrder[0]
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
end
function M.InputInt(string_label, int_v, int_step, int_step_fast, ImGuiInputTextFlags_flags)
  if int_step == nil then int_step = 1 end
  if int_v == nil then log("E", "", "Parameter 'int_v' of function 'InputInt' cannot be nil, as the c type is 'int *'") ; return end
  return imgui.InputInt(string_label, int_v, int_step, int_step_fast, ImGuiInputTextFlags_flags)
end
@/lua/ge/extensions/flowgraph/nodes/logic/switchcase.lua
  local ptr = im.IntPtr(self.count)
  if im.InputInt('##count'..self.id, ptr) then
    if ptr[0] < 1 then ptr[0] = 1 end
@/lua/ge/extensions/editor/roadArchitect.lua
                  local oldVal = layer.laneMin[0]
                  im.InputInt("Min Lane Index###" .. tostring(wCtr), layer.laneMin, 1)
                  im.tooltip('The index of the left-most lane, from which this layer will span.')
                  local oldVal = layer.laneMax[0]
                  im.InputInt("Max Lane Index###" .. tostring(wCtr), layer.laneMax, 1)
                  im.tooltip('The index of the right-most lane, to which this layer will span.')
                  local oldVal = layer.lane[0]
                  im.InputInt("Lane Index###" .. tostring(wCtr), layer.lane, 1)
                  im.tooltip('The index of the lane to which this layer is attached.')

                  im.InputInt("Material: Num Rows###" .. tostring(wCtr), layer.numRows, 1)
                  layer.numRows = im.IntPtr(max(1, min(99, layer.numRows[0])))

                  im.InputInt("Material: Num Columns###" .. tostring(wCtr), layer.numCols, 1)
                  layer.numCols = im.IntPtr(max(1, min(99, layer.numCols[0])))

                  im.InputInt("Frame Number###" .. tostring(wCtr), layer.frame, 1)
                  layer.frame = im.IntPtr(max(0, min(layer.numRows[0] * layer.numCols[0], layer.frame[0])))
                  if not layer.isSpanLong[0] then
                    im.InputInt("Min Node Index###" .. tostring(wCtr), layer.nMin, 1)
                    layer.nMin = im.IntPtr(max(1, min(layer.nMax[0], min(#road.nodes or 1, layer.nMin[0]))))
                    im.tooltip('The start node index, for this layer.')
                    im.InputInt("Max Node Index###" .. tostring(wCtr), layer.nMax, 1)
                    layer.nMax = im.IntPtr(max(layer.nMin[0] , max(1, min(#road.nodes or 1, layer.nMax[0]))))
                  im.PushItemWidth(-150)
                  im.InputInt("Node Index [Min]###" .. tostring(wCtr), layer.nMin, 1)
                  layer.nMin = im.IntPtr(max(1, min(layer.nMax[0], min(#road.nodes or 1, layer.nMin[0]))))
                  im.tooltip('The start node index, for this layer.')
                  im.InputInt("Node Index [Max]###" .. tostring(wCtr), layer.nMax, 1)
                  layer.nMax = im.IntPtr(max(layer.nMin[0] , max(1, min(#road.nodes or 1, layer.nMax[0]))))
                local oldVal = layer.lane[0]
                im.InputInt("Lane Index###" .. tostring(wCtr), layer.lane, 1)
                im.tooltip('The index of the lane to which this mesh unit is attached.')
                local oldVal = layer.lane[0]
                im.InputInt("Lane Index###" .. tostring(wCtr), layer.lane, 1)
                im.tooltip('The index of the lane to which this mesh unit is attached.')
            im.PopItemWidth()
            if im.InputInt("Random Seed Value###3939", profile.conditionSeed, 1) then
              profile.conditionSeed = im.IntPtr(max(0, min(4294967295, profile.conditionSeed[0])))
          im.TextColored(cols.greenB, 'Road Sizing Parameters:')
          if im.InputInt("Lanes###" .. tostring(wCtr), selJct.numLanesX, 1) then
            selJct.numLanesX = im.IntPtr(max(1, min(6, selJct.numLanesX[0])))

          if im.InputInt("Seed###7232", selJct.conditionSeed, 1) then
            selJct.conditionSeed = im.IntPtr(max(0, min(4294967295, selJct.conditionSeed[0])))
          im.TextColored(cols.greenB, 'Road Sizing Parameters:')
          if im.InputInt("Num Lanes - X Dir###" .. tostring(wCtr), selJct.numLanesX, 1) then
            selJct.numLanesX = im.IntPtr(max(1, min(6, selJct.numLanesX[0])))

          if im.InputInt("Num Lanes - Y Dir###" .. tostring(wCtr), selJct.numLanesY, 1) then
            selJct.numLanesY = im.IntPtr(max(1, min(6, selJct.numLanesY[0])))
          if selJct.isCrossings[0] then
            if im.InputInt("Number Of Overlays###4432", selJct.numCrossings, 1) then
              selJct.numCrossings = im.IntPtr(max(0, min(50, selJct.numCrossings[0])))
            im.tooltip('Set the number of overlays to be included.')
            if im.InputInt("Random Seed Value###4433", selJct.seed, 1) then
              selJct.seed = im.IntPtr(max(0, min(4294967295, selJct.seed[0])))

          if im.InputInt("Random Seed Value###7232", selJct.conditionSeed, 1) then
            selJct.conditionSeed = im.IntPtr(max(0, min(4294967295, selJct.conditionSeed[0])))
          im.TextColored(cols.greenB, 'Road Sizing Parameters:')
          if im.InputInt("Num Lanes - X Dir###" .. tostring(wCtr), selJct.numLanesX, 1) then
            selJct.numLanesX = im.IntPtr(max(1, min(6, selJct.numLanesX[0])))

          if im.InputInt("Num Lanes - Y Dir###" .. tostring(wCtr), selJct.numLanesY, 1) then
            selJct.numLanesY = im.IntPtr(max(1, min(6, selJct.numLanesY[0])))
          if selJct.isCrossings[0] then
            if im.InputInt("Number Of Overlays###4432", selJct.numCrossings, 1) then
              selJct.numCrossings = im.IntPtr(max(0, min(50, selJct.numCrossings[0])))
            im.tooltip('Set the number of overlays to be included.')
            if im.InputInt("Random Seed Value###4433", selJct.seed, 1) then
              selJct.seed = im.IntPtr(max(0, min(4294967295, selJct.seed[0])))
          im.PopItemWidth()
          if im.InputInt("Random Seed Value###7232", selJct.conditionSeed, 1) then
            selJct.conditionSeed = im.IntPtr(max(0, min(4294967295, selJct.conditionSeed[0])))
          im.TextColored(cols.greenB, 'Road Sizing Parameters:')
          if im.InputInt("Number Of Lanes###" .. tostring(wCtr), selJct.numLanesX, 1) then
            selJct.numLanesX = im.IntPtr(max(1, min(6, selJct.numLanesX[0])))
          if selJct.isCrossings[0] then
            if im.InputInt("Number Of Overlays###4432", selJct.numCrossings, 1) then
              selJct.numCrossings = im.IntPtr(max(0, min(50, selJct.numCrossings[0])))
            im.tooltip('Set the number of overlays to be included.')
            if im.InputInt("Random Seed Value###4433", selJct.seed, 1) then
              selJct.seed = im.IntPtr(max(0, min(4294967295, selJct.seed[0])))
          im.PopItemWidth()
          if im.InputInt("Random Seed Value###7232", selJct.conditionSeed, 1) then
            selJct.conditionSeed = im.IntPtr(max(0, min(4294967295, selJct.conditionSeed[0])))
          im.TextColored(cols.greenB, 'Road Sizing Parameters:')
          if im.InputInt("Number Of Lanes###" .. tostring(wCtr), selJct.numLanesX, 1) then
            selJct.numLanesX = im.IntPtr(max(1, min(6, selJct.numLanesX[0])))
          if selJct.isCrossings[0] then
            if im.InputInt("Number Of Overlays###4432", selJct.numCrossings, 1) then
              selJct.numCrossings = im.IntPtr(max(0, min(50, selJct.numCrossings[0])))
            im.tooltip('Set the number of overlays to be included.')
            if im.InputInt("Random Seed Value###4433", selJct.seed, 1) then
              selJct.seed = im.IntPtr(max(0, min(4294967295, selJct.seed[0])))

          if im.InputInt("Random Seed Value###7232", selJct.conditionSeed, 1) then
            selJct.conditionSeed = im.IntPtr(max(0, min(4294967295, selJct.conditionSeed[0])))
          im.TextColored(cols.greenB, 'Road Sizing Parameters:')
          if im.InputInt("Number Of Lanes###" .. tostring(wCtr), selJct.numLanesX, 1) then
            selJct.numLanesX = im.IntPtr(max(1, min(6, selJct.numLanesX[0])))

          if im.InputInt("Random Seed Value###7232", selJct.conditionSeed, 1) then
            selJct.conditionSeed = im.IntPtr(max(0, min(4294967295, selJct.conditionSeed[0])))
          im.TextColored(cols.greenB, 'Road Sizing Parameters:')
          if im.InputInt("Number Of Lanes###" .. tostring(wCtr), selJct.numLanesX, 1) then
            selJct.numLanesX = im.IntPtr(max(1, min(6, selJct.numLanesX[0])))

          if im.InputInt("Random Seed Value###7232", selJct.conditionSeed, 1) then
            selJct.conditionSeed = im.IntPtr(max(0, min(4294967295, selJct.conditionSeed[0])))
          im.TextColored(cols.greenB, 'Road Sizing Parameters:')
          if im.InputInt("Number Of Lanes###" .. tostring(wCtr), selJct.numLanesX, 1) then
            selJct.numLanesX = im.IntPtr(max(1, min(6, selJct.numLanesX[0])))

          if im.InputInt("Random Seed Value###7232", selJct.conditionSeed, 1) then
            selJct.conditionSeed = im.IntPtr(max(0, min(4294967295, selJct.conditionSeed[0])))
          im.TextColored(cols.greenB, 'Road Sizing Parameters:')
          if im.InputInt("Number Of Lanes###" .. tostring(wCtr), selJct.numLanesX, 1) then
            selJct.numLanesX = im.IntPtr(max(1, min(6, selJct.numLanesX[0])))
          if selJct.isCrossings[0] then
            if im.InputInt("Number Of Overlays###4432", selJct.numCrossings, 1) then
              selJct.numCrossings = im.IntPtr(max(0, min(50, selJct.numCrossings[0])))
            im.tooltip('Set the number of overlays to be included.')
            if im.InputInt("Random Seed Value###4433", selJct.seed, 1) then
              selJct.seed = im.IntPtr(max(0, min(4294967295, selJct.seed[0])))

          if im.InputInt("Random Seed Value###7232", selJct.conditionSeed, 1) then
            selJct.conditionSeed = im.IntPtr(max(0, min(4294967295, selJct.conditionSeed[0])))
          im.TextColored(cols.greenB, 'Road Sizing Parameters:')
          if im.InputInt("Number Of Lanes###" .. tostring(wCtr), selJct.numLanesX, 1) then
            selJct.numLanesX = im.IntPtr(max(1, min(6, selJct.numLanesX[0])))
          if selJct.isCrossings[0] then
            if im.InputInt("Number Of Overlays###4432", selJct.numCrossings, 1) then
              selJct.numCrossings = im.IntPtr(max(0, min(50, selJct.numCrossings[0])))
            im.tooltip('Set the number of overlays to be included.')
            if im.InputInt("Random Seed Value###4433", selJct.seed, 1) then
              selJct.seed = im.IntPtr(max(0, min(4294967295, selJct.seed[0])))

          if im.InputInt("Random Seed Value###7232", selJct.conditionSeed, 1) then
            selJct.conditionSeed = im.IntPtr(max(0, min(4294967295, selJct.conditionSeed[0])))
          im.TextColored(cols.greenB, 'Road Sizing Parameters:')
          if im.InputInt("Number Of Lanes###" .. tostring(wCtr), selJct.numLanesX, 1) then
            selJct.numLanesX = im.IntPtr(max(1, min(6, selJct.numLanesX[0])))

          if im.InputInt("Random Seed Value###7232", selJct.conditionSeed, 1) then
            selJct.conditionSeed = im.IntPtr(max(0, min(4294967295, selJct.conditionSeed[0])))
          im.TextColored(cols.greenB, 'Road Sizing Parameters:')
          if im.InputInt("Number Of Lanes###" .. tostring(wCtr), selJct.numLanesX, 1) then
            selJct.numLanesX = im.IntPtr(max(1, min(6, selJct.numLanesX[0])))

          if im.InputInt("Random Seed Value###7232", selJct.conditionSeed, 1) then
            selJct.conditionSeed = im.IntPtr(max(0, min(4294967295, selJct.conditionSeed[0])))
          im.TextColored(cols.greenB, 'Road Sizing Parameters:')
          if im.InputInt("Number Of Lanes###" .. tostring(wCtr), selJct.numLanesX, 1) then
            selJct.numLanesX = im.IntPtr(max(1, min(6, selJct.numLanesX[0])))
          if selJct.isCrossings[0] then
            if im.InputInt("Number Of Overlays###4432", selJct.numCrossings, 1) then
              selJct.numCrossings = im.IntPtr(max(0, min(50, selJct.numCrossings[0])))
            im.tooltip('Set the number of overlays to be included.')
            if im.InputInt("Random Seed Value###4433", selJct.seed, 1) then
              selJct.seed = im.IntPtr(max(0, min(4294967295, selJct.seed[0])))

          if im.InputInt("Random Seed Value###7232", selJct.conditionSeed, 1) then
            selJct.conditionSeed = im.IntPtr(max(0, min(4294967295, selJct.conditionSeed[0])))
@/lua/ge/extensions/editor/util/editorElementHelper.lua
  if not e.fixedCount then
    editEnded[0] = im.InputInt(e.label.." Entry Count", e.count) or editEnded[0]
    e.count[0] = math.max(1,e.count[0])
@/lua/ge/extensions/editor/api/gui.lua
  if not extra_flags then extra_flags = imgui.InputTextFlags_None end
  local res =  imgui.InputInt(label, v, step, step_fast, extra_flags)
  if editEnded then
@/lua/ge/extensions/flowgraph/nodes/logic/select.lua
  local ptr = im.IntPtr(self.count)
  if im.InputInt('##count'..self.id, ptr) then
    if ptr[0] < 1 then ptr[0] = 1 end
@/lua/ge/extensions/flowgraph/nodes/ui/buttons/getMultipleButtons.lua
  local ptr = im.IntPtr(self.count)
  if im.InputInt('##ids'..self.id, ptr) then
      if ptr[0] < 1 then ptr[0] = 1 end
@/lua/ge/extensions/flowgraph/nodes/gameplay/traffic/signals/controller.lua
  local count = im.IntPtr(self.count)
  if im.InputInt('##count'..self.id, count) then
    count[0] = math.max(0, count[0])
@/lua/ge/extensions/flowgraph/nodes/gameplay/race/fileRace.lua
  local ptr = im.IntPtr(self.count)
  if im.InputInt('##count'..self.id, ptr) then
    if ptr[0] < 1 then ptr[0] = 1 end
@/lua/ge/extensions/c2/panelPlugins/tileManager.lua

      if im.InputInt("Tile Size", p_tileSize) then
         local newSize = p_tileSize[0]
@/lua/ge/extensions/editor/driftDataEditor.lua
    local rv = im.IntPtr(elem.cooldown)
    if im.InputInt ("Cooldown", rv) then
      elem.cooldown = rv[0]
        local scorePtr = im.IntPtr(objective.score)
        if im.InputInt("##score", scorePtr) then
          objective.score = scorePtr[0]
@/lua/ge/extensions/editor/dragRaceEditor/dragSettings.lua
    local offset = im.IntPtr(phase.startedOffset or 0)
    if im.InputInt("##phaseOffset", offset) then
      phase.startedOffset = offset[0]
@/lua/ge/extensions/editor/vehicleDetailViewer.lua
    im.SetNextItemWidth(100)
    if im.InputInt("##ResolutionMultiplier", resolutionMultiplier, 1) then
      if resolutionMultiplier[0] < 1 then
@/lua/ge/extensions/editor/vehicleBridgeTest.lua
    local idInput = im.IntPtr(vehId)
    if im.InputInt("Vehicle Id", idInput) then
      vehId = idInput[0]
@/lua/ge/extensions/editor/trafficSignalsEditor.lua
    im.PushItemWidth(inputWidth)
    if im.InputInt("States Array Size".."##ctrlDefinitionTypeData", var, 1) then
      currData.statesArraySize = clamp(var[0], 1, 20)
    im.PushItemWidth(inputWidth)
    if im.InputInt("Default State Index".."##ctrlDefinitionTypeData", var, 1) then
      currData.defaultIndex = clamp(var[0], 1, currData.statesArraySize)
    im.PushItemWidth(inputWidth)
    if im.InputInt("Lights Array Size".."##ctrlDefinitionStateLight", var, 1) then
      currData.lightsArraySize = clamp(var[0], 1, 5)
@/lua/ge/extensions/flowgraph/nodes/util/timedSequence.lua
  local ptr = im.IntPtr(self.count)
  if im.InputInt('##count'..self.id, ptr) then
    if ptr[0] < 1 then ptr[0] = 1 end
@/lua/ge/extensions/editor/missionEditor/objectives.lua
  im.PushItemWidth(200)
  if im.InputInt("##RA",raInput) then
    self.mission._dirty = true
@/lua/ge/extensions/gameplay/drift/stuntZones.lua
      local tempStuntZones = {}
      im.InputInt("Spawn n stunt zones", benchmarkCount)
      if im.Button("Spawn donut zones") then
@/lua/ge/extensions/flowgraph/nodes/logic/and.lua
  local ptr = im.IntPtr(self.count)
  if im.InputInt('##count'..self.id, ptr) then
    if ptr[0] < 1 then ptr[0] = 1 end
@/lua/ge/extensions/editor/objectToSplineEditor.lua
    im.PushItemWidth(100)
    if im.InputInt("Object Limit##objectSpline", objLimit, 10) then _changed = true end
    im.tooltip("Sets the maximum amount of objects to spawn, as a safety.")
@/lua/ge/extensions/editor/sensorConfigurationEditor.lua
        im.PushItemWidth(130)
        im.InputInt("Horizontal Resolution ###" .. tostring(ctr), uiVal, 10, nil)
        im.tooltip('Set the horizontal resolution of the sensor, in pixels.')
        im.PushItemWidth(130)
        im.InputInt("Vertical Resolution ###" .. tostring(ctr), uiVal, 10, nil)
        im.tooltip('Set the vertical resolution of the sensor, in pixels.')
        im.PushItemWidth(130)
        im.InputInt("Vertical Resolution ###" .. tostring(ctr), uiVal, 1, nil)
        im.tooltip('Set the number of vertical resolution levels.')
        im.PushItemWidth(130)
        im.InputInt("Rotation Frequency (Hz) ###" .. tostring(ctr), uiVal, 1, nil)
        im.tooltip('Set the rotation frequency, in Hz.')
        im.PushItemWidth(130)
        im.InputInt("Horizontal Resolution ###" .. tostring(ctr), uiVal, 10, nil)
        im.tooltip('Set the horizontal resolution of the sensor, in pixels.')
        im.PushItemWidth(130)
        im.InputInt("Vertical Resolution ###" .. tostring(ctr), uiVal, 10, nil)
        im.tooltip('Set the vertical resolution of the sensor, in pixels.')
        im.PushItemWidth(130)
        im.InputInt("Window Width ###" .. tostring(ctr), uiVal, 1, nil)
        im.tooltip('Set the width of the window used in processing the returns.')
        im.PushItemWidth(130)
        im.InputInt("Horizontal Resolution ###" .. tostring(ctr), uiVal, 10, nil)
        im.tooltip('Set the horizontal resolution of the sensor, in pixels.')
        im.PushItemWidth(130)
        im.InputInt("Vertical Resolution ###" .. tostring(ctr), uiVal, 10, nil)
        im.tooltip('Set the vertical resolution of the sensor, in pixels.')
        im.PushItemWidth(130)
        im.InputInt("Range Bins ###" .. tostring(ctr), uiVal, 1, nil)
        im.tooltip('Set the number of bins to divide the data into, in the range dimension.')
        im.PushItemWidth(130)
        im.InputInt("Azimuth Bins ###" .. tostring(ctr), uiVal, 1, nil)
        im.tooltip('Set the number of bins to divide the data into, in the azimuth dimension.')
        im.PushItemWidth(130)
        im.InputInt("Velocity Bins ###" .. tostring(ctr), uiVal, 1, nil)
        im.tooltip('Set the number of bins to divide the data into, in the velocity dimension.')
@/lua/ge/extensions/editor/util/vehicleFilterUtil.lua
  local maxVehPtr = im.IntPtr(e.maxVehicles)
  if im.InputInt("Max Vehicles (0=all)##"..e._id.."maxVeh", maxVehPtr) then
    e.maxVehicles = math.max(0, maxVehPtr[0])
@/lua/ge/extensions/editor/forestEditor.lua
    if enableParallaxMapping == false then im.BeginDisabled() end
    if im.InputInt("##parallaxMappingTextureSetId_input", editor.getTempInt_NumberNumber(parallaxMappingTextureSetId), 1, 2) then
      local newValue = editor.getTempInt_NumberNumber()
@/lua/ge/extensions/flowgraph/nodes/ui/buttons/simpleMultipleButtons.lua
  local ptr = im.IntPtr(self.count)
  if im.InputInt('##buttons'..self.id, ptr) then
    if ptr[0] < 1 then ptr[0] = 1 end
@/lua/ge/extensions/editor/trafficDebug.lua
  im.PushItemWidth(100)
  im.InputInt("Add / Remove Traffic Vehicles", trafficAmountChange, 1)
  im.PopItemWidth()
  im.PushItemWidth(100)
  im.InputInt("Add / Remove Parked Vehicles", parkingAmountChange, 1)
  im.PopItemWidth()
  im.PushItemWidth(100)
  if im.InputInt("Active Traffic Amount", var, 1) then
    gameplay_traffic.setTrafficVars({activeAmount = math.max(0, var[0])})
  im.PushItemWidth(100)
  if im.InputInt("Active Parked Amount", var, 1) then
    gameplay_parking.setParkingVars({activeAmount = math.max(0, var[0])})
@/lua/ge/extensions/flowgraph/nodes/ui/multiDescription.lua
  local ptr = im.IntPtr(self.count)
  if im.InputInt('##count'..self.id, ptr) then
    if ptr[0] < 1 then ptr[0] = 1 end
@/lua/ge/extensions/flowgraph/nodes/logic/sequencer.lua
  local ptr = im.IntPtr(self.count)
  if im.InputInt('##count' .. self.id, ptr) then
    if ptr[0] < 1 then
@/lua/ge/extensions/editor/techServerManager.lua
  im.Checkbox('Listen on all interfaces', openServerGuiData.allInterfaces)
  im.InputInt('Port', openServerGuiData.port)
  if serverRunning then
@/lua/ge/extensions/flowgraph/nodes/gameplay/dragRace/setDragVehicle.lua
  local ptr = im.IntPtr(self.count)
  if im.InputInt('##count'..self.id, ptr) then
    if ptr[0] < 1 then ptr[0] = 1 end
@/lua/ge/extensions/flowgraph/nodes/ui/monologue.lua
  local ptr = im.IntPtr(self.count)
  if im.InputInt('##count'..self.id, ptr) then
    if ptr[0] < 1 then ptr[0] = 1 end
@/lua/ge/extensions/editor/mapSensorEditor.lua
        im.PushItemWidth(130)
        im.InputInt("Horizontal Resolution ###" .. tostring(ctr), uiVal, 10, nil)
        im.tooltip('Set the horizontal resolution of the sensor, in pixels.')
        im.PushItemWidth(130)
        im.InputInt("Vertical Resolution ###" .. tostring(ctr), uiVal, 10, nil)
        im.tooltip('Set the vertical resolution of the sensor, in pixels.')
        im.PushItemWidth(130)
        im.InputInt("Vertical Resolution ###" .. tostring(ctr), uiVal, 1, nil)
        im.tooltip('Set the number of vertical resolution levels.')
        im.PushItemWidth(130)
        im.InputInt("Rotation Frequency (Hz) ###" .. tostring(ctr), uiVal, 1, nil)
        im.tooltip('Set the rotation frequency, in Hz.')
        im.PushItemWidth(130)
        im.InputInt("Horizontal Resolution ###" .. tostring(ctr), uiVal, 10, nil)
        im.tooltip('Set the horizontal resolution of the sensor, in pixels.')
        im.PushItemWidth(130)
        im.InputInt("Vertical Resolution ###" .. tostring(ctr), uiVal, 10, nil)
        im.tooltip('Set the vertical resolution of the sensor, in pixels.')
        im.PushItemWidth(130)
        im.InputInt("Window Width ###" .. tostring(ctr), uiVal, 1, nil)
        im.tooltip('Set the width of the window used in processing the returns.')
        im.PushItemWidth(130)
        im.InputInt("Horizontal Resolution ###" .. tostring(ctr), uiVal, 10, nil)
        im.tooltip('Set the horizontal resolution of the sensor, in pixels.')
        im.PushItemWidth(130)
        im.InputInt("Vertical Resolution ###" .. tostring(ctr), uiVal, 10, nil)
        im.tooltip('Set the vertical resolution of the sensor, in pixels.')
        im.PushItemWidth(130)
        im.InputInt("Range Bins ###" .. tostring(ctr), uiVal, 1, nil)
        im.tooltip('Set the number of bins to divide the data into, in the range dimension.')
        im.PushItemWidth(130)
        im.InputInt("Azimuth Bins ###" .. tostring(ctr), uiVal, 1, nil)
        im.tooltip('Set the number of bins to divide the data into, in the azimuth dimension.')
        im.PushItemWidth(130)
        im.InputInt("Velocity Bins ###" .. tostring(ctr), uiVal, 1, nil)
        im.tooltip('Set the number of bins to divide the data into, in the velocity dimension.')
@/lua/ge/extensions/editor/missionEditor/conditions.lua
  im.PushItemWidth(120)
  if im.InputInt("##levleSelector"..index, self.fields[fieldName]) then
    self.mission._dirty = true
@/lua/ge/extensions/core/ropeVisualTest.lua
      -- Parameters
      if im.InputInt("Node Count", uiPtrs.nodeCount, 1, 10) then
        -- Clamp the value to valid range
        im.SetNextItemWidth(120)
        if im.InputInt("##BendSegmentLength", uiPtrs.bendSegmentLength, 1, 1) then
          uiPtrs.bendSegmentLength[0] = math.max(1, math.min(uiPtrs.bendSegmentLength[0], 10))
@/lua/ge/extensions/flowgraph/nodes/ui/buttons/setMultipleButtonsProperty.lua
  local ptr = im.IntPtr(self.count)
  if im.InputInt('##ids'..self.id, ptr) then
    if ptr[0] < 1 then ptr[0] = 1 end
@/lua/ge/extensions/editor/gen/ui.lua

						if im.InputInt('Lanes L', laneL, 1) then
							if laneL[0] < 0 then
						im.NextColumn()
						if im.InputInt('Lanes R', laneR, 1) then
							if laneR[0] < 0 then
@/lua/ge/extensions/editor/dynamicDecals/fonts.lua

  if im.InputInt("sdf padding", editor.getTempInt_NumberNumber(sdfPadding), 1, 2) then
    sdfPadding = editor.getTempInt_NumberNumber()

  if im.InputInt("sdf onedge value", editor.getTempInt_NumberNumber(sdfOnedgeValue), 1, 2) then
    local value = math.min(math.max(0, editor.getTempInt_NumberNumber()), 255)
@/lua/ge/extensions/flowgraph/nodes/ui/endStats.lua
  local ptr = im.IntPtr(self.count)
  if im.InputInt('##count'..self.id, ptr) then
    if ptr[0] < 1 then ptr[0] = 1 end