summaryrefslogtreecommitdiff
path: root/Runtime/GUI/UITextMesh.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-04 19:03:53 +0800
committerchai <chaifix@163.com>2021-11-04 19:03:53 +0800
commit50dfa4050343a25a5a34816cc276ec6ec9cf33ce (patch)
tree20524f80633ee71173db9f13beb92e204b3bfc11 /Runtime/GUI/UITextMesh.h
parentae2c6b26c2453cfb84153c39861a1bcd02479a85 (diff)
*MISC
Diffstat (limited to 'Runtime/GUI/UITextMesh.h')
-rw-r--r--Runtime/GUI/UITextMesh.h4
1 files changed, 3 insertions, 1 deletions
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 <unordered_map>
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();