Paper windows, a display serif and chalk hand, a symmetric tactics board, the match day as a stage
- Material: menu windows are sheets of paper (warm surface, edge, two sheets beneath, serif headings) that slide in once when their menu opens; the desk stays glass. Source Serif 4 and Cabin Sketch ship in assets/modern/fonts (SIL OFL, see THIRD_PARTY_NOTICES.md); system fonts remain the fallback. - Tactics board: 320 x 200 units mirrored about its middle - the pitch of the attitude on the left, six equal tiles for the play settings on the right with their names in chalk, the commitment with a scale across the foot. - Live match: a 4:3 sheet like the menus (same window zoom) on the darkened stadium. One score board per match of a human manager - a full-width card for one match, two side by side, a 2 x 2 grid for three or four - with crests, a score plate in the clubs' colours (read from the crests), a clock ring, a pressure bar, and a time line of goals, cards and injuries. Compact ticker rows with a mark per kind, a goal banner on the card, a horizontal speed control, and optional halts at half time and when falling behind. - QA: script command demo-start begins a demo career with 1-4 managers. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
54fef90a5b
commit
9b5d448fb6
21 files changed
+887
-125
No files matched your search
@@ -983,6 +983,25 @@ void App::script() {
|
||||
frame();
|
||||
SDL_Delay(5);
|
||||
}
|
||||
} else if (type == "demo-start") {
|
||||
// QA: begin a demo career with `managers` human managers (1-4), each at a club of
|
||||
// its own, so the match day can be looked at with several matches at once
|
||||
if (engine_mode_ || !source_) throw editor::Error("demo-start braucht die UI-Demo.");
|
||||
const int wanted = std::clamp(command.value("managers", 1), 1, 4);
|
||||
Json managers = Json::array();
|
||||
const int step = std::max(1, command.value("step", 2));
|
||||
int skip = 0;
|
||||
for (const auto *club : world_->clubs()) {
|
||||
if (int(managers.size()) >= wanted) break;
|
||||
const auto id = club->value("id", std::string());
|
||||
if (!world_->manageable(id) || skip++ % step) continue;
|
||||
managers.push_back({{"name", "Manager " + std::to_string(managers.size() + 1)}, {"club", id}, {"portrait", int(managers.size())},
|
||||
{"portrait_style", "photo"}, {"strength_choice", 1}});
|
||||
}
|
||||
const auto result = source_->apply({source_->snapshot().revision, "start",
|
||||
{{"setup", {{"duration", 5}, {"difficulty", 3}, {"players", managers.size()}, {"mode", 3}, {"league", true}, {"world", true}}}, {"managers", managers}}});
|
||||
if (!result.ok) throw editor::Error("demo-start: " + result.error);
|
||||
scene_ = "desktop"; menu_.clear(); refresh();
|
||||
} else if (type == "screenshot")
|
||||
screenshot(editor::path(command.at("path").get<std::string>()));
|
||||
else if (type == "checkpoint") {
|
||||
|
||||
Reference in new issue
Block a user