diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2025-01-08 16:17:39 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2025-01-08 16:17:39 +0100 |
commit | 424da5eb1500d90389d939cd0b3e6e75d729578d (patch) | |
tree | 991094effc4a5261e5d2ab0771fdd38e95eca94f /game/menus/ButtonNextMainMenuSubScript.cpp | |
parent | e2f9c0bcaf22aa73689305faca70f2ec4682f55c (diff) |
delete replay
Diffstat (limited to 'game/menus/ButtonNextMainMenuSubScript.cpp')
-rw-r--r-- | game/menus/ButtonNextMainMenuSubScript.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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<DeleteRecordingEvent>(); SaveManager & savemgr = this->get_save_manager(); ValueBroker<int> coins = savemgr.get<int>(TOTAL_COINS_RUN, 0); |