Added shorthand for GumpTextEntryLimited

Renamed TextEntryLimited to GumpTextEntryLimited
This commit is contained in:
krrios 2006-08-27 19:36:26 +00:00
parent b90db4065e
commit ab373c4084
2 changed files with 6 additions and 2 deletions

View file

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

View file

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