From 30974f588816aa03652002111c6a946b138e3bc5 Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Wed, 8 Jan 2025 19:47:31 +0100 Subject: replay in preview scene --- game/preview/PreviewReplaySubScript.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 game/preview/PreviewReplaySubScript.h (limited to 'game/preview/PreviewReplaySubScript.h') 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 + +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; +}; -- cgit v1.2.3