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
+16
-3
@@ -416,7 +416,7 @@ class App final : public Rml::EventListener {
|
||||
// A menu window (2720 x 2040 at the middle of the stage) is shown as large as the screen
|
||||
// allows; the desk behind it is cropped. Without a window the whole stage is fitted.
|
||||
bool window_zoom_ = false;
|
||||
std::string scene_ = "main", menu_, theme_ = "midnight", active_mod_,
|
||||
std::string scene_ = "main", menu_, theme_ = "silver", active_mod_,
|
||||
selected_mod_, notice_, country_ = "nation:de", league_,
|
||||
selected_club_;
|
||||
std::vector<Mod> mods_;
|
||||
@@ -617,10 +617,23 @@ class App final : public Rml::EventListener {
|
||||
// a sheet of paper on two more; it slides in once when its menu opens, not on every redraw
|
||||
const std::string arriving = window_shown_ == menu_ ? "" : " window-in";
|
||||
window_shown_ = menu_;
|
||||
return "<div class=\"sheet-under first" + arriving + "\"></div><div class=\"sheet-under second" + arriving + "\"></div><div class=\"window" + arriving + "\"><div class=\"titlebar\">" +
|
||||
// the head of every sheet carries the manager's club: its crest at the right, its colour
|
||||
// as the rule under the title
|
||||
std::string club_rule, club_mark;
|
||||
try {
|
||||
std::string own;
|
||||
if (engine_mode_) own = engine_data_.at("desktop").at("meta").at("scope").at("teamId").get<std::string>();
|
||||
else if (world_ && source_ && snap().state.at("career").value("role", "club") == "club") own = manager(snap()).value("club", "");
|
||||
if (const auto *club = world_ && !own.empty() ? world_->find("clubs", own) : nullptr; club && !club->value("crest", "").empty()) {
|
||||
if (const auto colour = renderer_.crest_colour(club->value("crest", "")); !colour.empty()) club_rule = " style=\"border-bottom:6dp " + colour + ";\"";
|
||||
club_mark = "<div class=\"titlebar-club\">" + crest(club, 68) + "</div>";
|
||||
}
|
||||
} catch (const std::exception &) {
|
||||
}
|
||||
return "<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") + "\"")
|
||||
: "<span style=\"width:76dp;\"></span>") +
|
||||
"<h1>" + esc(heading) + "</h1></div><div class=\"content\">" +
|
||||
"<h1>" + esc(heading) + "</h1>" + club_mark + "</div><div class=\"content\">" +
|
||||
content + "</div>" + (amount_ ? render_amount() : "") + "</div>";
|
||||
}
|
||||
std::string
|
||||
|
||||
Reference in new issue
Block a user