diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-25 10:38:18 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-25 10:38:18 +0100 |
commit | 327154fd428e0798eea544d9f073f8e1293aa158 (patch) | |
tree | 0bf5ea14a33cf54ab6bbddd22bce5e72f9398cb0 /src/crepe/api/Button.h | |
parent | 987fc16a8ae124548e2074d6f46806387c03e161 (diff) |
most test working
Diffstat (limited to 'src/crepe/api/Button.h')
-rw-r--r-- | src/crepe/api/Button.h | 3 |
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; |