1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:47:35 +00:00

Snake: Update snake skin color interactively while picking

The snake now changes color while interacting with `GUI::ColorPicker`
This commit is contained in:
Valtteri Koskivuori 2023-07-21 01:00:36 +03:00 committed by Ali Mohammad Pur
parent 0388bb019f
commit d1f6540196
2 changed files with 6 additions and 4 deletions

View file

@ -34,6 +34,7 @@ public:
Function<bool(u32)> on_score_update;
void set_skin_color(Color);
Gfx::Color get_skin_color() const { return m_snake_color; }
void set_skin_name(DeprecatedString);
void set_skin(NonnullOwnPtr<SnakeSkin> skin);