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
@@ -1087,9 +1087,12 @@ FlowResult StartupFlow::process_timer_expired(int pointer_x, int pointer_y) {
|
||||
}
|
||||
|
||||
bool StartupFlow::press_hold(int x,int y) {
|
||||
if (player_card_) return false; // the card covers its parent
|
||||
if (advertising_) return advertising_->press(x, y);
|
||||
if (save_load_) return save_load_->press(x, y);
|
||||
if (player_card_) return player_card_->press(x, y); // the card covers its parent
|
||||
if (pitch_) return pitch_->press(x, y);
|
||||
if (lineup_) return lineup_->press(x, y);
|
||||
if (training_camp_) return training_camp_->press(x, y);
|
||||
if (bank_) return bank_->press(x, y);
|
||||
if (outgoing_transfer_) return outgoing_transfer_->press(x, y);
|
||||
if (manager_ && !desktop_) return manager_->press(x, y);
|
||||
|
||||
Reference in new issue
Block a user