Investments as a page of their own, and the stadium's name as a third contract

Merchandise, press work and fan work move from advertising to a page of their
own, with international marketing beside them; advertising gains the naming
right of the stadium. The two new places are shown and say that the game does
not know them yet.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-15 23:28:33 +01:00
1 parent e912269a49
commit 7bdf47d7fd
9 files changed
+114 -45

No files matched your search

+4
View File
@@ -702,6 +702,9 @@ void App::dispatch(const std::string &action, Rml::Element *target) {
// the surroundings are the second page of the stadium
const bool surroundings = route == "periphery";
if (surroundings) route = "stadium";
// the investments are the second page of advertising
const bool investments = route == "investments";
if (investments) route = "advertising";
if(source_&&!demo_career_menu_available(snap().state,route)){message(snap().state.at("career").value("ended",false)?"Diese Partie ist beendet. Bitte ein neues Spiel beginnen oder einen Spielstand laden.":"Dieses Vereinsmenü ist für die Nationalmannschaft nicht verfügbar.");return;}
if (route == "kickoff")
return;
@@ -717,6 +720,7 @@ void App::dispatch(const std::string &action, Rml::Element *target) {
return;
}
if (route == "bank") { bank_view_ = "entrance"; bank_hint_.clear(); }
if (route == "advertising") { advertising_page_ = investments ? "investments" : "advertising"; advertising_selected_ = -1; advertising_offer_ = 0; }
if (route == "stadium") { if (!stadium_view_.is_object()) stadium_view_ = Json::object(); stadium_view_["view"] = surroundings ? "panorama" : "inside"; stadium_focus_.clear(); }
menu_ = route;
report_picker_.clear();