GE Lua Documentation

Press F to search!

DragIntRange2

Definition


-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:506
function M.DragIntRange2(string_label, int_v_current_min, int_v_current_max, float_v_speed, int_v_min, int_v_max, string_format, string_format_max, ImGuiSliderFlags_flags)
  if float_v_speed == nil then float_v_speed = 1 end
  if int_v_min == nil then int_v_min = 0 end
  if int_v_max == nil then int_v_max = 0 end
  if string_format == nil then string_format = "%d" end
  -- string_format_max is optional and can be nil
  if ImGuiSliderFlags_flags == nil then ImGuiSliderFlags_flags = 0 end
  if string_label == nil then log("E", "", "Parameter 'string_label' of function 'DragIntRange2' cannot be nil, as the c type is 'const char *'") ; return end
  if int_v_current_min == nil then log("E", "", "Parameter 'int_v_current_min' of function 'DragIntRange2' cannot be nil, as the c type is 'int *'") ; return end
  if int_v_current_max == nil then log("E", "", "Parameter 'int_v_current_max' of function 'DragIntRange2' cannot be nil, as the c type is 'int *'") ; return end
  return imgui.DragIntRange2(string_label, int_v_current_min, int_v_current_max, float_v_speed, int_v_min, int_v_max, string_format, string_format_max, ImGuiSliderFlags_flags)
end

Callers

@/lua/common/extensions/ui/imgui_gen_luaintf.lua
  if int_v_current_max == nil then log("E", "", "Parameter 'int_v_current_max' of function 'DragIntRange2' cannot be nil, as the c type is 'int *'") ; return end
  return imgui.DragIntRange2(string_label, int_v_current_min, int_v_current_max, float_v_speed, int_v_min, int_v_max, string_format, string_format_max, ImGuiSliderFlags_flags)
end
@/lua/ge/extensions/editor/api/gui.lua
local function uiDragIntRange2(label, v_current_min, v_current_max, v_speed, v_min, v_max, format, format_max, flags, editEnded)
  local res = imgui.DragIntRange2(label, v_current_min, v_current_max, v_speed, v_min, v_max, format, format_max, flags)
  if editEnded then