The stadium and its surroundings as two pages with a card model on one plate

The ground is drawn after the design: eight stands as deep as they have places,
the equipment, the fourteen objects around it, trees, cars and people on one base
plate. The stage works out itself which part lies under the pointer, the wheel
zooms and dragging moves the view. The part's card, the figures and the building
firm's offer follow the notes of the other pages.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-15 20:57:01 +01:00
1 parent 17c6d0a1d3
commit c60b0e9b2c
14 files changed
+1025 -1178

No files matched your search

+7 -4
View File
@@ -14,7 +14,7 @@ const std::vector<NotebookSection> &notebook_sections() {
{"home", "Hauptseite", {}},
{"team", "Mannschaft", {"lineup", "tactics", "training", "camp", "strengths", "scorers"}},
{"transfers", "Transfers", {"transfer", "contracts"}},
{"club", "Verein", {"stadium", "environment", "advertising"}},
{"club", "Verein", {"stadium", "periphery", "environment", "advertising"}},
{"finance", "Finanzen", {"balance", "bank", "toto"}},
{"fixtures", "Spielplan", {"calendar", "league", "tables", "other", "friendlies", "postpone", "indoor"}},
{"records", "Statistik", {"statistics", "stat-trend", "stat-winners", "stat-records", "stat-players", "achievements", "almanac", "fairplay", "highscore"}},
@@ -25,7 +25,7 @@ const std::vector<NotebookSection> &notebook_sections() {
std::string notebook_page_label(const std::string &route) {
static const std::map<std::string, std::string> labels = {
{"lineup", "Aufstellung"}, {"tactics", "Taktik"}, {"training", "Training"}, {"camp", "Trainingslager"}, {"strengths", "Stärken"},
{"scorers", "Spielerstatistik"}, {"transfer", "Transfermarkt"}, {"contracts", "Verträge"}, {"stadium", "Stadion"}, {"environment", "Umfeld"},
{"scorers", "Spielerstatistik"}, {"transfer", "Transfermarkt"}, {"contracts", "Verträge"}, {"stadium", "Stadion"}, {"periphery", "Peripherie"}, {"environment", "Umfeld"},
{"advertising", "Werbung"}, {"balance", "Bilanz"}, {"bank", "Bank"}, {"toto", "Toto"}, {"calendar", "Kalender"}, {"league", "Ligaspiele"},
{"tables", "Tabellen"}, {"other", "Übrige Spiele"}, {"friendlies", "Testspiele"}, {"postpone", "Verlegen"}, {"indoor", "Halle"},
{"statistics", "Analyse"}, {"stat-trend", "Verlauf"}, {"stat-winners", "Sieger"}, {"stat-records", "Rekorde"}, {"stat-players", "Spieler"}, {"achievements", "Erfolge"}, {"almanac", "Almanach"}, {"fairplay", "Fairplay"}, {"highscore", "Highscore"},
@@ -201,7 +201,10 @@ std::string App::notebook_shell(const std::function<bool(const std::string &)> &
// the statistics are one menu with several pages; the demo has only its first
const bool part = std::string_view(r).starts_with("stat-") || std::string_view(r) == "statistics";
if (!engine_mode_ && std::string_view(r).starts_with("stat-")) continue;
const bool here = part && engine_mode_ ? menu_ == "statistics" && statistics_page_ == r : menu_ == r;
// the ground is one menu with two pages: the stadium and what stands around it
const bool ground = std::string_view(r) == "stadium" || std::string_view(r) == "periphery";
const bool here = ground ? menu_ == "stadium" && (stadium_view_.value("view", std::string("inside")) == "panorama") == (std::string_view(r) == "periphery")
: part && engine_mode_ ? menu_ == "statistics" && statistics_page_ == r : menu_ == r;
if (here) {
kicker = std::string(section.label) + " · " + std::to_string(n + 1) + " / " + std::to_string(section.routes.size());
heading = notebook_page_label(r);
@@ -210,7 +213,7 @@ std::string App::notebook_shell(const std::function<bool(const std::string &)> &
std::string("nb-sub") + (here ? " active" : ""),
"id=\"page-" + std::string(r) + "\" aria-pressed=\"" + (here ? "true" : "false") + "\" style=\"transform:translateY(" + (here ? std::string("-13") : std::to_string(sub_rest[n % sub_rest.size()])) + "dp) rotate(" +
scalar(sub_turns[n % sub_turns.size()]) + "deg);\"",
enabled(part ? "statistics" : r));
enabled(part ? "statistics" : ground ? "stadium" : r));
++n;
}
}