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

Implement units cycling #2474

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

blabber
Copy link
Collaborator

@blabber blabber commented Dec 28, 2024

Since the new Units Report was introduced in 3.1, there was no longer a way to cycle all units of a given unit type on the map.

With this commit scrolling the mouse wheel on the selected unit icon in the "Unit Controls" widget, cycles through idle or sentried units of the same unit type.

Since the new Units Report was introduced in 3.1, there was no longer
a way to cycle all units of a given unit type on the map.

With this commit scrolling the mouse wheel on the selected unit icon
in the "Unit Controls" widget, cycles through idle or sentried units
of the same unit type.
@blabber
Copy link
Collaborator Author

blabber commented Dec 28, 2024

This is something I was missing in Sim06. To be honest the UX is obscure, but it is similar to the way it worked in the units report pre-3.1. And it is easier than working with the advanced unit selection for this use case.

@blabber
Copy link
Collaborator Author

blabber commented Dec 28, 2024

CodeFactor is not happy, although I don't think the method it is complaining about is overly complex. Will check later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant