Show the post-match review of a played Modern kickoff
The review is built from the engine's recording; an engine career draws no demo desk beneath it and returns to the real desk. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
7c0e66affe
commit
2d66609ca8
6 files changed
+19
-13
No files matched your search
@@ -328,8 +328,10 @@ std::string App::render_postmatch() {
|
||||
esc(m.at("id").get<std::string>()) + "\"");
|
||||
}
|
||||
body += "</div><p class=\"postmatch-scope-note\">" +
|
||||
live_text("Vorgegebene Aufzeichnung der menschlichen Partien · "
|
||||
"kein vollständiger Ligaspieltag") +
|
||||
live_text(postmatch_data_.at("source") == "engine-recording"
|
||||
? "Partien mit eigener Beteiligung · alle Ergebnisse stehen unter Ligaspiele und Übrige Spiele"
|
||||
: "Vorgegebene Aufzeichnung der menschlichen Partien · "
|
||||
"kein vollständiger Ligaspieltag") +
|
||||
"</p>";
|
||||
} else if (postmatch_tab_ == "report")
|
||||
body += postmatch_report_markup(postmatch_report());
|
||||
@@ -394,8 +396,10 @@ std::string App::render_postmatch() {
|
||||
}
|
||||
body +=
|
||||
"<p class=\"postmatch-table-note\">" +
|
||||
live_text("Vorgegebener POC-Tabellenstand · Siege, Unentschieden und "
|
||||
"Niederlagen nicht aufgezeichnet") +
|
||||
live_text(postmatch_data_.at("source") == "engine-recording"
|
||||
? "Tabellenstand nach diesem Spieltag"
|
||||
: "Vorgegebener POC-Tabellenstand · Siege, Unentschieden und "
|
||||
"Niederlagen nicht aufgezeichnet") +
|
||||
"</p><div id=\"postmatch-table\" class=\"postmatch-table-scroll\"><div "
|
||||
"class=\"postmatch-table-row heading\">";
|
||||
for (const auto *label :
|
||||
@@ -431,12 +435,12 @@ std::string App::render_postmatch() {
|
||||
"id=\"postmatch-prev\" " +
|
||||
std::string(position == 0 ? "disabled" : "")) +
|
||||
live_text(std::to_string(position + 1) + " / " +
|
||||
std::to_string(tabs.size()) + " · UI-Aufzeichnung",
|
||||
std::to_string(tabs.size()) + (engine_mode_ ? "" : " · UI-Aufzeichnung"),
|
||||
"postmatch-status") +
|
||||
btn("postmatch-ticker", "<span id=\"live-review-back\">Zum Ticker</span>",
|
||||
{}, "id=\"postmatch-ticker\"") +
|
||||
btn("postmatch-next",
|
||||
position + 1 == tabs.size() ? "Zum Desktop" : "Weiter ›", {},
|
||||
position + 1 == tabs.size() ? (engine_mode_ ? "Zum Schreibtisch" : "Zum Desktop") : "Weiter ›", {},
|
||||
"id=\"postmatch-next\"") +
|
||||
"</footer></section>";
|
||||
if (!postmatch_dialog_.empty()) {
|
||||
@@ -498,7 +502,8 @@ std::string App::render_postmatch() {
|
||||
std::string(match ? "" : "disabled")) +
|
||||
"</footer></section></div>";
|
||||
}
|
||||
return render_desktop() +
|
||||
// An engine career has no demo desk to draw beneath the review; its background stays.
|
||||
return (engine_mode_ ? std::string() : render_desktop()) +
|
||||
"<div class=\"fill\" style=\"z-index:100;\"><div class=\"window "
|
||||
"postmatch-window\"><div class=\"titlebar\">" +
|
||||
btn("postmatch-desktop", "<span>×</span>", "close",
|
||||
|
||||
Reference in new issue
Block a user