aboutsummaryrefslogtreecommitdiff
path: root/game/menus/ButtonReplaySubScript.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2025-01-08 15:03:34 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2025-01-08 15:03:34 +0100
commit14d2398b776d7be3c404af5f4e983b435efaf1d1 (patch)
tree76a4d0b73a0e179dca61ca0f95544edcd017f2d1 /game/menus/ButtonReplaySubScript.cpp
parent38c88e394414556a464b07e091b4b7fc8fd27b1d (diff)
`make format`jaro/game
Diffstat (limited to 'game/menus/ButtonReplaySubScript.cpp')
-rw-r--r--game/menus/ButtonReplaySubScript.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/game/menus/ButtonReplaySubScript.cpp b/game/menus/ButtonReplaySubScript.cpp
index 26cb8ee..9308350 100644
--- a/game/menus/ButtonReplaySubScript.cpp
+++ b/game/menus/ButtonReplaySubScript.cpp
@@ -1,9 +1,9 @@
#include "ButtonReplaySubScript.h"
#include "MenusConfig.h"
+#include "../Events.h"
#include <crepe/api/AudioSource.h>
#include <crepe/types.h>
-#include "../Events.h"
using namespace crepe;
using namespace std;
@@ -19,13 +19,12 @@ void ButtonReplaySubScript::init() {
replay.record_start();
}
-
bool ButtonReplaySubScript::on_button_press(const ButtonPressEvent & e) {
replay.play(this->recording);
return false;
}
-bool ButtonReplaySubScript::set_recording(){
+bool ButtonReplaySubScript::set_recording() {
this->recording = replay.record_end();
return false;
}