1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 06:57:45 +00:00

Solitaire: Highlight cards beneath dragged cards that are valid targets

If the card beneath the card currently being dragged is a valid drop
target, we will highlight it to indicate this to the user.
This commit is contained in:
Timothy Flynn 2023-01-04 18:44:22 -05:00 committed by Sam Atkins
parent 2a09807f2e
commit a2277655c0
2 changed files with 26 additions and 0 deletions

View file

@ -174,6 +174,7 @@ private:
void create_new_animation_card();
void set_background_fill_enabled(bool);
void check_for_game_over();
void clear_hovered_card();
virtual void paint_event(GUI::PaintEvent&) override;
virtual void mousedown_event(GUI::MouseEvent&) override;
@ -203,6 +204,8 @@ private:
uint8_t m_passes_left_before_punishment { 0 };
bool m_auto_collect { false };
RefPtr<Card> m_hovered_card;
};
}