fix: Fixes AddLabelPlaceholder on StaticGump (#2121)

This commit is contained in:
Kamron Batman 2025-02-13 18:53:24 -08:00 committed by GitHub
parent 41e909cd22
commit 3cf1bd0f7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -30,7 +30,7 @@ public sealed class PagePromptGump : StaticGump<PagePromptGump>
builder.AddTextEntry(120, 168, 400, 200, 1153, 0, "");
builder.AddButton(175, 355, 2074, 2075, 1); // Okay
builder. AddButton(405, 355, 2073, 2072, 0); // Cancel
builder.AddButton(405, 355, 2073, 2072, 0); // Cancel
}
public override void OnResponse(NetState sender, in RelayInfo info)

View file

@ -312,7 +312,7 @@ public ref struct StaticGumpBuilder
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void AddLabelPlaceholder(int x, int y, int hue, ref RawInterpolatedStringHandler handler)
{
AddHtmlPlaceholder(x, y, 0, 0, handler.Text);
AddLabelPlaceholder(x, y, hue, handler.Text);
handler.Clear();
}

View file

@ -2139,7 +2139,7 @@ namespace Server.Multis
if (_newPrice - _oldPrice < 0)
{
builder. AddHtmlLocalized(10, 260, 150, 20, 1062059, 992); // Your Refund:
builder.AddHtmlLocalized(10, 260, 150, 20, 1062059, 992); // Your Refund:
builder.AddLabel(170, 260, 70, (_oldPrice - _newPrice).ToString());
}
else