The entry into the game on a pad: main menu, new game, managers, clubs, the season's opening

The main menu and everything up to the first day are written on one pad
that lies in the middle of a table: the settings of a new game, the
managers with their portraits, the clubs of a league, the entrants of the
European cups, the cup draw and its overview. Saved games, mods and the
sound open on the same pad. The table fills the window at any aspect while
the pad stays whole. There is one style of portrait. The main menu asks
before it leaves, and the ribbon of the notebook leads back to it.

A stage that changes its height while it is drawn is now drawn once more;
before, the notebook kept the height of the screen it came from.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-16 12:41:25 +01:00
1 parent f25abc2e16
commit 048ccbecaa
20 files changed
+637 -812

No files matched your search

+2 -2
View File
@@ -148,8 +148,8 @@ std::string App::notebook_shell(const std::function<bool(const std::string &)> &
// the leather cover with its seam, the ribbon, the stack of sheets
out += "<div class=\"nb-cover-shadow\"></div><div class=\"nb-cover\">" + picture(leather, 3281, 2070, true) + "<div class=\"nb-cover-tone\"></div><div class=\"nb-seam\">" +
svg("nb-seam", 1440, 902, "<rect x=\"3\" y=\"3\" width=\"1434\" height=\"896\" rx=\"26\" fill=\"none\" stroke=\"" + stitch + "\" stroke-opacity=\".6\" stroke-width=\"2\" stroke-dasharray=\"9 7\"/>", 2400) + "</div></div>";
out += "<div class=\"nb-ribbon\">" + svg("nb-ribbon", 20, 96, "<defs><linearGradient id=\"r\" x1=\"0\" x2=\"1\" y1=\"0\" y2=\"0\"><stop offset=\"0\" stop-color=\"" + ribbon_a + "\"/><stop offset=\".5\" stop-color=\"" + ribbon_b +
"\"/><stop offset=\"1\" stop-color=\"" + ribbon_a + "\"/></linearGradient></defs><path d=\"M0 0H20V96L10 83L0 96Z\" fill=\"url(#r)\"/>", 200) + "</div>";
out += btn("nb-home", svg("nb-ribbon", 20, 96, "<defs><linearGradient id=\"r\" x1=\"0\" x2=\"1\" y1=\"0\" y2=\"0\"><stop offset=\"0\" stop-color=\"" + ribbon_a + "\"/><stop offset=\".5\" stop-color=\"" + ribbon_b +
"\"/><stop offset=\"1\" stop-color=\"" + ribbon_a + "\"/></linearGradient></defs><path d=\"M0 0H20V96L10 83L0 96Z\" fill=\"url(#r)\"/>", 200), "nb-ribbon", "id=\"nb-home\" aria-label=\"Zurück ins Hauptmenü\" title=\"Zurück ins Hauptmenü\"");
for (int sheet = 4; sheet >= 0; --sheet) out += "<div class=\"nb-stack s" + std::to_string(sheet) + "\"></div>";
// the categories: markers that stick out at the left edge
static constexpr std::array<const char *, 9> tones{"a3", "s3", "a2", "s4", "a4", "n3", "s2", "a5", "s5"};