Restore Gump.AddTextEntry overload without size parameter as sending GumpTextEntryLimited with size = 0 makes it unusable in standard client. (#90)

This commit is contained in:
Reetus 2020-02-19 00:08:44 +08:00 committed by GitHub
parent 27e8d823bd
commit c5c8d8657c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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