diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2025-01-08 14:40:37 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2025-01-08 14:40:37 +0100 |
commit | 3b6081d03300d353434fd4f6e91237fc8f1a4390 (patch) | |
tree | 4c7b75f641e36de0c8aea933ea2cbdb213c35f0b /game/menus/ButtonShowCreditsSubScript.cpp | |
parent | aa8bf26452157f81f72b6d6759e461ff2ca24568 (diff) |
added credit window
Diffstat (limited to 'game/menus/ButtonShowCreditsSubScript.cpp')
-rw-r--r-- | game/menus/ButtonShowCreditsSubScript.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/game/menus/ButtonShowCreditsSubScript.cpp b/game/menus/ButtonShowCreditsSubScript.cpp new file mode 100644 index 0000000..ec0e980 --- /dev/null +++ b/game/menus/ButtonShowCreditsSubScript.cpp @@ -0,0 +1,20 @@ +#include "ButtonShowCreditsSubScript.h" +#include "MenusConfig.h" +#include "mainmenu/CreditsSubScript.h" +#include <crepe/api/AudioSource.h> +#include <crepe/types.h> + +using namespace crepe; +using namespace std; + +void ButtonShowCreditsSubScript::init() { + IButtonScript::init(); + this->subscribe<ButtonPressEvent>([this](const ButtonPressEvent & e) { + return this->on_button_press(e); + }); +} + +bool ButtonShowCreditsSubScript::on_button_press(const ButtonPressEvent & e) { + this->trigger_event<ShowCreditsEvent>(); + return false; +} |