Skip to content

Commit

Permalink
Do not show the radial dragger when the mouse did not move (#6312)
Browse files Browse the repository at this point in the history
  • Loading branch information
lL1l1 authored Jul 6, 2024
1 parent 16393f2 commit c8b1115
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog/snippets/features.6095.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- (#6095, #6312) Implement a new area attack order when you left click and drag while issuing an attack command. It issues extra orders within the radius of the command which you can then distribute to spread out the attacks.
4 changes: 4 additions & 0 deletions lua/ui/controls/draggers/radial.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ RadialDragger = Class(Dragger) {
self.ShapeStart = trash:Add(UIRenderableCircle(view, 'rectangle-dragger-start', mouseWorldPosition[1],
mouseWorldPosition[2], mouseWorldPosition[3], size, 'ffffff', thickness))

if minimumDistance > 0 then
self.ShapeStart:Hide()
end

self.Origin = mouseWorldPosition

-- register the dragger
Expand Down

0 comments on commit c8b1115

Please sign in to comment.