aboutsummaryrefslogtreecommitdiff
path: root/game/menus/ButtonReplaySubScript.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-08 15:33:41 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-08 15:33:41 +0100
commitce83df284173cfb4f6e430bf3ed8080ea21204d7 (patch)
treecb30e6bd44b4cf61ee696b55b46f7b817bf4157a /game/menus/ButtonReplaySubScript.h
parent698628cf1fb1b8a1f68bf6a5672d984bd64be58f (diff)
parent26fe39ef4e633206a9b202d431c969c66052d2ef (diff)
Merge branch 'master' into niels/game
Diffstat (limited to 'game/menus/ButtonReplaySubScript.h')
-rw-r--r--game/menus/ButtonReplaySubScript.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/game/menus/ButtonReplaySubScript.h b/game/menus/ButtonReplaySubScript.h
new file mode 100644
index 0000000..bfc684d
--- /dev/null
+++ b/game/menus/ButtonReplaySubScript.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#include "IButtonScript.h"
+
+#include <crepe/api/Script.h>
+
+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();
+
+protected:
+ bool transition = false;
+};