diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2025-01-07 22:07:32 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2025-01-07 22:07:32 +0100 |
commit | f2028cd4def82f5f6a52392ff011f6d0fa4aa315 (patch) | |
tree | 149f7ff853c22cc5d7ce5f2917fbc277fa419b33 /game/menus/ButtonSetMainMenuScript.cpp | |
parent | 055ca804ebe27ea77f1c09079f119a0526426e70 (diff) |
correct naming
Diffstat (limited to 'game/menus/ButtonSetMainMenuScript.cpp')
-rw-r--r-- | game/menus/ButtonSetMainMenuScript.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/game/menus/ButtonSetMainMenuScript.cpp b/game/menus/ButtonSetMainMenuScript.cpp deleted file mode 100644 index 1e4179c..0000000 --- a/game/menus/ButtonSetMainMenuScript.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include "ButtonSetMainMenuScript.h" -#include "MenusConfig.h" - -#include <crepe/api/AudioSource.h> -#include <crepe/types.h> - -using namespace crepe; -using namespace std; - -void ButtonSetMainMenuScript::init(){ - IButtonScript::init(); - this->subscribe<ButtonPressEvent>([this](const ButtonPressEvent& e) { return this->on_button_press(e); }); -} - -bool ButtonSetMainMenuScript::on_button_press(const ButtonPressEvent& e){ - RefVector<AudioSource> audios = this->get_components_by_name<AudioSource>("background_music"); - - this->set_next_scene(MAINMENU_SCENE); - return false; -} - |