Line-up and training as pages; the friendlies' opponents as tiles

The line-up of the real game is the squad as a grouped table and the eleven as
shirts on a pitch seen from behind the own goal, or the whole squad as shirts.
Training keeps the game's own arrangement and pictures in the page's size and
inks. The opponents of a friendly are tiles in four columns with both crests.
The demo keeps the older line-up sheet.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-15 18:42:07 +01:00
1 parent 9faf0acf81
commit c7d23185ec
7 files changed
+268 -109

No files matched your search

+2 -2
View File
@@ -5,8 +5,8 @@
// The menus that are laid out as a page of the notebook. Every other career menu is still a
// sheet of the old format, shown scaled inside the book.
bool App::page_native() const {
static const std::set<std::string> native{"almanac", "tactics", "achievements", "highscore", "balance", "contracts", "environment", "tables", "league", "other", "strengths", "fairplay", "indoor", "scorers"};
if (menu_ == "calendar" || menu_ == "postpone") return notebook_page() && engine_mode_;
static const std::set<std::string> native{"training", "almanac", "tactics", "achievements", "highscore", "balance", "contracts", "environment", "tables", "league", "other", "strengths", "fairplay", "indoor", "scorers"};
if (menu_ == "calendar" || menu_ == "postpone" || menu_ == "lineup") 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