From 3b6081d03300d353434fd4f6e91237fc8f1a4390 Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Wed, 8 Jan 2025 14:40:37 +0100 Subject: added credit window --- game/menus/ButtonShowCreditsSubScript.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 game/menus/ButtonShowCreditsSubScript.cpp (limited to 'game/menus/ButtonShowCreditsSubScript.cpp') 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 +#include + +using namespace crepe; +using namespace std; + +void ButtonShowCreditsSubScript::init() { + IButtonScript::init(); + this->subscribe([this](const ButtonPressEvent & e) { + return this->on_button_press(e); + }); +} + +bool ButtonShowCreditsSubScript::on_button_press(const ButtonPressEvent & e) { + this->trigger_event(); + return false; +} -- cgit v1.2.3