The manager as a page of the notebook: one picture with three scenes
The scene under the pointer is framed and lit, the others step back, and under the picture stands what the scene does. The picture is the project's own; the page is left by any other marker of the book. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
6020fbc30a
commit
592bc28e9c
12 files changed
+128
-142
No files matched your search
@@ -134,7 +134,7 @@ std::string App::notebook_shell(const std::function<bool(const std::string &)> &
|
||||
const auto paper = renderer_.texture("nb-paper", theme_, [&] { return notebook_texture(2, 1054, 650, materials[4], materials[5]); });
|
||||
const bool light = theme_ == "silver";
|
||||
const double stage = desktop_height(), top = notebook_top();
|
||||
const auto active = notebook_section_of(menu_);
|
||||
const auto active = notebook_section_of(notebook_menu());
|
||||
const auto open = [&](const std::string &route, const std::string &label, const std::string &css, const std::string &attrs, bool on) {
|
||||
return btn(engine_mode_ ? std::string("engine-open") : "open:" + route, label, css, attrs + " data-id=\"" + route + "\"" + (on ? "" : " disabled=\"disabled\""));
|
||||
};
|
||||
@@ -166,7 +166,7 @@ std::string App::notebook_shell(const std::function<bool(const std::string &)> &
|
||||
const std::string attrs = "id=\"tab-" + std::string(section.id) + "\" aria-pressed=\"" + (here ? "true" : "false") + "\" style=\"top:" + scalar(265.5 + index * 186.0) + "dp;transform:translateX(" +
|
||||
(here ? std::string("-27") : std::to_string(rest[index % rest.size()])) + "dp) rotate(" + scalar(turns[index % turns.size()]) + "deg);\"";
|
||||
if (section.routes.empty()) out += btn("close", label, css, attrs);
|
||||
else if (here) out += open(menu_, label, css, attrs, true);
|
||||
else if (here) out += open(notebook_menu(), label, css, attrs, true);
|
||||
else out += open(first, label, css, attrs, !first.empty());
|
||||
++index;
|
||||
}
|
||||
@@ -204,7 +204,7 @@ std::string App::notebook_shell(const std::function<bool(const std::string &)> &
|
||||
// the ground is one menu with two pages: the stadium and what stands around it
|
||||
const bool ground = std::string_view(r) == "stadium" || std::string_view(r) == "periphery";
|
||||
const bool here = ground ? menu_ == "stadium" && (stadium_view_.value("view", std::string("inside")) == "panorama") == (std::string_view(r) == "periphery")
|
||||
: part && engine_mode_ ? menu_ == "statistics" && statistics_page_ == r : menu_ == r;
|
||||
: part && engine_mode_ ? menu_ == "statistics" && statistics_page_ == r : notebook_menu() == r;
|
||||
if (here) {
|
||||
kicker = std::string(section.label) + " · " + std::to_string(n + 1) + " / " + std::to_string(section.routes.size());
|
||||
heading = notebook_page_label(r);
|
||||
@@ -226,7 +226,7 @@ std::string App::notebook_shell(const std::function<bool(const std::string &)> &
|
||||
// with a panel of its own, never under bare writing or an older sheet
|
||||
// (the transfer market keeps it free; on the home page it shows while no card lies on the last two cells of the bottom row)
|
||||
bool stain = menu_ == "transfer" && page_native();
|
||||
if (menu_.empty()) {
|
||||
if (notebook_menu().empty()) {
|
||||
stain = true;
|
||||
const auto &pages = notebook_pages().at("pages");
|
||||
if (home_page_ >= 0 && home_page_ < int(pages.size()))
|
||||
@@ -278,7 +278,7 @@ Picture App::notebook_art() {
|
||||
{"lineup", "bench"}, {"tactics", "bench"}, {"contracts", "locker"}, {"transfer", "press"},
|
||||
{"tables", "stand"}, {"league", "stand"}, {"other", "stand"}, {"strengths", "stand"}, {"statistics", "kickoff"},
|
||||
{"scorers", "kickoff"}, {"fairplay", "kickoff"}};
|
||||
const auto found = motifs.find(menu_.empty() ? std::string("statistics") : menu_);
|
||||
const auto found = motifs.find(notebook_menu().empty() ? std::string("statistics") : notebook_menu());
|
||||
for (const std::string motif : {found == motifs.end() ? std::string("ball") : found->second, std::string("ball")}) {
|
||||
const auto art = renderer_.image("art.paper-" + motif + ".png", false, 2048);
|
||||
if (!art.token.empty() && art.width > 0 && art.height > 0) return art;
|
||||
|
||||
Reference in new issue
Block a user