fix: Adds missing string interpolation handler for SetStringSlot (#2123)

This commit is contained in:
Kamron Batman 2025-02-13 19:30:47 -08:00 • committed by GitHub
parent 899146dcb7
commit 6d7b1b8bee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 21 additions and 7 deletions

View file

@ -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);
}
}