GE Lua Documentation

Press F to search!

InputDouble

Definition


-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:667
function M.InputDouble(string_label, double_v, double_step, double_step_fast, string_format, ImGuiInputTextFlags_flags)
  if double_step == nil then double_step = 0 end
  if double_step_fast == nil then double_step_fast = 0 end
  if string_format == nil then string_format = "%.6f" end
  if ImGuiInputTextFlags_flags == nil then ImGuiInputTextFlags_flags = 0 end
  if string_label == nil then log("E", "", "Parameter 'string_label' of function 'InputDouble' cannot be nil, as the c type is 'const char *'") ; return end
  if double_v == nil then log("E", "", "Parameter 'double_v' of function 'InputDouble' cannot be nil, as the c type is 'double *'") ; return end
  return imgui.InputDouble(string_label, double_v, double_step, double_step_fast, string_format, ImGuiInputTextFlags_flags)
end

Callers

@/lua/common/extensions/ui/imgui_gen_luaintf.lua
  if double_v == nil then log("E", "", "Parameter 'double_v' of function 'InputDouble' cannot be nil, as the c type is 'double *'") ; return end
  return imgui.InputDouble(string_label, double_v, double_step, double_step_fast, string_format, ImGuiInputTextFlags_flags)
end
@/lua/ge/extensions/editor/api/gui.lua
local function uiInputDouble(label, v, step, step_fast, format, extra_flags, editEnded)
  local res =  imgui.InputDouble(label, v, step, step_fast, format or "%.6f", extra_flags)
  if editEnded then