Buttons without a lasting state look pressed while the mouse button is held

Bank (stocks, property, savings, credit), the offer editor footer, the lineup
bottom buttons and the pitch page buttons Daten and Kurz are drawn in the
pressed look from the mouse press until the release, like the friendly match
question. The frame drawing is shared in ui/button_frame.hpp.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Sonnet 5.5 committed 2026-11-08 17:28:40 +01:00
1 parent f1f5fa523c
commit fb72de3895
13 files changed
+187 -70

No files matched your search

+9
View File
@@ -1086,6 +1086,15 @@ FlowResult StartupFlow::process_timer_expired(int pointer_x, int pointer_y) {
return {}; // other modal callers retain their own input owner
}
bool StartupFlow::press_hold(int x,int y) {
if (player_card_) return false; // the card covers its parent
if (pitch_) return pitch_->press(x, y);
if (lineup_) return lineup_->press(x, y);
if (bank_) return bank_->press(x, y);
if (outgoing_transfer_) return outgoing_transfer_->press(x, y);
return false;
}
// Routes a mouse press to the active child page (checked in a fixed order); the submenu pages then forward their pending action through finish_*_input.
FlowResult StartupFlow::pointer_down(int x,int y,bool right) {
if(pitch_hold_release_barrier_&&!right)return {};