GE Lua Documentation

Press F to search!

IsMouseDragging

Definition


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

Callers

@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veView.lua
  if view.isHovered then
    view.mouseDragging0 = im.IsMouseDragging(0)
    view.dragMode = ''
@/lua/ge/extensions/editor/api/gui.lua
    if onRelease then
      if imgui.IsItemHovered() and imgui.IsMouseReleased(0) and not imgui.IsMouseDragging(0) then
        return true
    if onRelease then
      if imgui.IsItemHovered() and imgui.IsMouseReleased(0) and not imgui.IsMouseDragging(0) then
        return true
@/lua/ge/extensions/editor/util/plotHelperUtil.lua
function C:moveGraph(dt)
  if im.IsMouseDragging(0) then
    if not self.isMouseDragging then
@/lua/ge/extensions/editor/forestEditor.lua

            if var.mouseButtonHeldOnLassoNode and im.IsMouseDragging(0) then
              var.lassoPLNodes[var.lassoPLSelectedNodeIndex].pos = hit.pos

                if var.mouseButtonHeldOnLassoNode and im.IsMouseDragging(0) then
                  var.lassoPLNodes[var.lassoPLSelectedNodeIndex].pos = hit.pos

                if im.IsMouseDragging(0) and var.lassoFHLastMousePos ~= nil then
                  local dragLength = (hit.pos - var.lassoFHLastMousePos):length()
        -- rectangle selection
        if im.IsMouseDragging(0) and mouseDragStartPos then
          isMouseDragging = true
@/lua/ge/extensions/editor/terrainEditor.lua
                end
                if potentialDragDropPayload and im.IsMouseDragging(0) then
                  dragDropPayload = potentialDragDropPayload
@/lua/ge/extensions/editor/objectTool.lua

  if clickedHoveredObject and raycastMode and imgui.IsMouseDragging(0, 1) then
    if core_forest.getForestObject() and not worldEditorCppApi.getClassIsSelectable("Forest") then core_forest.getForestObject():disableCollision() end
  -- select by rect
  if not (clickedHoveredObject and raycastMode) and imgui.IsMouseDragging(0) and mouseDragStartPos then
    doingRectSelection = true
@/lua/ge/extensions/editor/inspector.lua
  if draggingGCUVHandleSq ~= nil then
    if imgui.IsMouseDragging(0) then
      updateGroundCoverUVHandle()
@/lua/ge/extensions/editor/api/gizmo.lua
    -- if it's dragging right now
    elseif axisGizmoEventState.mouseDown and imgui.IsMouseDragging(0, 1) then
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veStaticRenderView.lua

  local isMouseDragging2 = im.IsMouseDragging(2)
@/lua/ge/extensions/editor/sceneTree.lua
    end
    if imgui.IsMouseDragging(0) then
      if clickedOnNode and not mouseDragRange and (triggerOnRelease or textHovered) then
    if triggerOnRelease then
      if imgui.IsMouseReleased(0) and not imgui.IsMouseDragging(0) then
        return true

      if imgui.IsMouseDragging(0) and instance.mouseDragStartPos and not hasDragDropPayload then
        if not editor.keyModifiers.ctrl then
@/lua/ge/extensions/editor/renderTest.lua
    local delta = im.ImVec2(0, 0)
    if im.IsMouseDragging(0) then
      attachToObject[0] = false
    end
    if im.IsMouseDragging(0) and lastMouseDragPos then
      pos.x = pos.x - delta.x
@/lua/ge/extensions/editor/biomeTool.lua
    end
    if var.mouseButtonHeldOnLassoNode and imgui.IsMouseDragging(0) then
      updateNodePosInArea(var.lassoHoveredNode.layerID, var.lassoHoveredNode.areaID, var.lassoHoveredNode.areaType, var.lassoHoveredNode.index, hit.pos)
@/lua/ge/extensions/editor/roadEditor.lua

if isRectSelectKeyCombinationActive and im.IsMouseDragging(0) and not isRectSelecting then
  isRectSelecting = true
@/lua/ge/extensions/editor/gen/exp_solidflex.lua
--    core_camera.getForward()
    if cvover and im.IsMouseDragging(0) then
        if cpick and rayCast then
@/lua/ge/extensions/editor/sceneView.lua
      if view.isHovered then
        view.mouseDragging0 = im.IsMouseDragging(0)
        view.dragMode = ''
@/lua/ge/extensions/editor/levelValidator.lua

        if im.IsMouseDragging(0) then
          for i = 1, 6 do
@/lua/ge/extensions/editor/gen/world.lua
	end
	if im.IsMouseDragging(0) then
		lo('?? W_drag:')
--        end
		if im.IsMouseDragging(0) then
--                lo('?? unupd_drag:',true)
		end
		if im.IsMouseDragging(0) then
--                lo('?? unupd_drag:',true)
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
function M.GetMousePosOnOpeningCurrentPopup() return imgui.GetMousePosOnOpeningCurrentPopup() end
function M.IsMouseDragging(ImGuiMouseButton_button, float_lock_threshold)
  if float_lock_threshold == nil then float_lock_threshold = -1 end
  if float_lock_threshold == nil then float_lock_threshold = -1 end
  return imgui.IsMouseDragging(ImGuiMouseButton_button, float_lock_threshold)
end
@/lua/ge/extensions/freeroam/bigMapMode.lua
  end
  if imgui.IsMouseDragging(0) then
    mouseDragging = true