aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Button.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-19 09:13:43 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-19 09:13:43 +0100
commitd8f1e161b0c98baa7dde287c484529a8b1291626 (patch)
tree2f0eb1c7175375eac6efbf6d1e847d51bcd257cd /src/crepe/api/Button.cpp
parenta6ba1eb5b6b6a1782182008e0044bf1ac04733dc (diff)
parent7c76d1743d5b0c3cf6eb05076fae88e948f3e22f (diff)
Merge branch 'wouter/button-improvement' of github.com:lonkaars/crepe
Diffstat (limited to 'src/crepe/api/Button.cpp')
-rw-r--r--src/crepe/api/Button.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/crepe/api/Button.cpp b/src/crepe/api/Button.cpp
index 305922c..40153c9 100644
--- a/src/crepe/api/Button.cpp
+++ b/src/crepe/api/Button.cpp
@@ -2,9 +2,7 @@
namespace crepe {
-Button::Button(game_object_id_t id, const vec2 & dimensions, const vec2 & offset,
- const std::function<void()> & on_click)
- : UIObject(id, dimensions, offset),
- on_click(on_click) {}
+Button::Button(game_object_id_t id, const vec2 & dimensions, const vec2 & offset)
+ : UIObject(id, dimensions, offset) {}
} // namespace crepe