aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/UIObject.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-22 20:18:44 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-22 20:18:44 +0100
commita5f8b34f4701863901e89abe5b0b604fd9e553b2 (patch)
treeb6c9e122206641dab43ec7ec44eba48bf5b87cd4 /src/crepe/api/UIObject.h
parent76f6c4d3e36b653aec79438ae4053ea24560236c (diff)
ui fixes for offset
Diffstat (limited to 'src/crepe/api/UIObject.h')
-rw-r--r--src/crepe/api/UIObject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/api/UIObject.h b/src/crepe/api/UIObject.h
index f7f4fba..5c1fdf7 100644
--- a/src/crepe/api/UIObject.h
+++ b/src/crepe/api/UIObject.h
@@ -15,7 +15,7 @@ public:
* \param dimensions width and height of the UIObject
* \param offset Offset relative to the GameObject Transform
*/
- UIObject(game_object_id_t id, const vec2 & dimensions, const vec2 & offset);
+ UIObject(game_object_id_t id, const vec2 & dimensions, const vec2 & offset = {0,0});
//! Width and height of the UIObject
vec2 dimensions;
//! Position offset relative to this GameObjects Transform