mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
Solitaire: Convert Solitaire window to be created from GML
No functionial change here, but this more easily allows for adding GUI elements to the Solitaire window. This nests the SolitaireWidget as a child of the main window's widget so that the SolitaireWidget does not color the entire window green when it paints its background.
This commit is contained in:
parent
e1492e9a62
commit
0ff4eec8a8
5 changed files with 33 additions and 12 deletions
|
@ -21,8 +21,10 @@ public:
|
|||
virtual ~Game() override;
|
||||
void setup();
|
||||
|
||||
Function<void(uint32_t)> on_score_update;
|
||||
|
||||
private:
|
||||
Game(Function<void(uint32_t)>&& on_score_update);
|
||||
Game();
|
||||
|
||||
class Animation {
|
||||
public:
|
||||
|
@ -119,7 +121,6 @@ private:
|
|||
uint8_t m_new_game_animation_delay { 0 };
|
||||
|
||||
uint32_t m_score { 0 };
|
||||
Function<void(uint32_t)> m_on_score_update;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue