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:
1 parent
f25abc2e16
commit
048ccbecaa
20 files changed
+637
-812
No files matched your search
@@ -475,6 +475,17 @@ void App::ProcessEvent(Rml::Event &event) try {
|
||||
void App::dispatch(const std::string &action, Rml::Element *target) {
|
||||
const auto id =
|
||||
target ? target->GetAttribute<Rml::String>("data-id", "") : std::string();
|
||||
// the ribbon of the notebook leads back to the main menu, after asking
|
||||
if (action == "nb-home") {
|
||||
if (engine_mode_) {
|
||||
if (engine_busy_ || engine_files_busy_ || !popup_.empty()) return;
|
||||
confirmation(engine_dirty_ ? "Zurück ins Hauptmenü? Was seit dem letzten Speichern geschah, geht verloren." : "Zurück ins Hauptmenü?", [this] { engine_manager_main(); });
|
||||
popup_accept_ = "Zum Hauptmenü";
|
||||
} else if (source_ && scene_ == "desktop") {
|
||||
dispatch("context-quit", target);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if(front_action(action,target))return;
|
||||
if (live_action(action, target)) return;
|
||||
if(national_action(action,target))return;
|
||||
@@ -540,9 +551,26 @@ void App::dispatch(const std::string &action, Rml::Element *target) {
|
||||
return;
|
||||
}
|
||||
if (action == "exit") {
|
||||
// the main menu asks first
|
||||
if (scene_ == "main" && menu_.empty() && !front_quit_) {
|
||||
front_quit_ = true;
|
||||
focus_after_render_ = "front-quit-no";
|
||||
refresh();
|
||||
return;
|
||||
}
|
||||
closed_ = true;
|
||||
return;
|
||||
}
|
||||
if (action == "front-quit-yes") {
|
||||
closed_ = true;
|
||||
return;
|
||||
}
|
||||
if (action == "front-quit-no") {
|
||||
front_quit_ = false;
|
||||
focus_after_render_ = "front-exit";
|
||||
refresh();
|
||||
return;
|
||||
}
|
||||
if (action == "quit-without-save") {
|
||||
closed_ = true;
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user