aboutsummaryrefslogtreecommitdiff
path: root/game/menus/mainmenu/CreditsSubScript.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/menus/mainmenu/CreditsSubScript.h')
-rw-r--r--game/menus/mainmenu/CreditsSubScript.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/game/menus/mainmenu/CreditsSubScript.h b/game/menus/mainmenu/CreditsSubScript.h
index 08e1f91..e411202 100644
--- a/game/menus/mainmenu/CreditsSubScript.h
+++ b/game/menus/mainmenu/CreditsSubScript.h
@@ -1,14 +1,18 @@
#pragma once
#include "../IFloatingWindowScript.h"
+#include "../IButtonScript.h"
#include <crepe/api/Event.h>
#include <crepe/api/Script.h>
-class CreditsSubScript : public IFloatingWindowScript {
+struct ShowCreditsEvent : public crepe::Event {};
+
+class CreditsSubScript : public IFloatingWindowScript, public IButtonScript {
public:
CreditsSubScript(const std::string & tag);
void init() override;
bool disable_all();
bool enable_all();
+ bool on_button_press(const crepe::ButtonPressEvent & e);
};