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

@ -88,7 +88,8 @@ public abstract class StaticWarningGump<T> : StaticGump<T> where T : StaticWarni
protected sealed override void BuildStrings(ref GumpStringsBuilder builder)
{
builder.SetStringSlot("content", Content.Color(ContentColor));
var contentText = Content.AsSpan().Color(ContentColor);
builder.SetStringSlot("content", ref contentText);
}
public override void OnResponse(NetState sender, in RelayInfo info) => _callback?.Invoke(info.ButtonID == 1);