From 2726785d64aa117aff0791d4591046c442709aac Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Sun, 5 Jan 2025 16:36:38 +0100 Subject: improved hud --- game/hud/SpeedScript.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 game/hud/SpeedScript.h (limited to 'game/hud/SpeedScript.h') diff --git a/game/hud/SpeedScript.h b/game/hud/SpeedScript.h new file mode 100644 index 0000000..1cc4368 --- /dev/null +++ b/game/hud/SpeedScript.h @@ -0,0 +1,13 @@ +#pragma once + +#include "api/Script.h" +#include "manager/SaveManager.h" + +class SpeedScript : public crepe::Script { +public: + void fixed_update(crepe::duration_t dt) override; +private: + crepe::SaveManager* savemgr; + bool toggle = true; + float timescale = 1; +}; -- cgit v1.2.3