8000 Updated Overdue Loan Payment Nag to Use Immersive Dialog by IllianiBird · Pull Request #6421 · MegaMek/mekhq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 2 commits into from
Mar 30, 2025

Conversation

IllianiBird
Copy link
Collaborator
@IllianiBird IllianiBird commented Mar 25, 2025
  • 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.

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.

image

- 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.
@IllianiBird IllianiBird added Bug GUI Refactoring Severity: Low Issues described as low severity as per the new issue form labels Mar 25, 2025
@IllianiBird IllianiBird self-assigned this Mar 25, 2025
dialogOverdueLoans.title=Overdue loans
dialogOverdueLoans.text=You must resolve overdue loans before advancing the day.

# New Day Blockers
Copy link
Collaborator Author

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")
Copy link
Collaborator Author

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
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated method

@IllianiBird IllianiBird marked this pull request as draft March 25, 2025 19:36
Copy link
codecov bot commented Mar 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 11.28%. Comparing base (cac7cdc) to head (114c51b).
Report is 193 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@IllianiBird IllianiBird marked this pull request as ready for review March 25, 2025 19:38
# Conflicts:
#	MekHQ/resources/mekhq/resources/CampaignGUI.properties
#	MekHQ/src/mekhq/campaign/Campaign.java
#	MekHQ/src/mekhq/gui/CampaignGUI.java
@IllianiBird IllianiBird merged commit 04d09a8 into MegaMek:master Mar 30, 2025
6 checks passed
@IllianiBird IllianiBird deleted the loanNewDayBlocker branch March 31, 2025 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GUI Refactoring Severity: Low Issues described as low severity as per the new issue form
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0