Int
Definition
-- @/lua/common/extensions/ui/imgui_custom_luaintf.lua:48
function M.Int(x) return x end
Callers
@/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/missionEditor/progressSetup.lua
local function popStyle(colorName)
im.PopStyleColor(im.Int(1))
end
@/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/missionEditor/genericTypeData.lua
local function popStyle(colorName)
im.PopStyleColor(im.Int(1))
end
@/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/ui/console.lua
log("E","inputCallback", "history is corrupted (not str)")
return 0 -- im.Int(0)
end
hide()
return 1 --im.Int(1)
end
end
return 0 --im.Int(0)
end
@/lua/ge/extensions/editor/missionEditor/progressSingle.lua
local function popStyle(colorName)
im.PopStyleColor(im.Int(1))
end
@/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/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/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
@/lua/ge/extensions/editor/missionEditor/progressMulti.lua
local function popStyle(colorName)
im.PopStyleColor(im.Int(1))
end
@/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"