i need help with a gump !

AddTextEntry
the player enter a text in letter String [hello how are you]
its possible to make the textentry for number? Int [123456]
I not find anywhere if its possible to make it.

AddTextEntry(130, 150, 57, 20, _TextColor, 0, @"number 1 - 56", 3);
 

Attachments

  • string.jpg
    string.jpg
    20 KB · Views: 7
 
i find for who is can help , thanks Pyro.

AddTextEntry( xloc, y, 50, 25, 53, 30 ,attachment.THEATTACH.ToString() );

switch (info.ButtonID)
{
case 10://
{
int val = 0;
TextRelay tr = info.GetTextEntry( 30 );
if(tr != null)
{
try{val = int.Parse(tr.Text); } catch{}
}
m_attachment.THEATTACH = val;
pm.SendGump(THEATTACH);
break;
}
}
 
Back