From 50dfa4050343a25a5a34816cc276ec6ec9cf33ce Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 4 Nov 2021 19:03:53 +0800 Subject: *MISC --- Runtime/GUI/UITextMesh.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Runtime/GUI/UITextMesh.h') diff --git a/Runtime/GUI/UITextMesh.h b/Runtime/GUI/UITextMesh.h index 7778785..f09cce7 100644 --- a/Runtime/GUI/UITextMesh.h +++ b/Runtime/GUI/UITextMesh.h @@ -2,6 +2,8 @@ #include "../Graphics/VertexBuffer.h" #include "Font.h" #include "Runtime/Utilities/Exception.h" +#include "Runtime/Graphics/Color.h" + #include CustomException(TextMeshException); @@ -35,7 +37,7 @@ namespace TextHelper class UITextMesh { public: - UITextMesh(const UnicodeString& str, Font* font, int pixelSize, int lineHeight, ETextAnchor anchor = TextAnchor_UpperLeft, ETextAlignment alignment = TextAlignment_Left, bool wordwrap = false, float preferred = 0)/*throw TextMeshException*/; + UITextMesh(const UnicodeString& str, Font* font, int pixelSize, int lineHeight, Color32 color32 = Color32::white, ETextAnchor anchor = TextAnchor_UpperLeft, ETextAlignment alignment = TextAlignment_Left, bool wordwrap = false, float preferred = 0)/*throw TextMeshException*/; ~UITextMesh(); -- cgit v1.1-26-g67d0