Paper as the default theme; the club in every window head; the bank hall with either picture
The bank hall falls back to the first hall picture with its own places when a data set lacks the newer one, and names its five services on tags. Window heads carry the manager's crest and a rule in the club's colour. The glass cards of the desk lose their shadow, which drew stray lines over the backdrop blur. A postponed league match is called Nachholspiel on the match day. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
7e161ca505
commit
20d4f890cc
7 files changed
+43
-14
No files matched your search
@@ -19,19 +19,28 @@ std::string App::render_bank() {
|
||||
btn("bank-calc", left, "bank-control", "id=\"bank-" + std::string(lk) + "\" data-kind=\"" + lk + "\"") +
|
||||
btn("bank-calc", right, "bank-control", "id=\"bank-" + std::string(rk) + "\" data-kind=\"" + rk + "\"") + "</nav>";
|
||||
};
|
||||
// A data set may carry the newer hall picture or only the first one; each has its own
|
||||
// places for the five services.
|
||||
const bool newer_hall = !renderer_.image("art.bank-hall-v2.png", false, 3000).token.empty();
|
||||
std::string out = "<div class=\"bank-page\"><div class=\"bank-scene\">" +
|
||||
img("art.bank-hall-v2.png", 2608, 1466.016746, false, false, 3000);
|
||||
img(newer_hall ? "art.bank-hall-v2.png" : "art.bank-hall-v1.png", 2608, 1466.016746, false, false, 3000);
|
||||
if (bank_view_ == "entrance") {
|
||||
struct Service { const char *id, *label, *hint; double x, y, w, h; };
|
||||
const std::array<Service, 5> services{{
|
||||
const std::array<Service, 5> services = newer_hall ? std::array<Service, 5>{{
|
||||
{"properties", "Immobilien", "Immobilien – Gebäude ansehen, kaufen oder verkaufen.", 14, 23, 23, 43},
|
||||
{"stocks", "Aktien", "Aktien – Kurse und Bestände ansehen, Aktien kaufen oder verkaufen.", 49, 4, 45, 26},
|
||||
{"overview", "Finanzübersicht", "Finanzübersicht – Konto, Sparbuch, Immobilien, Aktien und Kredit im Überblick.", 44, 48, 14, 17},
|
||||
{"savings", "Sparbuch", "Sparbuch – Guthaben ansehen, Geld einzahlen oder abheben.", 78, 55, 12, 11},
|
||||
{"credit", "Kredit", "Kredit – Laufzeit wählen, einen Kredit aufnehmen oder tilgen.", 81, 32, 15, 22}}};
|
||||
{"credit", "Kredit", "Kredit – Laufzeit wählen, einen Kredit aufnehmen oder tilgen.", 81, 32, 15, 22}}}
|
||||
: std::array<Service, 5>{{
|
||||
{"properties", "Immobilien", "Immobilien – Gebäude ansehen, kaufen oder verkaufen.", .5, 18.5, 17.5, 43.5},
|
||||
{"stocks", "Aktien", "Aktien – Kurse und Bestände ansehen, Aktien kaufen oder verkaufen.", 30, 30, 13.5, 19.5},
|
||||
{"overview", "Finanzübersicht", "Finanzübersicht – Konto, Sparbuch, Immobilien, Aktien und Kredit im Überblick.", 30.5, 49.5, 13, 14.5},
|
||||
{"savings", "Sparbuch", "Sparbuch – Guthaben ansehen, Geld einzahlen oder abheben.", 85, 60, 6.5, 7.5},
|
||||
{"credit", "Kredit", "Kredit – Laufzeit wählen, einen Kredit aufnehmen oder tilgen.", 85.3, 31.5, 13.7, 27.5}}};
|
||||
out += "<div class=\"bank-hotspots\">";
|
||||
for (const auto &s : services)
|
||||
out += btn("bank-view", "", "bank-hotspot", "id=\"bank-view-" + std::string(s.id) +
|
||||
out += btn("bank-view", std::string("<span class=\"bank-tag\">") + s.label + "</span>", "bank-hotspot", "id=\"bank-view-" + std::string(s.id) +
|
||||
"\" data-view=\"" + s.id + "\" data-bank-hint=\"" + esc(s.hint) + "\" aria-label=\"" + s.label +
|
||||
"\" style=\"left:" + scalar(s.x) + "%;top:" + scalar(s.y) + "%;width:" + scalar(s.w) + "%;height:" + scalar(s.h) + "%;\"");
|
||||
out += "</div>";
|
||||
|
||||
Reference in new issue
Block a user