More buttons without a lasting state look pressed while held
Advertising offers and notices, the player card, the training camp booking and notice, the file dialog (page button, overwrite question) and the bank notices and credit fee question now draw the pressed look from the mouse press until the release. Manager notices share source_dialog_button_at for their OK/Ja/Nein. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b6bc17a381
commit
551d564efb
14 files changed
+145
-48
No files matched your search
@@ -66,6 +66,8 @@ public:
|
||||
TrainingCampScreen(const std::filesystem::path& data, TrainingCampState state);
|
||||
Image render() const;
|
||||
TrainingCampRequest click(int x, int y, bool right = false);
|
||||
// Mouse DOWN on the booking button: drawn pressed until the release (click()).
|
||||
bool press(int x, int y);
|
||||
TrainingCampRequest key(std::string_view key);
|
||||
bool move(int x, int y);
|
||||
const TrainingCampState& state() const { return state_; }
|
||||
@@ -87,6 +89,8 @@ private:
|
||||
int selected_resort_ = -1;
|
||||
int preview_resort_ = -1; // Text(-1) preserves the last photo while clearing details.
|
||||
int chosen_resort_ = -1;
|
||||
bool booking_pressed_ = false; // booking button held down by the mouse
|
||||
bool notice_pressed_ = false; // OK of the notice held down by the mouse
|
||||
bool close_requested_ = false;
|
||||
std::optional<TrainingCampRequest> pending_;
|
||||
std::string rejection_;
|
||||
|
||||
Reference in new issue
Block a user