1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 16:17:47 +00:00

BrickGame: Add a "Pause" option to the Game menu

This is how the menu looks like after this commit:
┌────┐
│Game│ Help
├────┴─────────────────────────────┐
│   New game                   F2  │
│   Toggle pause                P  │
├──────────────────────────────────┤
│   Quit                   Alt+F4  │
└──────────────────────────────────┘
This commit is contained in:
Karol Baraniecki 2023-03-08 21:57:17 +01:00 committed by Brian Gianforcaro
parent a337557658
commit ddac8192e3
3 changed files with 11 additions and 2 deletions

View file

@ -18,6 +18,7 @@ public:
virtual ~BrickGame() override = default;
void reset();
void toggle_pause();
private:
BrickGame(StringView app_name);