diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-29 15:05:21 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-29 15:05:21 +0100 |
commit | b758b2b20da8e3ab002dacc663237e1681ae973c (patch) | |
tree | 60c41aa58570eaebbc589b07ff13f045fe46a93a /game/mainmenu/ButtonSetMainMenuScript.h | |
parent | e007e8f467349eeddaf503e31897d4135ba6fed4 (diff) |
back button
Diffstat (limited to 'game/mainmenu/ButtonSetMainMenuScript.h')
-rw-r--r-- | game/mainmenu/ButtonSetMainMenuScript.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 <crepe/api/Script.h> + +class ButtonSetMainMenuScript : public IButtonScript { +public: + void init() override; + bool on_button_press(const crepe::ButtonPressEvent& e); +private: + float velocity = 20; +protected: + bool transition = false; +}; |