aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Button.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api/Button.h')
-rw-r--r--src/crepe/api/Button.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crepe/api/Button.h b/src/crepe/api/Button.h
index 9b1341f..709854a 100644
--- a/src/crepe/api/Button.h
+++ b/src/crepe/api/Button.h
@@ -1,3 +1,4 @@
+#pragma once
#include <functional>
#include "Component.h"
@@ -6,7 +7,7 @@
namespace crepe {
class Button : public UiObject{
public:
- Button();
+ Button(game_object_id_t id) : UiObject(id){};
bool interactable = true;
bool is_toggle = false;
bool is_pressed = false;