DragInt
Definition
-- @/=[C]:-1
function DragInt(...)
Callers
@/lua/ge/extensions/editor/api/gui.lua
local function uiDragInt(label, v, v_speed, v_min, v_max, format, flags, editEnded)
local res = imgui.DragInt(label, v, v_speed, v_min, v_max, format, flags)
if editEnded then
@/lua/ge/extensions/editor/dynamicDecals/widgets.lua
im.PushItemWidth(im.GetContentRegionAvailWidth())
if im.DragInt(widgetId, editor.getTempInt_NumberNumber(baseProp.getMod and baseProp.getMod(value) or value), baseProp.dragSpeed, baseProp.min, baseProp.max) then
local newVal = editor.getTempInt_NumberNumber()
@/lua/ge/extensions/trackbuilder/trackBuilder.lua
local x = im.GetCursorPosX()
if im.DragInt("Bank", modifierValues.bank.value) then
tbFunctions.modifierChange('bank')
if modifierValues.height.customSlope[0] then
if im.DragInt("Slope Angle", modifierValues.height.customSlopeValue) then
tbFunctions.modifierChange("height")
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
end
function M.DragInt(string_label, int_v, float_v_speed, int_v_min, int_v_max, string_format, ImGuiSliderFlags_flags)
if float_v_speed == nil then float_v_speed = 1 end
if int_v == nil then log("E", "", "Parameter 'int_v' of function 'DragInt' cannot be nil, as the c type is 'int *'") ; return end
return imgui.DragInt(string_label, int_v, float_v_speed, int_v_min, int_v_max, string_format, ImGuiSliderFlags_flags)
end
@/lua/ge/extensions/flowgraph/nodes/ui/imgui/elemental/imNumbers.lua
imVal = im.IntPtr(self.val)
ret = im.DragInt(label, imVal, step, min, max)
elseif self.mode == 'DragFloat' then