1
Fork 0
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:
Gunnar Beutner 2021-05-26 09:22:19 +02:00 committed by Andreas Kling
parent 2c772d1848
commit 971f4ca71c
4 changed files with 39 additions and 1 deletions

View file

@ -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;
};
}