GE Lua Documentation

Press F to search!

DragFloat3

Definition


-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:439
function M.DragFloat3(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 float_v_min == nil then float_v_min = 0 end
  if float_v_max == nil then float_v_max = 0 end
  if string_format == nil then string_format = "%.3f" end
  if ImGuiSliderFlags_flags == nil then ImGuiSliderFlags_flags = 0 end
  if string_label == nil then log("E", "", "Parameter 'string_label' of function 'DragFloat3' cannot be nil, as the c type is 'const char *'") ; return end
  return imgui.DragFloat3(string_label, floatPtr_v, float_v_speed, float_v_min, float_v_max, string_format, ImGuiSliderFlags_flags)
end

Callers

@/lua/ge/extensions/trackbuilder/trackBuilder.lua

  if im.DragFloat3(translateLanguage("ui.trackBuilder.trackSettings.position", "Position"),trackPositionValues.position,0.1) then
    tb.setTrackPosition(trackPositionValues.position[0],trackPositionValues.position[1],trackPositionValues.position[2],trackPositionValues.rotation[0])

        if im.DragFloat3("Position##o"..i,o.position,0.05, nil, nil, "%.2f") then tbFunctions.modifierChange('obstacles') end
        im.SameLine()
        elseif dimensions == 3 then
          if im.DragFloat3("Scale   ##o"..i,o.scale,0.01, nil, nil, "%.2f") then tbFunctions.modifierChange('obstacles') end
        elseif dimensions == 4 then
        elseif dimensions == 4 then
          if im.DragFloat3("   ##o"..i,o.scale,0.01, nil, nil, "%.2f") then tbFunctions.modifierChange('obstacles') end
          if im.DragFloat("Scale   ##xo"..i,o.extra,0.01, nil, nil, "%.2f") then tbFunctions.modifierChange('obstacles') end
        elseif dimensions == 5 then
          if im.DragFloat3("   ##o"..i,o.scale,0.01, nil, nil, "%.2f") then tbFunctions.modifierChange('obstacles') end
          if im.DragFloat2("Scale   ##xo"..i,o.extra,0.01, nil, nil, "%.2f") then tbFunctions.modifierChange('obstacles') end
        elseif dimensions == 6 then
          if im.DragFloat3("   ##o"..i,o.scale,0.01, nil, nil, "%.2f") then tbFunctions.modifierChange('obstacles') end
          if im.DragFloat3("Scale   ##xo"..i,o.extra,0.01, nil, nil, "%.2f") then tbFunctions.modifierChange('obstacles') end
          if im.DragFloat3("   ##o"..i,o.scale,0.01, nil, nil, "%.2f") then tbFunctions.modifierChange('obstacles') end
          if im.DragFloat3("Scale   ##xo"..i,o.extra,0.01, nil, nil, "%.2f") then tbFunctions.modifierChange('obstacles') end
        end

        if im.DragFloat3("Rotation ##o"..i,o.rotation, 1, nil, nil, "%.2f") then tbFunctions.modifierChange('obstacles') end
        im.SameLine()
  end
  if im.DragFloat3("Position##cp", modifierValues.checkpoint.position, 0.05) then
     tbFunctions.modifierChange('checkpoint')
@/lua/ge/extensions/flowgraph/nodes/types/transform.lua
  im.PushItemWidth(columnSize.x)
  if im.DragFloat3("##pos"..self.id,pos, 0.5) then
    self.position:set(pos[0], pos[1], pos[2])
    im.PushItemWidth(columnSize.x)
    if im.DragFloat3("##rot"..self.id,eul, 0.1) then
      self.euler = {x = eul[0]/180*math.pi, y = eul[1]/180*math.pi, z = eul[2]/180*math.pi}
  im.PushItemWidth(columnSize.x)
  if im.DragFloat3("##scl"..self.id,scl, 0.1) then
    self.scale:set(scl[0], scl[1], scl[2])
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
  if string_label == nil then log("E", "", "Parameter 'string_label' of function 'DragFloat3' cannot be nil, as the c type is 'const char *'") ; return end
  return imgui.DragFloat3(string_label, floatPtr_v, float_v_speed, float_v_min, float_v_max, string_format, ImGuiSliderFlags_flags)
end
@/lua/ge/extensions/editor/api/gui.lua
local function uiDragFloat3(label, v, v_speed, v_min, v_max, format, flags, editEnded)
  local res = imgui.DragFloat3(label, v, v_speed, v_min, v_max, format, flags)
  if editEnded then
@/lua/ge/extensions/flowgraph/nodes/scene/camera/setCameraPosition.lua
    pos[2] = im.Float(self.position.z)
    if im.DragFloat3("##pos"..self.id,pos, 0.5) then
      self.position:set(pos[0], pos[1], pos[2])