From ab373c4084531ff1647b0db109d13cad274ec7c4 Mon Sep 17 00:00:00 2001 From: krrios Date: Sun, 27 Aug 2006 19:36:26 +0000 Subject: [PATCH] Added shorthand for GumpTextEntryLimited Renamed TextEntryLimited to GumpTextEntryLimited --- Server/Gumps/Gump.cs | 4 ++++ Server/Gumps/GumpTextEntryLimited.cs | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Server/Gumps/Gump.cs b/Server/Gumps/Gump.cs index 408d6b9c2..202ba7ce1 100644 --- a/Server/Gumps/Gump.cs +++ b/Server/Gumps/Gump.cs @@ -306,6 +306,10 @@ namespace Server.Gumps 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 ) ); + } + public void Add( GumpEntry g ) { if ( g.Parent != this ) diff --git a/Server/Gumps/GumpTextEntryLimited.cs b/Server/Gumps/GumpTextEntryLimited.cs index 39fe46e7e..356b71637 100644 --- a/Server/Gumps/GumpTextEntryLimited.cs +++ b/Server/Gumps/GumpTextEntryLimited.cs @@ -22,7 +22,7 @@ using System; using Server.Network; namespace Server.Gumps { - public class TextEntryLimited : GumpEntry { + public class GumpTextEntryLimited : GumpEntry { private int m_X, m_Y; private int m_Width, m_Height; private int m_Hue; @@ -102,7 +102,7 @@ namespace Server.Gumps { } } - public TextEntryLimited( int x, int y, int width, int height, int hue, int entryID, string initialText, int size ) { + public GumpTextEntryLimited( int x, int y, int width, int height, int hue, int entryID, string initialText, int size ) { m_X = x; m_Y = y; m_Width = width;