aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api')
-rw-r--r--src/crepe/api/Text.cpp6
-rw-r--r--src/crepe/api/Text.h3
2 files changed, 3 insertions, 6 deletions
diff --git a/src/crepe/api/Text.cpp b/src/crepe/api/Text.cpp
index 58dc6c6..6c632f3 100644
--- a/src/crepe/api/Text.cpp
+++ b/src/crepe/api/Text.cpp
@@ -5,10 +5,8 @@
using namespace crepe;
Text::Text(game_object_id_t id, const vec2 & dimensions, const vec2 & offset,
- const std::string & font_family, const Data & data, const std::string & text,
- std::optional<Asset> font)
+ const std::string & font_family, const Data & data, const std::string & text)
: UIObject(id, dimensions, offset),
text(text),
data(data),
- font_family(font_family),
- font(font) {}
+ font_family(font_family){}
diff --git a/src/crepe/api/Text.h b/src/crepe/api/Text.h
index 92cca18..c30dc80 100644
--- a/src/crepe/api/Text.h
+++ b/src/crepe/api/Text.h
@@ -51,8 +51,7 @@ 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 = "",
- std::optional<Asset> font = std::nullopt);
+ const std::string & font_family, const Data & data, const std::string & text = "");
//! Label text.
std::string text = "";