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

+5 -3
View File
@@ -470,7 +470,9 @@ class App final : public Rml::EventListener {
bool amount_select_all_ = false, amount_caret_end_ = false;
// the offered value is still as it was opened: the first digit key replaces it
bool amount_untouched_ = false;
std::string bank_view_ = "entrance", bank_hint_;
std::string bank_view_ = "credit", bank_hint_; // the page of the bank that is open
Json bank_players() const;
static std::string bank_view_of(const std::string &route);
int bank_property_ = 0, bank_owned_ = 0, bank_stock_ = 11;
bool balance_future_ = false;
// the balance sheet's what-if calculation (finance_simulation.inc)
@@ -702,7 +704,7 @@ class App final : public Rml::EventListener {
if (page) club_mark.clear();
return (page ? "<div class=\"nb-sheet-layer\" style=\"top:" + scalar(notebook_top()) + "dp;\"><div class=\"window nb-sheet" + std::string(page_native() ? " pg-root" : "") + arriving + "\"><div class=\"titlebar\">"
: "<div class=\"sheet-under first" + arriving + "\"></div><div class=\"sheet-under second" + arriving + "\"></div><div class=\"window" + arriving + "\"><div class=\"titlebar\"" + club_rule + ">") +
(close ? btn("close", "<span>×</span>", "close", "id=\"window-close\" aria-label=\"" + std::string(menu_ == "bank" && bank_view_ != "entrance" ? "Zurück zur Bankhalle" : "Fenster schließen") + "\"")
(close ? btn("close", "<span>×</span>", "close", "id=\"window-close\" aria-label=\"" + std::string("Fenster schließen") + "\"")
: "<span style=\"width:76dp;\"></span>") +
"<h1>" + esc(heading) + "</h1>" + club_mark + "</div>" + window_art() + "<div class=\"content\">" +
content + "</div>" + (amount_ ? render_amount() : "") + "</div>" + (page ? "</div>" : "");
@@ -823,7 +825,7 @@ class App final : public Rml::EventListener {
contracts_player_.clear();
contract_draft_ = Json();
contracts_world_.reset();
bank_view_ = "entrance";
bank_view_ = "credit";
bank_hint_.clear();
balance_future_ = false;
balance_sim_ = false;