mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: adjust TextArrowPayloads based on language
This commit is contained in:
parent
dd845a30f0
commit
d6555007ce
1 changed files with 20 additions and 7 deletions
|
|
@ -52,14 +52,27 @@ public class SeString
|
|||
/// with the appropriate glow and coloring.
|
||||
/// </summary>
|
||||
/// <returns>A list of all the payloads required to insert the link marker.</returns>
|
||||
public static IEnumerable<Payload> TextArrowPayloads => new List<Payload>(new Payload[]
|
||||
public static IEnumerable<Payload> TextArrowPayloads
|
||||
{
|
||||
new UIForegroundPayload(0x01F4),
|
||||
new UIGlowPayload(0x01F5),
|
||||
new TextPayload($"{(char)SeIconChar.LinkMarker}"),
|
||||
get
|
||||
{
|
||||
var clientState = Service<ClientState.ClientState>.Get();
|
||||
var markerSpace = clientState.ClientLanguage switch
|
||||
{
|
||||
ClientLanguage.German => " ",
|
||||
ClientLanguage.French => " ",
|
||||
_ => string.Empty,
|
||||
};
|
||||
return new List<Payload>
|
||||
{
|
||||
new UIForegroundPayload(500),
|
||||
new UIGlowPayload(501),
|
||||
new TextPayload($"{(char)SeIconChar.LinkMarker}{markerSpace}"),
|
||||
UIGlowPayload.UIGlowOff,
|
||||
UIForegroundPayload.UIForegroundOff,
|
||||
});
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an empty SeString.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue