mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 12:27:36 +00:00
Hearts: Highlight cards when an invalid play is attempted
This briefly inverts the selected card when the user attempts to make an invalid play.
This commit is contained in:
parent
2c772d1848
commit
971f4ca71c
4 changed files with 39 additions and 1 deletions
|
@ -106,6 +106,8 @@ private:
|
|||
int m_animation_current_step { 0 };
|
||||
int m_animation_steps { 0 };
|
||||
OwnPtr<Function<void()>> m_animation_did_finish;
|
||||
|
||||
RefPtr<Card> m_inverted_card;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue