From 424da5eb1500d90389d939cd0b3e6e75d729578d Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Wed, 8 Jan 2025 16:17:39 +0100 Subject: delete replay --- game/menus/ButtonNextMainMenuSubScript.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'game/menus/ButtonNextMainMenuSubScript.cpp') diff --git a/game/menus/ButtonNextMainMenuSubScript.cpp b/game/menus/ButtonNextMainMenuSubScript.cpp index e03a34a..631b4d3 100644 --- a/game/menus/ButtonNextMainMenuSubScript.cpp +++ b/game/menus/ButtonNextMainMenuSubScript.cpp @@ -1,4 +1,5 @@ #include "ButtonNextMainMenuSubScript.h" +#include "ButtonReplaySubScript.h" #include "MenusConfig.h" #include "ValueBroker.h" @@ -26,7 +27,8 @@ bool ButtonNextMainMenuSubScript::on_button_press(const ButtonPressEvent & e) { for (AudioSource & audio : audios) { audio.stop(); } - + + this->trigger_event(); SaveManager & savemgr = this->get_save_manager(); ValueBroker coins = savemgr.get(TOTAL_COINS_RUN, 0); -- cgit v1.2.3