- Handle NBSP payloads
- Use ingame version of axis font
This commit is contained in:
@@ -2,6 +2,9 @@ using ChatTwo.Code;
|
||||
using Dalamud.Game.Text.SeStringHandling;
|
||||
using Dalamud.Game.Text.SeStringHandling.Payloads;
|
||||
using System.Text;
|
||||
using Lumina.Text.Payloads;
|
||||
|
||||
using PayloadType = Dalamud.Game.Text.SeStringHandling.PayloadType;
|
||||
|
||||
namespace ChatTwo.Util;
|
||||
|
||||
@@ -112,6 +115,11 @@ internal static class ChunkUtil
|
||||
var id = GetInteger(reader);
|
||||
link = new AchievementPayload(id);
|
||||
}
|
||||
else if (rawPayload.Data is [_, (byte)MacroCode.NonBreakingSpace, _, _])
|
||||
{
|
||||
// NonBreakingSpace payload
|
||||
Append(" ");
|
||||
}
|
||||
// NOTE: no URIPayload because it originates solely from
|
||||
// new Message(). The game doesn't have a URI payload type.
|
||||
else if (Equals(rawPayload, RawPayload.LinkTerminator))
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
using Dalamud.Utility;
|
||||
using FFXIVClientStructs.FFXIV.Client.UI.Misc;
|
||||
using FFXIVClientStructs.FFXIV.Component.Text;
|
||||
|
||||
namespace ChatTwo.Util;
|
||||
namespace ChatTwo.Util;
|
||||
|
||||
public class ColorPayload
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user