Prepare native office main-menu layout and contained Almanac icon (by Codex)

This commit is contained in:
Codex committed 2026-10-27 00:27:46 +01:00
1 parent adf1af4ef6
commit b02ee52dee
4 files changed
+40 -4

No files matched your search

+5 -4
View File
@@ -21,10 +21,11 @@ std::string App::front_size(uint64_t bytes) const {
std::string App::main_menu() {
const auto *active = mod(active_mod_);
const bool available = active && active->error.empty();
std::string out =
"<div class=\"fill front-shade\"></div><div class=\"front-home\"><header "
"class=\"brand\"><p>FUSSBALLMANAGER</p><h1>Open<span>BMH</span></h1></"
"header><nav class=\"main-options\" aria-label=\"Hauptmenü\">";
std::string out;
if (gui_.contains("menu.club-office"))
out = "<div class=\"front-office-art\">" +
img("menu.club-office", 3840, 2160, false, true, 2048) + "</div>";
out += "<div class=\"fill front-office-shade\"></div><div class=\"front-home office-home\"><nav class=\"main-options\" aria-label=\"Hauptmenü\">";
const std::array<std::pair<const char *, const char *>, 6> actions{
{{"new", "Neues Spiel"},
{"load", "Spiel laden"},