GE Lua Documentation

Press F to search!

SliderInt

Definition


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

Callers

@/lua/ge/extensions/util/groundModelDebug.lua
      im.PushItemWidth(120)
      if im.SliderInt("Render area", colDensityTileCount, 3, 100, string.format("%d x %d (%d tiles)", colDensityTileCount[0], colDensityTileCount[0], colDensityTileCount[0]*colDensityTileCount[0])) then
        serializeSettings()
            im.PushItemWidth(100)
            if im.SliderInt("collisiontype", v.cdata.collisiontype, 0, 30) then
              setValue(k, v, 'collisiontype', v.cdata.collisiontype[0])
@/lua/ge/extensions/editor/scriptAIEditor.lua
            im.PushItemWidth(245)
            im.SliderInt("##2", tr.splineSpacing, 1, 20)
            im.PopItemWidth()
@/lua/ge/extensions/editor/drivePathEditor.lua
      tmpPtr = im.IntPtr(selSpline.startingNode)
      if im.SliderInt('###97756', tmpPtr, 1, #selSpline.nodes, "Starting Node = %d") then
        selSpline.startingNode = tmpPtr[0]
      tmpPtr = im.IntPtr(selSpline.numLaps)
      if im.SliderInt('###5759', tmpPtr, minNumLaps, maxNumLaps, "Num Laps = %d") then
        selSpline.numLaps = tmpPtr[0]
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
end
function M.SliderInt(string_label, int_v, int_v_min, int_v_max, string_format, ImGuiSliderFlags_flags)
  if string_format == nil then string_format = "%d" end
  if int_v == nil then log("E", "", "Parameter 'int_v' of function 'SliderInt' cannot be nil, as the c type is 'int *'") ; return end
  return imgui.SliderInt(string_label, int_v, int_v_min, int_v_max, string_format, ImGuiSliderFlags_flags)
end
@/lua/ge/extensions/editor/sidewalkSpline.lua
      local tmpIntPtr = im.IntPtr(selSpline.splineRandomSeed)
      if im.SliderInt('###2236', tmpIntPtr, 0, maxRandomSeed, "Random Seed = %d") then
        selSpline.splineRandomSeed = tmpIntPtr[0]
@/lua/ge/extensions/editor/api/gui.lua
local function uiSliderInt(label, v, v_min, v_max, format, editEnded)
  local res =  imgui.SliderInt(label, v, v_min, v_max, format)
  if editEnded then
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veJBeamBeautifier.lua
    if im.Checkbox("Round Numbers", roundingEnabledPtr) then end
    im.SliderInt("Decimal Places", decimalPlacesPtr, 0, 5)
    im.InputText("##directoryToBeautify", directoryToBeautifyPtr)
@/lua/ge/extensions/editor/roadArchitect.lua
            im.PushStyleVar1(im.StyleVar_GrabMinSize, 20)
            im.SliderInt("###49", terraParams.domainOfInfluence, 1, 500, "Domain Of Influence (m) %d")
            im.tooltip('Set the domain of influence of the terraforming, in meters.')
          if im.TreeNode1("Granularity Control") then
            if im.SliderInt("###859", road.granFactor, 1, 3, "Granularity Level (m) %d") then
              roadMgr.setDirty(road)
            im.PushStyleVar1(im.StyleVar_GrabMinSize, 20)
            if im.SliderInt("###42", road.extraS, 0, 15, "Start Pos %d") then
              roadMgr.setDirty(road)
            im.PushStyleVar1(im.StyleVar_GrabMinSize, 20)
            if im.SliderInt("###43", road.extraE, 0, 15, "End Pos %d") then
              roadMgr.setDirty(road)
            im.PushStyleVar1(im.StyleVar_GrabMinSize, 20)
            if im.SliderInt("###41", road.radGran, 6, 50, "Granularity %d") then
              roadMgr.setDirty(road)
            im.tooltip('The road condition [0 = clean, 1 = damaged/worn].')
            if im.SliderInt("###3161",profile.numPatches, 0, 50, "Repair Patches = %d") then
              profileMgr.updateCondition(road)

            if im.SliderInt("###3438", profile.numPotholes, 0, 50, "Pot Holes = %d") then
              profileMgr.updateCondition(road)

          if im.SliderInt("###7161", selJct.numPatches, 0, 50, "Repair Patches = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7438", selJct.numPotholes, 0, 50, "Pot Holes = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7161", selJct.numPatches, 0, 50, "Repair Patches = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7438", selJct.numPotholes, 0, 50, "Pot Holes = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7161", selJct.numPatches, 0, 50, "Repair Patches = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7438", selJct.numPotholes, 0, 50, "Pot Holes = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7161", selJct.numPatches, 0, 50, "Repair Patches = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7438", selJct.numPotholes, 0, 50, "Pot Holes = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7161", selJct.numPatches, 0, 50, "Repair Patches = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7438", selJct.numPotholes, 0, 50, "Pot Holes = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7161", selJct.numPatches, 0, 50, "Repair Patches = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7438", selJct.numPotholes, 0, 50, "Pot Holes = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7161", selJct.numPatches, 0, 50, "Repair Patches = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7438", selJct.numPotholes, 0, 50, "Pot Holes = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7161", selJct.numPatches, 0, 50, "Repair Patches = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7438", selJct.numPotholes, 0, 50, "Pot Holes = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7161", selJct.numPatches, 0, 50, "Repair Patches = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7438", selJct.numPotholes, 0, 50, "Pot Holes = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7161", selJct.numPatches, 0, 50, "Repair Patches = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7438", selJct.numPotholes, 0, 50, "Pot Holes = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7161", selJct.numPatches, 0, 50, "Repair Patches = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7438", selJct.numPotholes, 0, 50, "Pot Holes = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7161", selJct.numPatches, 0, 50, "Repair Patches = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7438", selJct.numPotholes, 0, 50, "Pot Holes = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7161", selJct.numPatches, 0, 50, "Repair Patches = %d") then
            jctMgr.updateJunctionCondition(selJct)

          if im.SliderInt("###7438", selJct.numPotholes, 0, 50, "Pot Holes = %d") then
            jctMgr.updateJunctionCondition(selJct)
          im.PushStyleVar1(im.StyleVar_GrabMinSize, 20)
          im.SliderInt("###99949", terraParams.domainOfInfluence, 1, 500, "Domain Of Influence (m) %d")
          im.tooltip('Set the domain of influence of the terraforming, in meters.')
        im.PushStyleVar1(im.StyleVar_GrabMinSize, 20)
        im.SliderInt("###49", terraParams.domainOfInfluence, 1, 500, "Domain Of Influence (m) %d")
        im.tooltip('Set the domain of influence of the terraforming, in meters.')
@/lua/ge/extensions/flowgraph/nodes/ui/imgui/elemental/imNumbers.lua
    imVal = im.IntPtr(self.val)
    ret = im.SliderInt(label, imVal, min, max)
  elseif  self.mode == 'SliderFloat' then
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veCrashTester.lua
    im.PushItemWidth(100)
    im.SliderInt("Number of Vehicles", numVehsPtr, 1, 15)
    im.SliderInt("Target Speed", targetSpeedPtr, 10, 200, "%d km/h")
    im.SliderInt("Number of Vehicles", numVehsPtr, 1, 15)
    im.SliderInt("Target Speed", targetSpeedPtr, 10, 200, "%d km/h")
    im.PopItemWidth()
@/lua/ge/extensions/editor/meshSpline.lua
      tmpPtr = im.IntPtr(selSpline.splineRandomSeed)
      if im.SliderInt('###5760', tmpPtr, 0, maxRandomSeed, "Random Seed = %d") then
        selSpline.splineRandomSeed = tmpPtr[0]
@/lua/ge/extensions/util/maptiles.lua
      -- Zoom Level Selector
      if im.SliderInt("Zoom Level", selectedZoomLevel, 0, maxZoomLevel) then
        if selectedZoomLevel[0] ~= currentZoomLevel then
@/lua/ge/extensions/util/screenshotCreator.lua
        end
        -- if im.SliderInt("Supersampling", ctrls.superSamplingPtr, 0, 64) then
        --   workConfig.superSampling = ctrls.superSamplingPtr[0]
@/lua/ge/extensions/gameplay/rally/tools/devTools.lua

    if im.SliderInt("Look Ahead Context", self.pacenotesTools.params.lookAheadContext, 1, 10) then
      -- Parameter changed

    if im.SliderInt("Simplify Iterations", self.pacenotesTools.params.maxSimplifyIterations, 1, 20) then
      -- Parameter changed
@/lua/ge/extensions/editor/sceneView.lua
        im.SliderFloat('FOV', view.fov, 0.001, 179, "%.3f", 4)
        if im.SliderInt("Render mask DebugDraw##renderMask", view.renderDebugDrawMask, -1, 4) then
          if view.renderDebugDrawMask[0] == -1 then
@/lua/ge/extensions/editor/roadSpline.lua
            tmpPtr2 = im.IntPtr(selectedLayer.renderPriority)
            if im.SliderInt("###8133", tmpPtr2, 0, 100, "Render Priority = %d") then
              selectedLayer.renderPriority = tmpPtr2[0]
            tmpPtr = im.IntPtr(selGroup.paintMaterialIdx or sliderDefaults.defaultPaintMaterialIdx)
            if im.SliderInt('###81841', tmpPtr, 0, util.getNumMaterials(), "Paint Material = %d") then
              selGroup.paintMaterialIdx = tmpPtr[0]
@/lua/ge/extensions/editor/rallyEditor/measurementsTab.lua
      local textColorValue = im.IntPtr(isWhiteText and 1 or 0)
      if im.SliderInt("##TextColor", textColorValue, 0, 1, textColorValue[0] == 0 and "Black" or "White") then
        if textColorValue[0] == 1 then
@/lua/ge/suspensionFrequencyTester.lua
       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
        numFreqs = numFreqsPtr[0]
       end
      imgui.SliderInt("Detector accuracy (more = laggier)", freqExistsWindowPtr, 1, 5)
@/lua/ge/extensions/flowgraph/nodes/util/template.lua
  end
  im.SliderInt("Slider",self.sliderWidth,5,400)
  return reason
@/lua/ge/extensions/editor/terrainAndRoadImporter.lua
    im.PushItemWidth(200)
    im.SliderInt("###3", DOI, 1, 500, "Domain Of Influence (m) %d")
    im.PopItemWidth()
@/lua/ge/extensions/editor/engineAudioDebug.lua
      changed = im.DragFloat("eqFundamentalGain", eqFundamentalGain, 1, -30, 30) or changed
      changed = im.SliderInt("fundamentalFrequencyCylinderCount", fundamentalFreqCylCount, 0, 32) or changed
      im.Unindent()
@/lua/ge/extensions/core/ropeVisualTest.lua
      end
      if im.SliderInt("Iterations", uiPtrs.iterations, 1, 10) then
        selectedRope.iterations = uiPtrs.iterations[0]
      end
      if im.SliderInt("Simulation FPS", uiPtrs.simFPS, 1, 300) then
        if selectedRope then
@/lua/ge/extensions/editor/assemblySpline.lua
      tmpPtr = im.IntPtr(selSpline.splineRandomSeed)
      if im.SliderInt('###77360', tmpPtr, 0, maxRandomSeed, "Random Seed = %d") then
        selSpline.splineRandomSeed = tmpPtr[0]
@/lua/ge/extensions/util/vehicleRopeDebug.lua
      end
      if im.SliderInt("Iterations", uiPtrs.iterations, 1, 10) then
        selectedRope.iterations = uiPtrs.iterations[0]
      end
      if im.SliderInt("Simulation FPS", uiPtrs.simFPS, 1, 300) then
        if selectedRope then
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veVehicleSpawner.lua
    --im.PushItemWidth(100)
    --im.SliderInt("Number of Vehicles", numVehsPtr, 1, 15)
    --im.PopItemWidth()
@/lua/ge/extensions/editor/sitesEditor/parkingSpots.lua
    im.Text("Direction")
    if im.SliderInt("Amount of Spots", self.multiSpotData.spotAmount, 1, 25) then
      dirty = true
@/lua/ge/extensions/editor/dynamicDecals/widgets.lua
  im.PushItemWidth(im.GetContentRegionAvailWidth())
  if im.SliderInt(widgetId, editor.getTempInt_NumberNumber(baseProp.getMod and baseProp.getMod(value) or value), baseProp.min, baseProp.max) then
    local newVal = editor.getTempInt_NumberNumber()
@/lua/ge/extensions/trackbuilder/trackBuilder.lua

  if im.SliderInt("Width", modifierValues.width.value, 0, 50) then
    if modifierValues.width.value[0] > 50 then modifierValues.width.value[0] = 50 elseif modifierValues.width.value[0] < 0 then modifierValues.width.value[0] = 0 end
@/lua/ge/extensions/editor/terrainEditor.lua
  local doiPtr = im.IntPtr(doiPref)
  if im.SliderInt("###terraformDOI", doiPtr, 1, 500, "%d") then
    editor.setPreference("terrainEditor.terraform.terraformDOI", doiPtr[0])
@/lua/ge/extensions/editor/shapeEditor.lua
        im.PushItemWidth(im.GetContentRegionAvailWidth())
        if im.SliderInt("##detailLevel", detailLevel, 0, shapePrev:getDetailLevelCount()-1) then
          shapePrev:setCurrentDetail(detailLevel[0])
        im.SliderFloat("amount", lodAmount, 0.1, 1)
        im.SliderInt("Destination Detail", lodDetDest, 1, highestDetail-1)
        if im.Checkbox("sloppy", lodSloppy) then
@/lua/ge/extensions/editor/missionPlaybook.lua
  pagePtr[0] = M.book.page
  if im.SliderInt("##BookPage", pagePtr, 1, #M.book.results) then
    M.book.page = pagePtr[0]
@/lua/ge/extensions/editor/decalSpline.lua
          tmpPtr = im.IntPtr(selSpline.randomSeed)
          if im.SliderInt('###5751', tmpPtr, 0, 100000, "Random Seed = %d") then
            selSpline.randomSeed = tmpPtr[0]
              tmpPtr = im.IntPtr(selSpline.numRows1)
              if im.SliderInt("###4427", tmpPtr, 1, 4, "Num Rows = %d") then
                selSpline.numRows1 = tmpPtr[0]
              tmpPtr = im.IntPtr(selSpline.numCols1)
              if im.SliderInt("###4428", tmpPtr, 1, 4, "Num Cols = %d") then
                selSpline.numCols1 = tmpPtr[0]
              tmpPtr = im.IntPtr(selSpline.frame1)
              if im.SliderInt("###4429", tmpPtr, 0, selSpline.numCols1 * selSpline.numRows1 - 1, "Frame = %d") then
                local preState = splineMgr.deepCopyDecalSpline(selSpline)
              tmpPtr = im.IntPtr(selSpline.numRows2)
              if im.SliderInt("###4431", tmpPtr, 1, 4, "Num Rows = %d") then
                selSpline.numRows2 = tmpPtr[0]
              tmpPtr = im.IntPtr(selSpline.numCols2)
              if im.SliderInt("###4432", tmpPtr, 1, 4, "Num Cols = %d") then
                selSpline.numCols2 = tmpPtr[0]
              tmpPtr = im.IntPtr(selSpline.frame2)
              if im.SliderInt("###4433", tmpPtr, 0, selSpline.numCols2 * selSpline.numRows2 - 1, "Frame = %d") then
                local preState = splineMgr.deepCopyDecalSpline(selSpline)
              tmpPtr = im.IntPtr(selSpline.numRows3)
              if im.SliderInt("###4435", tmpPtr, 1, 4, "Num Rows = %d") then
                selSpline.numRows3 = tmpPtr[0]
              tmpPtr = im.IntPtr(selSpline.numCols3)
              if im.SliderInt("###4436", tmpPtr, 1, 4, "Num Cols = %d") then
                selSpline.numCols3 = tmpPtr[0]
              tmpPtr = im.IntPtr(selSpline.frame3)
              if im.SliderInt("###4437", tmpPtr, 0, selSpline.numCols3 * selSpline.numRows3 - 1, "Frame = %d") then
                local preState = splineMgr.deepCopyDecalSpline(selSpline)
              tmpPtr = im.IntPtr(selSpline.numRows4)
              if im.SliderInt("###4439", tmpPtr, 1, 4, "Num Rows = %d") then
                selSpline.numRows4 = tmpPtr[0]
              tmpPtr = im.IntPtr(selSpline.numCols4)
              if im.SliderInt("###4440", tmpPtr, 1, 4, "Num Cols = %d") then
                selSpline.numCols4 = tmpPtr[0]
              tmpPtr = im.IntPtr(selSpline.frame4)
              if im.SliderInt("###4441", tmpPtr, 0, selSpline.numCols4 * selSpline.numRows4 - 1, "Frame = %d") then
                local preState = splineMgr.deepCopyDecalSpline(selSpline)