diff --git a/changelog/snippets/features.6095.md b/changelog/snippets/features.6095.md new file mode 100644 index 0000000000..459e6a2fe1 --- /dev/null +++ b/changelog/snippets/features.6095.md @@ -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. diff --git a/lua/ui/controls/draggers/radial.lua b/lua/ui/controls/draggers/radial.lua index b256801b8a..1321eabe96 100644 --- a/lua/ui/controls/draggers/radial.lua +++ b/lua/ui/controls/draggers/radial.lua @@ -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