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

Updated Interstellar Map View Defaults & Optimized 'ISW' view #5107

Merged
merged 5 commits into from
Oct 23, 2024

Conversation

IllianiCBT
Copy link
Collaborator

This PR updates the interstellar map to make the old ISW the default. It makes some substantial optimizations under the hood to ISW to make it less of a resource hog. As well as some general visual changes to that view and renamed it to 'Territory'.

This has a few added benefits. In addition to looking closer to CGL's official maps, the territory won't disappear when the user changes map filters. So you avoid situations like the image below:
image

Instead you get...
image

Updated the system capital and hiring hall rendering to use faction-specific colors and adjusted the arc rendering to improve visual clarity. Added a check for "GREAT" Hiring Hall levels and modified the painting logic accordingly.
Replaced the "ISW Areas" checkbox with "Territory" and updated the related rendering logic to improve faction territory display. Also removed the unused import statement of `Collectors`. This refactor enhances the readability and accuracy of the territory visualization in the InterstellarMapPanel.
@IllianiCBT IllianiCBT added the GUI label Oct 22, 2024
@IllianiCBT IllianiCBT self-assigned this Oct 22, 2024
@codecov-commenter
Copy link

codecov-commenter commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.54%. Comparing base (594b93f) to head (fcec074).
Report is 32 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #5107   +/-   ##
=========================================
  Coverage     10.54%   10.54%           
- Complexity     6038     6044    +6     
=========================================
  Files           955      956    +1     
  Lines        134147   134188   +41     
  Branches      19472    19479    +7     
=========================================
+ Hits          14143    14149    +6     
- Misses       118659   118697   +38     
+ Partials       1345     1342    -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Renamed the 'independentFaction' variable to 'indFaction' for brevity and consistency. This change affects multiple locations within the InterstellarMapPanel class where faction checks are performed.
Changed the color of the circle from semi-transparent black to dark grey when certain conditions were not met. This ensures better visual consistency and readability in the interstellar map display.
Implemented a new dashedThick stroke and applied it to the contract search radius, planetary acquisition radius, and jump radius arcs.
Copy link
Member

@HammerGS HammerGS left a comment

Choose a reason for hiding this comment

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

Tested and seems to be working.

@HammerGS HammerGS merged commit 21f2e98 into MegaMek:master Oct 23, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants