Reduce the career's game options to the ones that matter; keep leagues in a running game

The game page of a Dreierpack career offers five options (winter
postponements and their cap, indoor tournaments, the two transfer-news
switches). The cells of the original's presentation, the multi-player and
autosave cells and the switches that take leagues out of a running game are
no longer shown, and settings.commit refuses them. The sound page and the
marking automation are hidden in a career. A mailbox text cut inside a
multi-byte character no longer breaks the news read. modern_live_dump can
commit options and reports their effect.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-14 09:32:01 +01:00
1 parent 6d70a48be8
commit 1de09ba8a6
7 files changed
+135 -12

No files matched your search

+3 -3
View File
@@ -18,7 +18,7 @@ void App::settings_after_render() {
if (auto *label = element("settings-search-count"))
label->SetInnerRML(std::to_string(count) + (settings_query_.empty()
? " Optionen"
: " von "+std::to_string(live_settings_option_count())+" Optionen"));
: " von "+std::to_string(engine_mode_ ? career_settings_option_count() : live_settings_option_count())+" Optionen"));
}
if (settings_restore_scroll_) {
context_->Update();
@@ -113,12 +113,12 @@ void App::settings_filter() {
if (auto *label = element("settings-search-count"))
label->SetInnerRML(std::to_string(count) + (settings_query_.empty()
? " Optionen"
: " von "+std::to_string(live_settings_option_count())+" Optionen"));
: " von "+std::to_string(engine_mode_ ? career_settings_option_count() : live_settings_option_count())+" Optionen"));
if (auto *select = dynamic_cast<Rml::ElementFormControlSelect *>(
element("settings-jump"))) {
std::string choices;
std::string first;
for (const auto &g : live_settings_catalogue().at("groups")) {
for (const auto &g : settings_catalogue_view().at("groups")) {
const auto id = g.at("id").get<std::string>();
const bool shown = element("settings-group-" + id) != nullptr;
if (shown && first.empty())