switch to SeIConChar values for custom unicode characters; it would be nice to be able to use these without casting, but I'll wait on that change in case there are other reasons to stay as it is

This commit is contained in:
meli 2020-04-25 20:05:34 -07:00
parent 68f3862efe
commit 474efadc57
2 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,7 @@ namespace Dalamud.Game.Chat.SeStringHandling.Payloads
{
// wrap the text in the colored brackets that is uses in-game, since those
// are not actually part of any of the payloads
this.text ??= $"\uE040 {Resolve()} \uE041";
this.text ??= $"{(char)SeIconChar.AutoTranslateOpen} {Resolve()} {(char)SeIconChar.AutoTranslateClose}";
return this.text;
}
}

View file

@ -15,7 +15,7 @@ namespace Dalamud.Game.Chat.SeStringHandling
string displayName = displayNameOverride ?? SeString.Dalamud.Data.GetExcelSheet<DalamudItem>().GetRow((int)itemId).Name;
if (isHQ)
{
displayName += " \uE03C";
displayName += $" {(char)SeIconChar.HighQuality}";
}
// TODO: probably a cleaner way to build these than doing the bulk+insert
@ -84,7 +84,7 @@ namespace Dalamud.Game.Chat.SeStringHandling
{
new UIForegroundPayload(0x01F4),
new UIGlowPayload(0x01F5),
new TextPayload("\uE0BB"),
new TextPayload($"{(char)SeIconChar.LinkMarker}"),
UIGlowPayload.UIGlowOff,
UIForegroundPayload.UIForegroundOff
});