";
for (const auto &o : live_settings_catalogue().at("sound"))
pane += settings_option(o);
pane += "
";
}
}
} else if (settings_category_ == "automation") {
const auto &a = settings_draft_.at("local").at("automation");
int on = 0, total = 0;
for (const auto &[k, v] : a.items()) if (engine_settings_editable("automation",k)) { ++total; if (v == true) ++on; }
pane = "
" +
settings_row("automation-all", "Alles automatisch",
engine_mode_ ? "Alle verfügbaren Bereiche gemeinsam ein- oder ausschalten." : "Alle fünf Bereiche gemeinsam ein- oder ausschalten.",
settings_switch("automation-all", "automation", "all",
total > 0 && on == total, on > 0 && on < total)) +
"
Aufgaben an den Co-Trainer "
"abgeben
Die fünf "
"Automatikfunktionen des Originals. Änderungen werden erst mit "
"„Anwenden“ übernommen.
";
for (const auto &o : live_settings_catalogue().at("automation")) {
const auto key = o[0].get();
pane += settings_row("automation-" + key, o[1].get(),
o[2].get(),
settings_switch("automation-" + key, "automation",
key, a.at(key).get()));
}
if (engine_mode_) {
std::vector> choices;
for (const auto &slot:engine_settings_value_.at("formations")) choices.emplace_back(std::to_string(slot.at("value").get()),slot.at("label"));
if (choices.empty()) choices.emplace_back("0","Keine gespeicherte Aufstellung");
pane += settings_row("automation-formation","Gespeicherte Aufstellung","Für die automatische Aufstellung.",settings_select("automation-formation",choices,std::to_string(settings_draft_.at("local").at("formation").get()),"formation","",""));
}
pane += "
";
} else {
std::vector> groups;
for (const auto &g : live_settings_catalogue().at("groups"))
groups.emplace_back(g.at("id").get(),
g.at("title").get());
head += "