-
You must be signed in to change notification settings -
Updated Overdue Loan Payment Nag to Use Immersive Dialog #6421
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
Conversation
- Improved overdue loan handling in `CampaignGUI` with immersive dialog messages for both in-character and out-of-character contexts. - Declared 'checkOverDueLoans' (in `Campaign.java`) deprecated and marked for removal.
dialogOverdueLoans.title=Overdue loans | ||
dialogOverdueLoans.text=You must resolve overdue loans before advancing the day. | ||
|
||
# New Day Blockers |
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.
New resource keys
@@ -8970,14 +8937,15 @@ public void shutdownAtB() { | |||
atbEventProcessor.shutdown(); | |||
} | |||
|
|||
@Deprecated(forRemoval = true, since = "0.50.05") |
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.
Deprecated method
* Checks if there are any overdue loans If the {@code checkOverDueLoans()} method of the {@link Campaign} | ||
* associated with the given {@link DayEndingEvent} returns {@code true}, the funds get refreshed, a dialog shows up | ||
* informing the user of the overdue loans, and the {@link DayEndingEvent} is canceled. | ||
* Checks for overdue loan payments in the campaign and handles them by displaying a warning dialog and canceling |
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.
Updated method
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6421 +/- ##
============================================
- Coverage 11.29% 11.28% -0.01%
+ Complexity 6291 6285 -6
============================================
Files 1072 1072
Lines 136567 136601 +34
Branches 21119 21122 +3
============================================
- Hits 15430 15421 -9
- Misses 119592 119637 +45
+ Partials 1545 1543 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
# Conflicts: # MekHQ/resources/mekhq/resources/CampaignGUI.properties # MekHQ/src/mekhq/campaign/Campaign.java # MekHQ/src/mekhq/gui/CampaignGUI.java
CampaignGUI
with immersive dialog messages for both in-character and out-of-character contexts.Campaign.java
) deprecated and marked for removal.Order of Merging
Must be merged AFTER #6420
Reviewer Note
There are a lot of automatic format changes in this PR, I've commented the functional changes. There rest is chaff and can probably be ignored.
Dev Notes
This also fixes a bug where the user could bypass the New Day blocker just by clicking the 'x' in the dialog.
I haven't updated the 'scenarios due' nag, as that's only relevant to campaigns using the deprecated Legacy AtB digital GM.