Class SeString
This class represents a parsed SeString.
Assembly: Dalamud.dll
View Source
public class SeString
Properties
TextArrowPayloads
Gets a list of Payloads necessary to display the arrow link marker icon in chat with the appropriate glow and coloring.
View Source
public static IEnumerable<Payload> TextArrowPayloads { get; }
Empty
Gets an empty SeString.
View Source
public static SeString Empty { get; }
Payloads
Gets the ordered list of payloads included in this SeString.
View Source
public List<Payload> Payloads { get; }
TextValue
Gets all of the raw text from a message as a single joined string.
View Source
public string TextValue { get; }
Methods
Parse(byte*, int)
Parse a binary game message into an SeString.
View Source
public static SeString Parse(byte* ptr, int len)
Returns
Dalamud.Game.Text.SeStringHandling.SeString: An SeString containing parsed Payload objects for each payload in the data.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte* | ptr | Pointer to the string's data in memory. |
System.Int32 | len | Length of the string's data in memory. |
Parse(ReadOnlySpan<byte>)
Parse a binary game message into an SeString.
View Source
public static SeString Parse(ReadOnlySpan<byte> data)
Returns
Dalamud.Game.Text.SeStringHandling.SeString: An SeString containing parsed Payload objects for each payload in the data.
Parameters
| Type | Name | Description |
|---|---|---|
System.ReadOnlySpan<System.Byte> | data | Binary message payload data in SE's internal format. |
Parse(byte[])
Parse a binary game message into an SeString.
View Source
public static SeString Parse(byte[] bytes)
Returns
Dalamud.Game.Text.SeStringHandling.SeString: An SeString containing parsed Payload objects for each payload in the data.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | bytes | Binary message payload data in SE's internal format. |
Parse(byte*)
Parse a binary game message into an SeString.
View Source
public static SeString Parse(byte* ptr)
Returns
Dalamud.Game.Text.SeStringHandling.SeString: An SeString containing parsed Payload objects for each payload in the data.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte* | ptr | Pointer to the string's data in memory. Needs to be null-terminated. |
CreateItemLink(uint, bool, string?)
Creates an SeString representing an entire Payload chain that can be used to link an item in the chat log.
View Source
public static SeString CreateItemLink(uint itemId, bool isHq, string? displayNameOverride = null)
Returns
Dalamud.Game.Text.SeStringHandling.SeString: An SeString containing all the payloads necessary to display an item link in the chat log.
Parameters
| Type | Name | Description |
|---|---|---|
System.UInt32 | itemId | The id of the item to link. |
System.Boolean | isHq | Whether to link the high-quality variant of the item. |
System.String | displayNameOverride | An optional name override to display, instead of the actual item name. |
CreateItemLink(uint, ItemKind, string?)
Creates an SeString representing an entire Payload chain that can be used to link an item in the chat log.
View Source
public static SeString CreateItemLink(uint itemId, ItemKind kind = ItemKind.Normal, string? displayNameOverride = null)
Returns
Dalamud.Game.Text.SeStringHandling.SeString: An SeString containing all the payloads necessary to display an item link in the chat log.
Parameters
| Type | Name | Description |
|---|---|---|
System.UInt32 | itemId | The id of the item to link. |
| Dalamud.Utility.ItemKind | kind | The kind of item to link. |
System.String | displayNameOverride | An optional name override to display, instead of the actual item name. |
CreateItemLink(Item, bool, string?)
Creates an SeString representing an entire Payload chain that can be used to link an item in the chat log.
View Source
public static SeString CreateItemLink(Item item, bool isHq, string? displayNameOverride = null)
Returns
Dalamud.Game.Text.SeStringHandling.SeString: An SeString containing all the payloads necessary to display an item link in the chat log.
Parameters
| Type | Name | Description |
|---|---|---|
Lumina.Excel.Sheets.Item | item | The Lumina Item to link. |
System.Boolean | isHq | Whether to link the high-quality variant of the item. |
System.String | displayNameOverride | An optional name override to display, instead of the actual item name. |
CreateMapLink(uint, uint, int, int)
Creates an SeString representing an entire Payload chain that can be used to link a map position in the chat log.
View Source
public static SeString CreateMapLink(uint territoryId, uint mapId, int rawX, int rawY)
Returns
Dalamud.Game.Text.SeStringHandling.SeString: An SeString containing all of the payloads necessary to display a map link in the chat log.
Parameters
| Type | Name | Description |
|---|---|---|
System.UInt32 | territoryId | The id of the TerritoryType for this map link. |
System.UInt32 | mapId | The id of the Map for this map link. |
System.Int32 | rawX | The raw x-coordinate for this link. |
System.Int32 | rawY | The raw y-coordinate for this link.. |
CreateMapLinkWithInstance(uint, uint, int?, int, int)
Creates an SeString representing an entire Payload chain that can be used to link a map position in the chat log.
View Source
public static SeString CreateMapLinkWithInstance(uint territoryId, uint mapId, int? instance, int rawX, int rawY)
Returns
Dalamud.Game.Text.SeStringHandling.SeString: An SeString containing all of the payloads necessary to display a map link in the chat log.
Parameters
| Type | Name | Description |
|---|---|---|
System.UInt32 | territoryId | The id of the TerritoryType for this map link. |
System.UInt32 | mapId | The id of the Map for this map link. |
System.Nullable<System.Int32> | instance | An optional area instance number to be included in this link. |
System.Int32 | rawX | The raw x-coordinate for this link. |
System.Int32 | rawY | The raw y-coordinate for this link.. |
CreateMapLink(uint, uint, float, float, float)
Creates an SeString representing an entire Payload chain that can be used to link a map position in the chat log.