The bank as five pages: bank, properties, stocks, passbook and fellow managers

The hall with its hot spots is gone; each service is a page of its own with a
picture and its figures. The properties hang on an estate agent's board, and
what the club owns carries a stamp. The page for dealings between managers
appears only where more than one human plays.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-16 00:17:25 +01:00
1 parent e14b2f2374
commit 964a4ae35d
27 files changed
+407 -520

No files matched your search

+4 -1
View File
@@ -705,6 +705,9 @@ void App::dispatch(const std::string &action, Rml::Element *target) {
// the investments are the second page of advertising
const bool investments = route == "investments";
if (investments) route = "advertising";
// ... and the bank has five
const auto bank_page = bank_view_of(route);
if (!bank_page.empty()) route = "bank";
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;
@@ -719,7 +722,7 @@ void App::dispatch(const std::string &action, Rml::Element *target) {
message("Diese native Ansicht wird im nächsten Menüpaket übertragen.");
return;
}
if (route == "bank") { bank_view_ = "entrance"; bank_hint_.clear(); }
if (route == "bank") { bank_view_ = bank_page.empty() ? "credit" : bank_page; 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;