mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 13:53:40 +01:00
XivChatEntry should use SeString
This commit is contained in:
parent
85113e263f
commit
5c4ed3f715
7 changed files with 27 additions and 16 deletions
|
|
@ -300,7 +300,7 @@ namespace Dalamud.Game.Text.SeStringHandling
|
|||
EmphasisItalic = 0x1A,
|
||||
|
||||
/// <summary>
|
||||
/// See the <see cref="NewLinePayload"/>
|
||||
/// See the <see cref="NewLinePayload"/>.
|
||||
/// </summary>
|
||||
NewLine = 0x10,
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace Dalamud.Game.Text.SeStringHandling.Payloads
|
||||
|
|
@ -16,7 +16,7 @@ namespace Dalamud.Game.Text.SeStringHandling.Payloads
|
|||
public static NewLinePayload Payload => new();
|
||||
|
||||
/// <summary>
|
||||
/// Gets the text of this payload, evaluates to <c>Environment.NewLine</c>
|
||||
/// Gets the text of this payload, evaluates to <c>Environment.NewLine</c>.
|
||||
/// </summary>
|
||||
public string Text => Environment.NewLine;
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,15 @@ namespace Dalamud.Game.Text.SeStringHandling
|
|||
/// </summary>
|
||||
public class SeString
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SeString"/> class.
|
||||
/// Creates a new SeString from an ordered list of payloads.
|
||||
/// </summary>
|
||||
public SeString()
|
||||
{
|
||||
this.Payloads = new List<Payload>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SeString"/> class.
|
||||
/// Creates a new SeString from an ordered list of payloads.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
using System;
|
||||
|
||||
using Dalamud.Game.Text.SeStringHandling;
|
||||
|
||||
namespace Dalamud.Game.Text
|
||||
{
|
||||
/// <summary>
|
||||
|
|
@ -20,12 +22,12 @@ namespace Dalamud.Game.Text
|
|||
/// <summary>
|
||||
/// Gets or sets the sender name.
|
||||
/// </summary>
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public SeString Name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the message bytes.
|
||||
/// Gets or sets the message.
|
||||
/// </summary>
|
||||
public byte[] MessageBytes { get; set; }
|
||||
public SeString Message { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the message parameters.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue