The manager as a page of the notebook: one picture with three scenes
The scene under the pointer is framed and lit, the others step back, and under the picture stands what the scene does. The picture is the project's own; the page is left by any other marker of the book. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
6020fbc30a
commit
592bc28e9c
12 files changed
+128
-142
No files matched your search
@@ -297,6 +297,13 @@ void App::engine_event(Rml::Event &event) {
|
||||
if (node->GetId() == "native-ticket-layer") return; // owned by the compact control
|
||||
if (ticket_ && ticket_->is_open()) return;
|
||||
if (amount_event(event)) return;
|
||||
// the manager's page is left by any other control of the notebook
|
||||
if(menu_=="newplayer"&&scene_=="managerhub"&&popup_.empty()&&type=="click"&&!engine_busy_&&!career_resign_open_&&!career_game_end_&&engine_manager_value_.is_object()&&engine_manager_value_.value("ended",false)!=true)
|
||||
for(auto *n=target;n&&n!=doc_;n=n->GetParentNode())if(n->HasAttribute("data-action")&&!n->HasAttribute("disabled")) {
|
||||
const auto action=n->GetAttribute<Rml::String>("data-action","");
|
||||
if(!action.starts_with("career-")&&action!="close"){scene_="engine";menu_.clear();}
|
||||
break;
|
||||
}
|
||||
if(menu_=="newplayer"&&popup_.empty()) {
|
||||
if(engine_busy_){event.StopImmediatePropagation();return;}
|
||||
if(scene_=="manager") {
|
||||
|
||||
Reference in new issue
Block a user