From c5c8d8657c2bdd767b68d0ca3f3f66138b665745 Mon Sep 17 00:00:00 2001 From: Reetus <6239195+Reetus@users.noreply.github.com> Date: Wed, 19 Feb 2020 00:08:44 +0800 Subject: [PATCH] Restore Gump.AddTextEntry overload without size parameter as sending GumpTextEntryLimited with size = 0 makes it unusable in standard client. (#90) --- Projects/Server/Gumps/Gump.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Projects/Server/Gumps/Gump.cs b/Projects/Server/Gumps/Gump.cs index 0d5cc707a..05718b5dd 100644 --- a/Projects/Server/Gumps/Gump.cs +++ b/Projects/Server/Gumps/Gump.cs @@ -262,7 +262,12 @@ namespace Server.Gumps Add(new GumpRadio(x, y, inactiveID, activeID, initialState, switchID)); } - public void AddTextEntry(int x, int y, int width, int height, int hue, int entryID, string initialText, int size = 0) + public void AddTextEntry(int x, int y, int width, int height, int hue, int entryID, string initialText) + { + Add( new GumpTextEntry(x, y, width, height, hue, entryID, initialText)); + } + + public void AddTextEntry(int x, int y, int width, int height, int hue, int entryID, string initialText, int size) { Add(new GumpTextEntryLimited(x, y, width, height, hue, entryID, initialText, size)); }