diff --git a/ChatTwo/ChatTwo.csproj b/ChatTwo/ChatTwo.csproj index a8a76a5..22c73d9 100755 --- a/ChatTwo/ChatTwo.csproj +++ b/ChatTwo/ChatTwo.csproj @@ -1,6 +1,6 @@ - 1.24.0 + 1.24.1 net8.0-windows enable enable diff --git a/ChatTwo/Message.cs b/ChatTwo/Message.cs index 20d9571..5788e32 100755 --- a/ChatTwo/Message.cs +++ b/ChatTwo/Message.cs @@ -202,7 +202,7 @@ internal class Message AddContentAfterURLCheck(builder.ToString(), text, chunk); builder.Clear(); - AddChunkWithMessage(new TextChunk(chunk.Source, EmotePayload.ResolveEmote(word), word)); + AddChunkWithMessage(new TextChunk(chunk.Source, EmotePayload.ResolveEmote(word), word) { FallbackColour = text.FallbackColour }); builder.Append(' '); continue; } diff --git a/ChatTwo/Ui/ChatLogWindow.cs b/ChatTwo/Ui/ChatLogWindow.cs index 8c9a155..63fceea 100644 --- a/ChatTwo/Ui/ChatLogWindow.cs +++ b/ChatTwo/Ui/ChatLogWindow.cs @@ -1486,7 +1486,7 @@ public sealed class ChatLogWindow : Window if (i < chunks.Count - 1) ImGui.SameLine(); - else if (chunks[i].Link is EmotePayload) { + else if (chunks[i].Link is EmotePayload && Plugin.Config.ShowEmotes) { // Emote payloads seem to not automatically put newlines, which // is an issue when modern mode is disabled. ImGui.SameLine(); @@ -1521,7 +1521,7 @@ public sealed class ChatLogWindow : Window if (chunk is not TextChunk text) return; - if (chunk.Link is EmotePayload emotePayload) + if (chunk.Link is EmotePayload emotePayload && Plugin.Config.ShowEmotes) { var emoteSize = ImGui.CalcTextSize("W"); emoteSize = emoteSize with { Y = emoteSize.X } * 1.5f;