Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polish area attack dragger code and visuals #6317

Merged
merged 10 commits into from
Jul 6, 2024

Conversation

lL1l1
Copy link
Contributor

@lL1l1 lL1l1 commented Jul 1, 2024

Description of the proposed changes

Builds on top of/contains #6312 and #6316 (rebase this PR when those are merged in).

  • Clean up area attack script with removing unused values and refactoring variable names.
  • Make the area attack radial dragger red colored.
  • Make the area attack dragger show up in the worldview it is clicked on (previously it only worked in one worldview).

Testing done on the proposed changes

Use the area attack order by clicking and dragging and make sure it looks good.

Checklist

  • Changes are annotated, including comments where useful
  • Changes are documented in the changelog for the next game version

@lL1l1 lL1l1 added area: ui Anything to do with the User Interface of the Game feature: area commands related to area attack/reclaim or other broad-effect commands labels Jul 1, 2024
@lL1l1 lL1l1 added this to the Development iteration II of 2024 milestone Jul 1, 2024
@lL1l1 lL1l1 mentioned this pull request Jul 1, 2024
2 tasks
@@ -51,9 +45,8 @@ end

---@param units Unit[]
---@param target Vector
---@param doPrint boolean # if true, prints information about the order
---@param radius? number
function AreaAttackOrder(units, target, doPrint, radius)
Copy link
Member

@Garanas Garanas Jul 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The printing was not used (yet), but in general the printing exists as a form of feedback for the user that the command is processed. I'm fine with it (not) existing, but that's why all the other special commands (distribute/copy orders, assist-to side effects, etc) have this printing.

Copy link
Member

@Garanas Garanas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The polishing that it needed 👍 !

@lL1l1 lL1l1 force-pushed the feature/area-attack-dragger branch from a54034e to 7202fcd Compare July 6, 2024 08:00
@lL1l1 lL1l1 merged commit 3e4d0af into FAForever:develop Jul 6, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ui Anything to do with the User Interface of the Game feature: area commands related to area attack/reclaim or other broad-effect commands
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants