From 667ed9ac9b1e51ef87a5a0bca25566f39f087671 Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Fri, 20 Dec 2024 15:52:54 +0100 Subject: updated cmake and added simple button --- game/mainmenu/ButtonScript.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 game/mainmenu/ButtonScript.h (limited to 'game/mainmenu/ButtonScript.h') diff --git a/game/mainmenu/ButtonScript.h b/game/mainmenu/ButtonScript.h new file mode 100644 index 0000000..96f52f4 --- /dev/null +++ b/game/mainmenu/ButtonScript.h @@ -0,0 +1,11 @@ +#pragma once + +#include + +class ButtonScript : public crepe::Script { +public: + bool on_button_press(const crepe::ButtonPressEvent& e); + bool on_button_enter(const crepe::ButtonEnterEvent& e); + bool on_button_exit(const crepe::ButtonExitEvent& e); + void init(); +}; -- cgit v1.2.3