aboutsummaryrefslogtreecommitdiff
path: root/game/menus/ButtonReplaySubScript.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/menus/ButtonReplaySubScript.h')
-rw-r--r--game/menus/ButtonReplaySubScript.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/game/menus/ButtonReplaySubScript.h b/game/menus/ButtonReplaySubScript.h
new file mode 100644
index 0000000..3eb8aa9
--- /dev/null
+++ b/game/menus/ButtonReplaySubScript.h
@@ -0,0 +1,21 @@
+#pragma once
+
+#include "IButtonScript.h"
+
+#include <crepe/api/Script.h>
+
+struct DeleteRecordingEvent : public crepe::Event {};
+
+class ButtonReplaySubScript : public IButtonScript {
+public:
+ void init() override;
+ bool on_button_press(const crepe::ButtonPressEvent & e);
+
+private:
+ crepe::recording_t recording = 0;
+ bool set_recording();
+ bool delete_recording();
+
+protected:
+ bool transition = false;
+};