From 3cf1bd0f7d128c395bb7642c6a32339b27d05388 Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Thu, 13 Feb 2025 18:53:24 -0800 Subject: [PATCH] fix: Fixes AddLabelPlaceholder on StaticGump (#2121) --- Projects/UOContent/Engines/Help/PagePromptGump.cs | 2 +- Projects/UOContent/Gumps/Base/StaticGumpBuilder.cs | 2 +- Projects/UOContent/Multis/Houses/HouseFoundation.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Projects/UOContent/Engines/Help/PagePromptGump.cs b/Projects/UOContent/Engines/Help/PagePromptGump.cs index 7814ffedd..a03612be4 100644 --- a/Projects/UOContent/Engines/Help/PagePromptGump.cs +++ b/Projects/UOContent/Engines/Help/PagePromptGump.cs @@ -30,7 +30,7 @@ public sealed class PagePromptGump : StaticGump 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) diff --git a/Projects/UOContent/Gumps/Base/StaticGumpBuilder.cs b/Projects/UOContent/Gumps/Base/StaticGumpBuilder.cs index c05e03f87..5e7702dab 100644 --- a/Projects/UOContent/Gumps/Base/StaticGumpBuilder.cs +++ b/Projects/UOContent/Gumps/Base/StaticGumpBuilder.cs @@ -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(); } diff --git a/Projects/UOContent/Multis/Houses/HouseFoundation.cs b/Projects/UOContent/Multis/Houses/HouseFoundation.cs index 0620f9f62..46be9fdfa 100644 --- a/Projects/UOContent/Multis/Houses/HouseFoundation.cs +++ b/Projects/UOContent/Multis/Houses/HouseFoundation.cs @@ -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