GE Lua Documentation

Press F to search!

RadioButton2

Definition


-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:365
function M.RadioButton2(string_label, int_v, int_v_button)
  if string_label == nil then log("E", "", "Parameter 'string_label' of function 'RadioButton2' cannot be nil, as the c type is 'const char *'") ; return end
  if int_v == nil then log("E", "", "Parameter 'int_v' of function 'RadioButton2' cannot be nil, as the c type is 'int *'") ; return end
  return imgui.RadioButton2(string_label, int_v, int_v_button)
end

Callers

@/lua/ge/extensions/editor/mainToolbar.lua
    else snapModeRadioValue = im.IntPtr(0) end
    if im.RadioButton2("Snap to Origin", snapModeRadioValue, im.Int(0)) then
      editor.setPreference("snapping.terrain.snapToCenter", false)
    end
    if im.RadioButton2("Snap to Center", snapModeRadioValue, im.Int(1)) then
      editor.setPreference("snapping.terrain.snapToCenter", true)
    end
    if im.RadioButton2("Snap to Bounding Box", snapModeRadioValue, im.Int(2)) then
      editor.setPreference("snapping.terrain.snapToCenter", false)
    end
    if im.RadioButton2("Keep height", snapModeRadioValue, im.Int(3)) then
      editor.setPreference("snapping.terrain.snapToCenter", false)
@/lua/ge/extensions/editor/scriptAIEditor.lua
              if vwd.recordMode[i] == nil then vwd.recordMode[i] = im.IntPtr(1) end
              if im.RadioButton2("T-Based###" .. tostring(ctr), vwd.recordMode[i], im.Int(1)) then end
              im.SameLine()
              im.SameLine()
              if im.RadioButton2("V-Based###" .. tostring(ctr + 1), vwd.recordMode[i], im.Int(2)) then end
              ctr = ctr + 2
      im.Separator()
      im.RadioButton2("T-Based", dwd.mode, im.Int(1))
      im.SameLine()
      im.SameLine()
      im.RadioButton2("V-Based", dwd.mode, im.Int(2))
      im.Separator()
@/lua/ge/extensions/editor/meshSpline.lua
          tmpPtr = im.IntPtr(selSpline.rot)
          if im.RadioButton2("0°", tmpPtr, 0) then
            selSpline.rot = 0
          im.NextColumn()
          if im.RadioButton2("90°", tmpPtr, 1) then
            selSpline.rot = 1
          im.NextColumn()
          if im.RadioButton2("180°", tmpPtr, 2) then
            selSpline.rot = 2
          im.NextColumn()
          if im.RadioButton2("270°", tmpPtr, 3) then
            selSpline.rot = 3
            tmpPtr = im.IntPtr(selSpline.alias1Rot)
            if im.RadioButton2("0°###7751", tmpPtr, 0) then
              selSpline.alias1Rot = 0
            im.NextColumn()
            if im.RadioButton2("90°###7761", tmpPtr, 1) then
              selSpline.alias1Rot = 1
            im.NextColumn()
            if im.RadioButton2("180°###7771", tmpPtr, 2) then
              selSpline.alias1Rot = 2
            im.NextColumn()
            if im.RadioButton2("270°###7781", tmpPtr, 3) then
              selSpline.alias1Rot = 3
            tmpPtr = im.IntPtr(selSpline.alias2Rot)
            if im.RadioButton2("0°###7752", tmpPtr, 0) then
              selSpline.alias2Rot = 0
            im.NextColumn()
            if im.RadioButton2("90°###7762", tmpPtr, 1) then
              selSpline.alias2Rot = 1
            im.NextColumn()
            if im.RadioButton2("180°###7772", tmpPtr, 2) then
              selSpline.alias2Rot = 2
            im.NextColumn()
            if im.RadioButton2("270°###7782", tmpPtr, 3) then
              selSpline.alias2Rot = 3
            tmpPtr = im.IntPtr(selSpline.alias3Rot)
            if im.RadioButton2("0°###7753", tmpPtr, 0) then
              selSpline.alias3Rot = 0
            im.NextColumn()
            if im.RadioButton2("90°###7763", tmpPtr, 1) then
              selSpline.alias3Rot = 1
            im.NextColumn()
            if im.RadioButton2("180°###7773", tmpPtr, 2) then
              selSpline.alias3Rot = 2
            im.NextColumn()
            if im.RadioButton2("270°###7783", tmpPtr, 3) then
              selSpline.alias3Rot = 3
            tmpPtr = im.IntPtr(selSpline.startCapRot)
            if im.RadioButton2("0°###775", tmpPtr, 0) then
              selSpline.startCapRot = 0
            im.NextColumn()
            if im.RadioButton2("90°###776", tmpPtr, 1) then
              selSpline.startCapRot = 1
            im.NextColumn()
            if im.RadioButton2("180°###777", tmpPtr, 2) then
              selSpline.startCapRot = 2
            im.NextColumn()
            if im.RadioButton2("270°###778", tmpPtr, 3) then
              selSpline.startCapRot = 3
            tmpPtr = im.IntPtr(selSpline.endCapRot)
            if im.RadioButton2("0°###782", tmpPtr, 0) then
              selSpline.endCapRot = 0
            im.NextColumn()
            if im.RadioButton2("90°###783", tmpPtr, 1) then
              selSpline.endCapRot = 1
            im.NextColumn()
            if im.RadioButton2("180°###784", tmpPtr, 2) then
              selSpline.endCapRot = 2
            im.NextColumn()
            if im.RadioButton2("270°###785", tmpPtr, 3) then
              selSpline.endCapRot = 3
            im.Columns(2, "RoundRobinOrRandomCols", false)
            if im.RadioButton2("Round Robin", tmpPtr, 0) then
              local statePre = splineMgr.deepCopyMeshSpline(selSpline)
            im.NextColumn()
            if im.RadioButton2("Random", tmpPtr, 1) then
              local statePre = splineMgr.deepCopyMeshSpline(selSpline)
@/lua/ge/extensions/editor/objectToSplineEditor.lua

    if im.RadioButton2("Auto ##objectSpline", objAxis, im.Int(1)) then _changed = true end
    im.tooltip("Uses the longest side: X or Y")
    im.SameLine()
    if im.RadioButton2("X ##objectSpline", objAxis, im.Int(2)) then _changed = true end
    im.SameLine()
    im.SameLine()
    if im.RadioButton2("Y ##objectSpline", objAxis, im.Int(3)) then _changed = true end
    im.SameLine()
    im.SameLine()
    if im.RadioButton2("-X ##objectSpline", objAxis, im.Int(4)) then _changed = true end
    im.SameLine()
    im.SameLine()
    if im.RadioButton2("-Y ##objectSpline", objAxis, im.Int(5)) then _changed = true end
    im.SameLine()
@/lua/ge/extensions/editor/trafficManager.lua

  if im.RadioButton2("Standard Vehicles##trafficManager", options.vehicleType, im.Int(1)) then
    vehSelector.allowedTypes = {"Car", "Truck", "Automation"}
  im.SameLine()
  if im.RadioButton2("Simple Vehicles##trafficManager", options.vehicleType, im.Int(2)) then
    vehSelector.allowedTypes = {"Traffic"}
  im.SameLine()
  if im.RadioButton2("Parked Vehicles##trafficManager", options.vehicleType, im.Int(3)) then
    vehSelector.allowedTypes = {"Traffic"}

  if im.RadioButton2("Props##trafficManager", options.vehicleType, im.Int(4)) then
    vehSelector.allowedTypes = {"Prop", "Trailer", "Utility"}
  im.SameLine()
  if im.RadioButton2("Any##trafficManager", options.vehicleType, im.Int(5)) then
    vehSelector.allowedTypes = {"Car", "Truck", "Automation", "Trailer", "Prop", "Utility", "Traffic", "Unknown", "Any"}

    if im.RadioButton2("Multiple Vehicles##trafficManager", options.vehicleGroupMode, im.Int(1)) then
      options.vehicleMulti[0] = 1
    im.SameLine()
    if im.RadioButton2("Vehicle Group##trafficManager", options.vehicleGroupMode, im.Int(2)) then
      ffi.copy(options.vehicleGroupFile, "")
@/lua/ge/extensions/editor/rallyEditor/pacenotes/structuredForm.lua
  im.BeginGroup()
  if im.RadioButton2(mapping.cornerDirection[-1], directionPtr, im.Int(0)) then
    updateDirection(pacenote, -1)
  im.SameLine()
  if im.RadioButton2(mapping.cornerDirection[0], directionPtr, im.Int(1)) then
    updateDirection(pacenote, 0)
  im.SameLine()
  if im.RadioButton2(mapping.cornerDirection[1], directionPtr, im.Int(2)) then
    updateDirection(pacenote, 1)
@/lua/ge/extensions/editor/decalSpline.lua
        im.Columns(2, "RoundRobinOrRandomCols", false)
        if im.RadioButton2("Round Robin", tmpPtr, 0) then
          local statePre = splineMgr.deepCopyDecalSpline(selSpline)
        im.NextColumn()
        if im.RadioButton2("Random", tmpPtr, 1) then
          local statePre = splineMgr.deepCopyDecalSpline(selSpline)
              tmpPtr = im.IntPtr(selSpline.rot1)
              if im.RadioButton2("0°###12000", tmpPtr, 0) then
                selSpline.rot1 = 0
              im.NextColumn()
              if im.RadioButton2("90°###12001", tmpPtr, 1) then
                selSpline.rot1 = 1
              im.NextColumn()
              if im.RadioButton2("180°###12002", tmpPtr, 2) then
                selSpline.rot1 = 2
              im.NextColumn()
              if im.RadioButton2("270°###12003", tmpPtr, 3) then
                selSpline.rot1 = 3
              tmpPtr = im.IntPtr(selSpline.rot2)
              if im.RadioButton2("0°###12004", tmpPtr, 0) then
                selSpline.rot2 = 0
              im.NextColumn()
              if im.RadioButton2("90°###12005", tmpPtr, 1) then
                selSpline.rot2 = 1
              im.NextColumn()
              if im.RadioButton2("180°###12006", tmpPtr, 2) then
                selSpline.rot2 = 2
              im.NextColumn()
              if im.RadioButton2("270°###12007", tmpPtr, 3) then
                selSpline.rot2 = 3
              tmpPtr = im.IntPtr(selSpline.rot3)
              if im.RadioButton2("0°###12008", tmpPtr, 0) then
                selSpline.rot3 = 0
              im.NextColumn()
              if im.RadioButton2("90°###12009", tmpPtr, 1) then
                selSpline.rot3 = 1
              im.NextColumn()
              if im.RadioButton2("180°###12010", tmpPtr, 2) then
                selSpline.rot3 = 2
              im.NextColumn()
              if im.RadioButton2("270°###12011", tmpPtr, 3) then
                selSpline.rot3 = 3
              tmpPtr = im.IntPtr(selSpline.rot4)
              if im.RadioButton2("0°###12012", tmpPtr, 0) then
                selSpline.rot4 = 0
              im.NextColumn()
              if im.RadioButton2("90°###12013", tmpPtr, 1) then
                selSpline.rot4 = 1
              im.NextColumn()
              if im.RadioButton2("180°###12014", tmpPtr, 2) then
                selSpline.rot4 = 2
              im.NextColumn()
              if im.RadioButton2("270°###12015", tmpPtr, 3) then
                selSpline.rot4 = 3
@/lua/ge/extensions/editor/masterSpline.lua

          if im.RadioButton2("[Slope Gradient Compliance]", tmpPtr, 0) then
            selSpline.splineAnalysisMode = 0

          if im.RadioButton2("[Corner Radius Compliance]", tmpPtr, 1) then
            selSpline.splineAnalysisMode = 1

          if im.RadioButton2("[Banking Angle Compliance]", tmpPtr, 2) then
            selSpline.splineAnalysisMode = 2

          if im.RadioButton2("[Width Rate Of Change Compliance]", tmpPtr, 3) then
            selSpline.splineAnalysisMode = 3
@/lua/ge/extensions/editor/assemblySpline.lua
      local tmpPtr = im.IntPtr(selSpline.preRot)
      if im.RadioButton2("0°", tmpPtr, 0) then
        selSpline.preRot = 0
      im.NextColumn()
      if im.RadioButton2("90°", tmpPtr, 1) then
        selSpline.preRot = 1
      im.NextColumn()
      if im.RadioButton2("180°", tmpPtr, 2) then
        selSpline.preRot = 2
      im.NextColumn()
      if im.RadioButton2("270°", tmpPtr, 3) then
        selSpline.preRot = 3
                im.Columns(2, "DistributionCols" .. rigidIdx, false)
                if im.RadioButton2("Round Robin###" .. tostring(wCtr), tmpPtr, 0) then
                  local statePre = splineMgr.deepCopyAssemblySpline(selSpline)
                im.NextColumn()
                if im.RadioButton2("Random###" .. tostring(wCtr), tmpPtr, 1) then
                  local statePre = splineMgr.deepCopyAssemblySpline(selSpline)
                im.Columns(2, "BridgeDistributionCols" .. i, false)
                if im.RadioButton2("Round Robin###" .. tostring(wCtr), tmpPtr, 0) then
                  local statePre = splineMgr.deepCopyAssemblySpline(selSpline)
                im.NextColumn()
                if im.RadioButton2("Random###" .. tostring(wCtr), tmpPtr, 1) then
                  local statePre = splineMgr.deepCopyAssemblySpline(selSpline)
@/lua/ge/extensions/editor/sidewalkSpline.lua
                im.Columns(2, "DistributionCols" .. pieceIndex, false)
                if im.RadioButton2("Round Robin###dist" .. tostring(pieceIndex) .. "_0", tmpPtr, 0) then
                  local statePre = splineMgr.deepCopySidewalkSpline(selSpline)
                im.NextColumn()
                if im.RadioButton2("Random###dist" .. tostring(pieceIndex) .. "_1", tmpPtr, 1) then
                  local statePre = splineMgr.deepCopySidewalkSpline(selSpline)
@/lua/ge/extensions/editor/scriptAIManager.lua
    --im.BeginGroup()
    --im.RadioButton2("none", graphType, 0)
    --im.SameLine()
    --im.SameLine()
    --im.RadioButton2("Position error", graphType, 1)
    --im.EndGroup()

      if im.RadioButton2(vehIdtxt .. '##' .. 'vehRecording' .. tostring(vehId), vehicleChooser, i) then
        be:enterVehicle(0, bo)
@/lua/ge/extensions/gameplay/rally/tools/loopToolbox.lua
    im.Text("Active State:")
    if im.RadioButton2("Inactive", self.testActiveStateIndex, 0) then
      if manager then
    end
    if im.RadioButton2("Vehicle Proximity", self.testActiveStateIndex, 1) then
      if manager then
    end
    if im.RadioButton2("Stage Active", self.testActiveStateIndex, 2) then
      if manager then
    end
    if im.RadioButton2("Countdown", self.testActiveStateIndex, 3) then
      if manager then
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
  if int_v == nil then log("E", "", "Parameter 'int_v' of function 'RadioButton2' cannot be nil, as the c type is 'int *'") ; return end
  return imgui.RadioButton2(string_label, int_v, int_v_button)
end
@/lua/ge/extensions/editor/bulkRename.lua
    imgui.Text("Field to rename:")
    if imgui.RadioButton2("name", fieldToRenamePtr, 0) then
      updatePreview()
    end
    if imgui.RadioButton2("internalName", fieldToRenamePtr, 1) then
      updatePreview()
    imgui.Text("Objects to rename:")
    if imgui.RadioButton2("Current Selection", whatSetPtr, 0) then
      updatePreview()

    if imgui.RadioButton2("Match Pattern", whatSetPtr, 1) then
      updatePreview()
      imgui.Text("Field to search:")
      if imgui.RadioButton2("name##searchField", fieldToSearchPtr, 0) then
        updatePreview()
      end
      if imgui.RadioButton2("internalName##searchField", fieldToSearchPtr, 1) then
        updatePreview()
@/lua/ge/extensions/editor/drivePathEditor.lua
      im.Columns(3, "velocityUnits", false)
      if im.RadioButton2("m/s", tmpPtr, 0) then
        velocityUnitsInt = 0
      im.NextColumn()
      if im.RadioButton2("mph", tmpPtr, 1) then
        velocityUnitsInt = 1
      im.NextColumn()
      if im.RadioButton2("kph", tmpPtr, 2) then
        velocityUnitsInt = 2
    im.Columns(2, "Spline Mode", false)
    if im.RadioButton2("NavGraph Mode", tmpPtr, 0) then
      splineMgr.resetGeometry(selSpline)
    im.NextColumn()
    if im.RadioButton2("Free Mode", tmpPtr, 1) then
      splineMgr.resetGeometry(selSpline)
    im.Columns(2, "Route Speed Mode", false)
    if im.RadioButton2("Set", tmpPtr, 0) then
      selSpline.isRouteSpeedLimit = false
    im.NextColumn()
    if im.RadioButton2("Limit", tmpPtr, 1) then
      selSpline.isRouteSpeedLimit = true
@/lua/ge/extensions/editor/multiSpawnManager.lua

  if im.RadioButton2("Custom##editGroup", val, im.Int(1)) then
    currGroup.type = "custom"

  if im.RadioButton2("Generator##editGroup", val, im.Int(2)) then
    currGroup.type = "generator"
@/lua/ge/extensions/editor/roadArchitect.lua
              im.Columns(4)
              im.RadioButton2("L-Span###" .. tostring(wCtr), layer.type, 0)
              im.tooltip('A longitudinal layer which spans a lane/multiple adjacent lanes.')
              im.NextColumn()
              im.RadioButton2("Offset###" .. tostring(wCtr), layer.type, 1)
              im.tooltip('A longitudinal layer which has a fixed width, and is offset from one side of a lane.')
              im.NextColumn()
              im.RadioButton2("Patch###" .. tostring(wCtr), layer.type, 2)
              im.tooltip('A single-instance layer, at some chosen position along the road. Spans a lane/multiple lanes.')
              im.NextColumn()
              im.RadioButton2("Decal###" .. tostring(wCtr), layer.type, 3)
              im.tooltip('A single-instance layer, at some chosen position along the road, and indexes a larger tiled-material. Has a fixed size.')
              im.Columns(2)
              im.RadioButton2("Road-Span Mesh###" .. tostring(wCtr), layer.type, 4)
              im.tooltip('A road-spanning layer comprised of adjacent static mesh units.')
              im.NextColumn()
              im.RadioButton2("Single Mesh###" .. tostring(wCtr), layer.type, 5)
              im.tooltip('A single-instance static mesh, at some chosen position along the road.')
                  im.Columns(4)
                  im.RadioButton2("0###" .. tostring(wCtr), layer.rot, 0)
                  wCtr = wCtr + 1
                  im.NextColumn()
                  im.RadioButton2("90###" .. tostring(wCtr), layer.rot, 1)
                  wCtr = wCtr + 1
                  im.NextColumn()
                  im.RadioButton2("180###" .. tostring(wCtr), layer.rot, 2)
                  wCtr = wCtr + 1
                  im.NextColumn()
                  im.RadioButton2("270###" .. tostring(wCtr), layer.rot, 3)
                  wCtr = wCtr + 1
                im.Columns(4)
                im.RadioButton2("0###" .. tostring(wCtr), layer.rot, 0)
                wCtr = wCtr + 1
                im.NextColumn()
                im.RadioButton2("90###" .. tostring(wCtr), layer.rot, 1)
                wCtr = wCtr + 1
                im.NextColumn()
                im.RadioButton2("180###" .. tostring(wCtr), layer.rot, 2)
                wCtr = wCtr + 1
                im.NextColumn()
                im.RadioButton2("270###" .. tostring(wCtr), layer.rot, 3)
                wCtr = wCtr + 1
                im.Columns(4)
                im.RadioButton2("0###" .. tostring(wCtr), layer.rot, 0)
                wCtr = wCtr + 1
                im.NextColumn()
                im.RadioButton2("90###" .. tostring(wCtr), layer.rot, 1)
                wCtr = wCtr + 1
                im.NextColumn()
                im.RadioButton2("180###" .. tostring(wCtr), layer.rot, 2)
                wCtr = wCtr + 1
                im.NextColumn()
                im.RadioButton2("270###" .. tostring(wCtr), layer.rot, 3)
                wCtr = wCtr + 1
              im.Columns(4)
              im.RadioButton2("[A]###" .. tostring(wCtr), profile[selSW].vStart, 0)
              wCtr = wCtr + 1
              im.NextColumn()
              im.RadioButton2("[B]###" .. tostring(wCtr), profile[selSW].vStart, 1)
              wCtr = wCtr + 1
              im.NextColumn()
              im.RadioButton2("[C]###" .. tostring(wCtr), profile[selSW].vStart, 2)
              wCtr = wCtr + 1
              im.NextColumn()
              im.RadioButton2("[D]###" .. tostring(wCtr), profile[selSW].vStart, 3)
              wCtr = wCtr + 1
          im.Columns(3)
          if im.RadioButton2("Urban###2222", profile.styleType, 0) then
            profile.class = 'urban'
          im.NextColumn()
          if im.RadioButton2("Highway###2223", profile.styleType, 1) then
            profile.class = 'highway'
          im.NextColumn()
          if im.RadioButton2("Dirt###2224", profile.styleType, 2) then
            profile.class = 'dirt'
@/lua/ge/extensions/editor/forestEditor.lua

      if im.RadioButton2("Rectangle Select", selectionModeValue, im.Int(0)) then
        var.transformToolSelectionMode = var.enum_toolMode.select

      if im.RadioButton2("Lasso Select", selectionModeValue, im.Int(1)) then
        var.transformToolSelectionMode = var.enum_toolMode.lassoSelect