mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-29 11:59:21 +01:00
Expose MakeItalics as a helper method, add params to SeString ctor
This commit is contained in:
parent
85113e263f
commit
57a87296cc
2 changed files with 17 additions and 22 deletions
|
|
@ -29,7 +29,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);
|
||||
}
|
||||
|
|
@ -61,7 +61,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