diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-11 22:17:43 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-11 22:17:43 +0100 |
commit | e75e355c3a59d53a1d64fd8fae3331b2234083e2 (patch) | |
tree | 24176a074d529271e7279794f7fa2dcf5aed2525 /src/crepe/api/Text.h | |
parent | bb2a6f1a0ab19f6cbc78b2747a26920f24bf13ca (diff) |
text component pretty much finished
Diffstat (limited to 'src/crepe/api/Text.h')
-rw-r--r-- | src/crepe/api/Text.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/crepe/api/Text.h b/src/crepe/api/Text.h index 9dd275b..d5f47fa 100644 --- a/src/crepe/api/Text.h +++ b/src/crepe/api/Text.h @@ -11,11 +11,11 @@ namespace crepe{ class Text : public UIObject{ public: - Text(game_object_id_t id,const vec2 & dimensions, const vec2 & offset, const Asset & font, int font_size); + Text(game_object_id_t id,const vec2 & dimensions, const vec2 & offset, const Asset & font); //! Label text. std::string text; - //! Label text color + //! Label text color. Color text_color = Color::BLACK; /** * \brief fontsize for text rendering @@ -26,8 +26,8 @@ public: * The default font size that is loaded is set in the Config. * Instead this value is used to upscale the font texture which can cause blurring or distorted text when upscaling or downscaling too much. */ - int font_size = 16; - + unsigned int font_size = 16; + //! Font asset const Asset source; private: }; |