Bind the kickoff of the Modern desk to the engine and show its recording in the ticker
The kickoff button sends session.advance; the engine's recording of the played matchday is shaped for the live ticker (phases, per-match tables, the desk manager's squad). A contract running out on the way asks the manager to extend at the player's demand or to release him. The UI script driver accepts optional clicks, and modern_live_dump writes the engine's recording for inspection. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
9e92d07b03
commit
7c0e66affe
15 files changed
+447
-30
No files matched your search
@@ -914,6 +914,12 @@ void App::script() {
|
||||
const auto end=SDL_GetTicks64()+command.value("timeout_ms",uint64_t(300000));
|
||||
while(front_busy_&&SDL_GetTicks64()<end){front_poll();if(needs_render_||dirty_)frame();SDL_Delay(10);}
|
||||
if(front_busy_)throw editor::Error("Modvorgang hat das QA-Zeitlimit überschritten.");
|
||||
} else if (type == "click" && command.value("optional", false) && command.contains("selector") && [&] {
|
||||
context_->Update();
|
||||
auto *node = doc_->QuerySelector(command.at("selector").get<std::string>());
|
||||
return !node || !node->IsVisible(true) || node->HasAttribute("disabled");
|
||||
}()) {
|
||||
// An optional step whose element is absent, hidden or disabled is skipped.
|
||||
} else if (type == "click" || type == "right") {
|
||||
const auto point = locate(command);
|
||||
const int button = type == "right" ? 1 : 0;
|
||||
|
||||
Reference in new issue
Block a user