diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-22 20:18:44 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-22 20:18:44 +0100 |
commit | a5f8b34f4701863901e89abe5b0b604fd9e553b2 (patch) | |
tree | b6c9e122206641dab43ec7ec44eba48bf5b87cd4 /src/crepe/api/Button.h | |
parent | 76f6c4d3e36b653aec79438ae4053ea24560236c (diff) |
ui fixes for offset
Diffstat (limited to 'src/crepe/api/Button.h')
-rw-r--r-- | src/crepe/api/Button.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/crepe/api/Button.h b/src/crepe/api/Button.h index f6d363a..d7dc747 100644 --- a/src/crepe/api/Button.h +++ b/src/crepe/api/Button.h @@ -1,6 +1,7 @@ #pragma once #include "UIObject.h" +#include "types.h" namespace crepe { @@ -33,7 +34,8 @@ public: * \param data additional data the button has */ Button( - game_object_id_t id, const vec2 & dimensions, const vec2 & offset, const Data & data + game_object_id_t id, const vec2 & dimensions, const Data & data, + const vec2 & offset = {0, 0} ); /** * \brief Get the maximum number of instances for this component |