From 61aa4f941e67cf45833f1e12fe25428b3f283f74 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 21 Mar 2022 13:02:11 -0400 Subject: game can be muted now not re-rendering the menu overlay because it looks fine tbh --- src/menu.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/menu.cpp') 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() { items.push_back({.text = "Toggle Fullscreen", .activationFunction = [] (Game& game) { game.renderer.toggleFullscreen(); }}); + items.push_back({.text = "Toggle Music", .activationFunction = [] (Game& game) { + game.muxer.toggleMute(); + }}); items.push_back({.text = "Quit", .activationFunction = [this] (Game& game) { close(); game.losing = LoseState::PoppingLamps; -- cgit 1.4.1