From e7cd071c0f0f5ad000fcd73e1c0be7c101d0c982 Mon Sep 17 00:00:00 2001
From: goat <16760685+goaaats@users.noreply.github.com>
Date: Tue, 8 Dec 2020 12:09:09 +0100
Subject: [PATCH] feat: SeString override ToString() with TextValue
---
Dalamud/Game/Chat/SeStringHandling/SeString.cs | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Dalamud/Game/Chat/SeStringHandling/SeString.cs b/Dalamud/Game/Chat/SeStringHandling/SeString.cs
index 847e296e9..d5d96cc46 100644
--- a/Dalamud/Game/Chat/SeStringHandling/SeString.cs
+++ b/Dalamud/Game/Chat/SeStringHandling/SeString.cs
@@ -104,6 +104,14 @@ namespace Dalamud.Game.Chat.SeStringHandling
return messageBytes.ToArray();
}
+ ///
+ /// Get the text value of this SeString.
+ ///
+ /// The TextValue property
+ public override string ToString() {
+ return TextValue;
+ }
+
///
/// Serializes the SeString to json
///