mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-22 00:19:18 +01:00
Merge pull request #413 from daemitus/italics
This commit is contained in:
commit
9d9a80e75d
2 changed files with 17 additions and 22 deletions
|
|
@ -38,7 +38,7 @@ namespace Dalamud.Game.Text.SeStringHandling
|
|||
/// Creates a new SeString from an ordered list of payloads.
|
||||
/// </summary>
|
||||
/// <param name="payloads">The Payload objects to make up this string.</param>
|
||||
public SeString(Payload[] payloads)
|
||||
public SeString(params Payload[] payloads)
|
||||
{
|
||||
this.Payloads = new List<Payload>(payloads);
|
||||
}
|
||||
|
|
@ -70,7 +70,7 @@ namespace Dalamud.Game.Text.SeStringHandling
|
|||
/// </summary>
|
||||
/// <param name="str">string to convert.</param>
|
||||
/// <returns>Equivalent SeString.</returns>
|
||||
public static implicit operator SeString(string str) => new(new Payload[] { new TextPayload(str) });
|
||||
public static implicit operator SeString(string str) => new(new TextPayload(str));
|
||||
|
||||
/// <summary>
|
||||
/// Creates a SeString from a json. (For testing - not recommended for production use.)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue