-
Notifications
You must be signed in to change notification settings - Fork 177
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
#3763 reversing quality names in unit set quality GM menu #3824
#3763 reversing quality names in unit set quality GM menu #3824
Conversation
Object[] possibilities = { Part.getQualityName(Part.QUALITY_A, reverse), | ||
Part.getQualityName(Part.QUALITY_B, reverse), Part.getQualityName(Part.QUALITY_C, reverse), | ||
Part.getQualityName(Part.QUALITY_D, reverse), Part.getQualityName(Part.QUALITY_E, reverse), | ||
Part.getQualityName(Part.QUALITY_F, reverse) }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check the review guide as this is a little hard to read. Might need to put each quality on its own line to make reading it easier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved each to its own line. Also did this in PartsTableMouseAdapter
where I copied this chunk from.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #3824 +/- ##
============================================
- Coverage 10.63% 10.62% -0.01%
+ Complexity 5474 5472 -2
============================================
Files 834 834
Lines 113836 113841 +5
Branches 17198 17198
============================================
- Hits 12106 12101 -5
- Misses 100524 100533 +9
- Partials 1206 1207 +1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the one comment, just adding a flag for reversing of Quality names.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, looks much better and easier to read.
This fixes #3763. When setting the quality of a unit in the Hangar the quality names are properly reversed.
Code duplicated from PartsTableMouseAdapter#actionPerformed