GE Lua Documentation

Press F to search!

DragFloat4

Definition


-- @/=[C]:-1
function DragFloat4(...)

Callers

@/lua/ge/extensions/editor/api/gui.lua
local function uiDragFloat4(label, v, v_speed, v_min, v_max, format, flags, editEnded)
  local res = imgui.DragFloat4(label, v, v_speed, v_min, v_max, format, flags)
  if editEnded then
@/lua/ge/extensions/flowgraph/nodes/types/transform.lua
    im.PushItemWidth(columnSize.x)
    if im.DragFloat4("##rot"..self.id,rot, 0.025) then
      self.rotation = quat(rot[0],rot[1],rot[2],rot[3]):normalized()
@/lua/ge/extensions/flowgraph/nodes/scene/camera/setCameraRotation.lua
    pos[3] = im.Float(self.rotation.w)
    if im.DragFloat4("##pos"..self.id,pos, 0.5) then
      self.rotation = quat(pos[0], pos[1], pos[2], pos[3]):normalized()
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
end
function M.DragFloat4(string_label, floatPtr_v, float_v_speed, float_v_min, float_v_max, string_format, ImGuiSliderFlags_flags)
  if float_v_speed == nil then float_v_speed = 1 end
  if string_label == nil then log("E", "", "Parameter 'string_label' of function 'DragFloat4' cannot be nil, as the c type is 'const char *'") ; return end
  return imgui.DragFloat4(string_label, floatPtr_v, float_v_speed, float_v_min, float_v_max, string_format, ImGuiSliderFlags_flags)
end