The seller decides on the bids for a player he listed

At the weekly deadline the original shows the seller the bids for a player
on the transfer list; without that screen every bid for a human seller was
declined, so a listed player could never be sold. session.advance now takes
transferOffers {playerId: {accept: index} | {action: "decline"}}: bids
without an answer take the run back and decision_pending carries them, as a
contract running out does. Only an interface that sends the field is asked,
so a client that does not know the question keeps the run it always had.

The notebook lists the bids with club, fee, salary and term; one is
accepted or all are declined, and the kickoff is sent again.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-16 14:54:48 +01:00
1 parent 92555b9ba0
commit 3330dfb69c
7 files changed
+120 -1

No files matched your search

+3 -1
View File
@@ -563,6 +563,7 @@ class App final : public Rml::EventListener {
std::string popup_, rendered_popup_;
bool rendered_confirm_ = false;
std::string popup_input_, popup_extra_, popup_accept_ = "Bestätigen";
std::string popup_body_; // markup under the question, for a question that lists things
bool popup_has_input_ = false, quit_after_save_ = false;
std::function<void(const std::string &)> text_accept_;
bool context_open_ = false, context_dirty_ = false;
@@ -741,6 +742,7 @@ class App final : public Rml::EventListener {
popup_has_input_ = false;
popup_input_.clear();
popup_extra_.clear();
popup_body_.clear();
popup_accept_ = "Bestätigen";
text_accept_ = {};
rendered_popup_.clear();
@@ -1315,7 +1317,7 @@ class App final : public Rml::EventListener {
element("popup")->SetInnerRML(
"<div class=\"fill popup-backdrop\"></div><div "
"class=\"popup-box\"><h2>" + std::string(confirm_ || text_accept_ ? "Rückfrage" : "Hinweis") + "</h2><p>" +
esc(popup_) + "</p>" +
esc(popup_) + "</p>" + popup_body_ +
(popup_has_input_
? "<input id=\"popup-text\" value=\"" + esc(popup_input_) +
"\" style=\"width:100%;margin-bottom:38dp;\"/>"