Calendar, postponing and friendlies as pages of the notebook

The season calendar keeps its two steps (twelve months, then the days of one) in
the page's size and inks. Postponing and friendlies show the season as twelve month
sheets in two rows with the days coloured by what they are to the task; their
dialogs are notes on the dimmed book. A national coach's friendlies and the demo
keep the older sheets.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-15 18:21:53 +01:00
1 parent c83b020952
commit 76333e8d75
8 files changed
+229 -126

No files matched your search

+4
View File
@@ -6,6 +6,10 @@
// sheet of the old format, shown scaled inside the book.
bool App::page_native() const {
static const std::set<std::string> native{"tactics", "achievements", "highscore", "balance", "contracts", "environment", "tables", "league", "other", "strengths", "fairplay", "indoor", "scorers"};
if (menu_ == "calendar" || menu_ == "postpone") return notebook_page() && engine_mode_;
// a national coach arranges friendlies on the older sheet
if (menu_ == "friendlies") return notebook_page() && engine_mode_ && engine_data_.contains("desktop") && engine_data_.at("desktop").at("meta").at("scope").at("role") == "club";
if (menu_ == "calendar") return notebook_page() && engine_mode_; // the demo keeps its older calendar
return notebook_page() && native.contains(menu_);
}