diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2025-01-10 14:17:38 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2025-01-10 14:17:38 +0100 |
commit | 52c838538d2271134a2c5a128074ea9c2ed1d4a3 (patch) | |
tree | fd85a4193f88ec48c77d6fbfd90e909ac3a5855c /game/preview/PreviewReplaySubScript.h | |
parent | 15a958a7f327bb2e81e7d445f1499ec78c7f5839 (diff) | |
parent | bb2db93bfb8dd7e080d2708548eae660e6b33913 (diff) |
Merge branch 'master' into niels/game
Diffstat (limited to 'game/preview/PreviewReplaySubScript.h')
-rw-r--r-- | game/preview/PreviewReplaySubScript.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/game/preview/PreviewReplaySubScript.h b/game/preview/PreviewReplaySubScript.h new file mode 100644 index 0000000..ca5bd08 --- /dev/null +++ b/game/preview/PreviewReplaySubScript.h @@ -0,0 +1,23 @@ +#pragma once + +#include "menus/IButtonScript.h" + +#include <crepe/api/Script.h> + +struct StartPreviewRecording : public crepe::Event {}; +struct StopPreviewRecording : public crepe::Event {}; + +class PreviewReplaySubScript : public IButtonScript { +public: + void init() override; + bool on_button_press(const crepe::ButtonPressEvent & e); + +private: + crepe::recording_t recording = 0; + bool start_recording(); + bool stop_recording(); + bool delete_recording(); +private: + bool record_saved = false; + bool record_started = false; +}; |