fix: Adds missing string interpolation handler for SetStringSlot (#2123)
This commit is contained in:
parent
899146dcb7
commit
6d7b1b8bee
6 changed files with 21 additions and 7 deletions
|
|
@ -1,3 +1,5 @@
|
|||
using System;
|
||||
using Server.Buffers;
|
||||
using Server.Gumps;
|
||||
|
||||
namespace Server.Tests.Gumps;
|
||||
|
|
@ -35,6 +37,7 @@ public class StaticLayoutTestGump : StaticGump<StaticLayoutTestGump>
|
|||
|
||||
protected override void BuildStrings(ref GumpStringsBuilder builder)
|
||||
{
|
||||
builder.SetStringSlot("petName", $"<CENTER>{_petName}</CENTER>");
|
||||
var petNameText = _petName.AsSpan().Center();
|
||||
builder.SetStringSlot("petName", ref petNameText);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue