aboutsummaryrefslogtreecommitdiff
path: root/game/mainmenu/ButtonScript.h
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-20 15:52:54 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-20 15:52:54 +0100
commit667ed9ac9b1e51ef87a5a0bca25566f39f087671 (patch)
tree1ead85a1eb1559d53ae2fac8d1f2a599c880b46f /game/mainmenu/ButtonScript.h
parent0ba89eff9283d5f9f59fa763a19f4616f1c66d74 (diff)
updated cmake and added simple button
Diffstat (limited to 'game/mainmenu/ButtonScript.h')
-rw-r--r--game/mainmenu/ButtonScript.h11
1 files changed, 11 insertions, 0 deletions
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 <crepe/api/Script.h>
+
+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();
+};