Confirm application exits in German and English (by Codex)

Route window-close events, animation polls, Escape and desktop exit through a native confirmation with Cancel selected by default. Preserve the current owner when cancelled. Refs #11.
This commit is contained in:
Codex committed 2026-10-17 22:52:11 +02:00
1 parent 7eff8a34f8
commit e1d17d8f81
7 files changed
+206 -50

No files matched your search

+11
View File
@@ -12,6 +12,17 @@ Intentional changes in code should use the marker `OpenBMH deviates from the ori
The [generated differences catalogue](DIFFERENCES.md) lists these markers with links to their source files.
## Application exit confirmation
Closing the window, exiting with Escape or confirming the desktop's exit control
opens a native confirmation dialog. BMH data uses German text and Football
Limited data uses English. Enter, Escape and closing the confirmation cancel the
exit; only the explicit Quit/Beenden button permits normal shutdown. Cancelling
keeps the current dialog or match owner alive without a turn or implicit save.
An unavailable native message box also cancels the request. This applies to
voluntary application exits, including quit events received during animations;
normal completed-career handling remains separate.
## Environment and presentation in 0.1.2
The desktop environment provides three youth teams and three staff
+1
View File
@@ -6,6 +6,7 @@ See [Compatibility decisions](COMPATIBILITY.md) for the overall policy. These en
describe deliberate changes; they are not a list of every known compatibility limit.
- [src/app/career_session.cpp](../src/app/career_session.cpp): supports designated set-piece record initialization and validation.
- [src/app/quit_confirmation.hpp](../src/app/quit_confirmation.hpp): confirms application exit with a localized native dialog, with cancellation selected by default.
- [src/formats/le.hpp](../src/formats/le.hpp): applies a shared supported rule profile when loading editions with different rule-table values.
- [src/formats/rule_base.cpp](../src/formats/rule_base.cpp): normalizes live-scene defaults, league strength ranges, option defaults, stadium prices and capacities, betting limits, and the foreign-player limit across supported editions.
- [src/formats/rule_base.hpp](../src/formats/rule_base.hpp): normalizes live-scene options, league strength ranges, option defaults, stadium prices and capacities, betting limits, and the foreign-player limit.
+4
View File
@@ -4,6 +4,10 @@ OpenBMH reconstructs the Bundesliga Manager Hattrick engine in C++20. The graphi
## Unreleased corrections
- Application exits ask for confirmation in a native German/English message
box, with Cancel selected by default, including window close events during
matches and dialogs ([#11](https://github.com/Weyoune/openbmh/issues/11)).
- Football Limited uses the correct enabled/disabled setup sprites, positive
balance colour and outside controls of the desktop shortcut bar ([#7](https://github.com/Weyoune/openbmh/issues/7)).
Its cached data is regenerated automatically for the corrected mapping.