aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Text.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/Text.h
parent76f6c4d3e36b653aec79438ae4053ea24560236c (diff)
ui fixes for offset
Diffstat (limited to 'src/crepe/api/Text.h')
-rw-r--r--src/crepe/api/Text.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/crepe/api/Text.h b/src/crepe/api/Text.h
index 0163bbb..37d86b4 100644
--- a/src/crepe/api/Text.h
+++ b/src/crepe/api/Text.h
@@ -6,6 +6,7 @@
#include "Asset.h"
#include "Color.h"
#include "UIObject.h"
+#include "types.h"
namespace crepe {
/**
@@ -35,8 +36,8 @@ public:
* \param font Optional font asset that can be passed or left empty.
*/
Text(
- game_object_id_t id, const vec2 & dimensions, const vec2 & offset,
- const std::string & font_family, const Data & data, const std::string & text = ""
+ game_object_id_t id, const vec2 & dimensions, const std::string & font_family,
+ const Data & data, const vec2 & offset = {0, 0}, const std::string & text = ""
);
//! Label text.