GE Lua Documentation

Press F to search!

KnobInt

Definition


-- @/lua/common/extensions/ui/imgui_custom_luaintf.lua:404

  function M.KnobInt(string_label, intPtr_value, int_v_min, int_v_max, float_speed, string_format, ImGuiKnobVariant_variant, float_size, ImGuiKnobFlags_flags, int_steps)
    if int_v_min == nil then int_v_min = 0 end
    if int_v_max == nil then int_v_max = 1 end
    if float_speed == nil then float_speed = 0 end
    if string_format == nil then string_format = "%.3f" end
    if ImGuiKnobVariant_variant == nil then ImGuiKnobVariant_variant = ImGuiKnobVariant_Tick end
    if float_size == nil then float_size = 0 end
    if ImGuiKnobFlags_flags == nil then ImGuiKnobFlags_flags = 0 end
    if int_steps == nil then int_steps = 10 end
    return imgui.KnobInt(string_label, floatPtr_value, float_v_min, float_v_max, float_speed, string_format, ImGuiKnobVariant_variant, float_size, ImGuiKnobFlags_flags, int_steps)
  end

Callers

@/lua/common/extensions/ui/imgui_custom_luaintf.lua
    if int_steps == nil then int_steps = 10 end
    return imgui.KnobInt(string_label, floatPtr_value, float_v_min, float_v_max, float_speed, string_format, ImGuiKnobVariant_variant, float_size, ImGuiKnobFlags_flags, int_steps)
  end