mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-29 11:59:21 +01:00
feat(SeStringBuilder): add overload for AddItemLink with new kind parameter
This commit is contained in:
parent
7e34f8c00c
commit
fd62190cbc
1 changed files with 10 additions and 0 deletions
|
|
@ -106,6 +106,16 @@ namespace Dalamud.Game.Text.SeStringHandling
|
|||
public SeStringBuilder AddItemLink(uint itemId, bool isHq, string? itemNameOverride = null) =>
|
||||
this.Add(new ItemPayload(itemId, isHq, itemNameOverride));
|
||||
|
||||
/// <summary>
|
||||
/// Add an item link to the builder.
|
||||
/// </summary>
|
||||
/// <param name="itemId">The item ID.</param>
|
||||
/// <param name="kind">Kind of item to encode.</param>
|
||||
/// <param name="itemNameOverride">Override for the item's name.</param>
|
||||
/// <returns>The current builder.</returns>
|
||||
public SeStringBuilder AddItemLink(uint itemId, ItemPayload.ItemKind kind, string? itemNameOverride = null) =>
|
||||
this.Add(new ItemPayload(itemId, kind, itemNameOverride));
|
||||
|
||||
/// <summary>
|
||||
/// Add italicized raw text to the builder.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue