From b758b2b20da8e3ab002dacc663237e1681ae973c Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Sun, 29 Dec 2024 15:05:21 +0100 Subject: back button --- game/mainmenu/ButtonSetMainMenuScript.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 game/mainmenu/ButtonSetMainMenuScript.h (limited to 'game/mainmenu/ButtonSetMainMenuScript.h') diff --git a/game/mainmenu/ButtonSetMainMenuScript.h b/game/mainmenu/ButtonSetMainMenuScript.h new file mode 100644 index 0000000..44c21aa --- /dev/null +++ b/game/mainmenu/ButtonSetMainMenuScript.h @@ -0,0 +1,14 @@ +#pragma once + +#include "IButtonScript.h" +#include + +class ButtonSetMainMenuScript : public IButtonScript { +public: + void init() override; + bool on_button_press(const crepe::ButtonPressEvent& e); +private: + float velocity = 20; +protected: + bool transition = false; +}; -- cgit v1.2.3