summary refs log tree commit diff stats
path: root/src/menu.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-03-21 13:02:11 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2022-03-21 13:02:11 -0400
commit61aa4f941e67cf45833f1e12fe25428b3f283f74 (patch)
tree36728b116c68c26f9841a56773a80ede77120b62 /src/menu.cpp
parent766a559d50149fac90cf3d5dac1490b8316fb943 (diff)
downloadether-61aa4f941e67cf45833f1e12fe25428b3f283f74.tar.gz
ether-61aa4f941e67cf45833f1e12fe25428b3f283f74.tar.bz2
ether-61aa4f941e67cf45833f1e12fe25428b3f283f74.zip
game can be muted now
not re-rendering the menu overlay because it looks fine tbh
Diffstat (limited to 'src/menu.cpp')
-rw-r--r--src/menu.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/menu.cpp b/src/menu.cpp index b9a3ace..da88a90 100644 --- a/src/menu.cpp +++ b/src/menu.cpp
@@ -11,6 +11,9 @@ Menu::Menu() {
11 items.push_back({.text = "Toggle Fullscreen", .activationFunction = [] (Game& game) { 11 items.push_back({.text = "Toggle Fullscreen", .activationFunction = [] (Game& game) {
12 game.renderer.toggleFullscreen(); 12 game.renderer.toggleFullscreen();
13 }}); 13 }});
14 items.push_back({.text = "Toggle Music", .activationFunction = [] (Game& game) {
15 game.muxer.toggleMute();
16 }});
14 items.push_back({.text = "Quit", .activationFunction = [this] (Game& game) { 17 items.push_back({.text = "Quit", .activationFunction = [this] (Game& game) {
15 close(); 18 close();
16 game.losing = LoseState::PoppingLamps; 19 game.losing = LoseState::PoppingLamps;