The interested clubs fill a sheet of their own
The change of club is a far-reaching decision: the clubs are listed large on the left, and the chosen one is shown on the right beside the manager's own club - the team part by part, its places over the season, the cash, the ground and the squad. Taking a club asks once more. The read "assembly" reports lines, places, squad size and ground per club. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
a2b9770d81
commit
101273f777
7 files changed
+226
-31
No files matched your search
@@ -272,6 +272,10 @@ void App::engine_frame() {
|
||||
if(menu_=="news")news_after_render();
|
||||
if(rendered&&files_native_){files_after_render();context_->Update();}
|
||||
if (center_selects(*doc_)) context_->Update();
|
||||
if (engine_assembly_scroll_) {
|
||||
if (auto *clubs = element("assembly-list")) clubs->SetScrollTop(*engine_assembly_scroll_);
|
||||
engine_assembly_scroll_.reset();
|
||||
}
|
||||
if (menu_ == "lineup" && lineup_roster_scroll_) {
|
||||
if (auto *roster = element("lineup-roster-scroll")) roster->SetScrollTop(*lineup_roster_scroll_);
|
||||
lineup_roster_scroll_.reset();
|
||||
@@ -477,12 +481,6 @@ void App::engine_event(Rml::Event &event) {
|
||||
const auto action = node->GetAttribute<Rml::String>("data-action", ""), id = node->GetAttribute<Rml::String>("data-id", "");
|
||||
if (!popup_.empty()) {
|
||||
if(action=="balance-discard"){engine_balance_action(action,node);return;}
|
||||
if (action == "assembly-club") {
|
||||
const std::string team = id;
|
||||
popup_.clear(); reset_popup(); confirm_ = {}; dirty_ = true;
|
||||
engine_assembly_choose(team);
|
||||
return;
|
||||
}
|
||||
if (action == "engine-offer-accept") {
|
||||
const auto player = engine_offer_player_;
|
||||
const int index = node->GetAttribute<int>("data-id", -1);
|
||||
@@ -502,6 +500,7 @@ void App::engine_event(Rml::Event &event) {
|
||||
if (action == "popup-confirm") { auto callback=std::move(confirm_);auto text_callback=std::move(text_accept_);const auto text=field("popup-text");popup_.clear();reset_popup();dirty_=true;if(text_callback)text_callback(text);else if(callback)callback(); }
|
||||
return;
|
||||
}
|
||||
if (engine_assembly_open_) { engine_assembly_action(action, id); return; } // the sheet of the interested clubs lies over everything
|
||||
if (action == "engine-widget-warning" && menu_.empty() && !engine_busy_) {
|
||||
const auto rows = engine_widgets_projection(engine_data_).at("warnings");
|
||||
std::string text;
|
||||
|
||||
Reference in new issue
Block a user