Server.Gumps.Gump.AddTextEntry C# (CSharp) Méthode

AddTextEntry() public méthode

public AddTextEntry ( int x, int y, int width, int height, int hue, int entryID, string initialText ) : void
x int
y int
width int
height int
hue int
entryID int
initialText string
Résultat void
        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 ) );
        }

Same methods

Gump::AddTextEntry ( int x, int y, int width, int height, int hue, int entryID, string initialText, int size ) : void

Usage Example

Exemple #1
0
        // same as above but with two entries side by side and label included
        public static void AddTextEntryMinMaxLabel( Gump g, string s, int imageid, int x, int y, int hue, int entryIdMin, int entryIdMax, string initialText, int size, string name = "")
        {
            //Label
            g.AddLabel(x, y, hue, s);

            // Min
            g.AddImageTiled( (x + 10 -  (StringWitdth(s) / 2)) + 35 , y -1 , /*height*/ 52, /*width*/ 20, imageid);
            g.AddTextEntry( (x + 10 - (StringWitdth(s) / 2))+ 35 , y- 1 , 52, 20, hue, entryIdMin, "Min", size);

            // Max
            g.AddImageTiled( (x + 10 - (StringWitdth(s) / 2)) + 97 , y -1 , 52, 20, imageid);
            g.AddTextEntry( (x + 10 - (StringWitdth(s) / 2)) + 97 , y -1 , 52, 20, hue, entryIdMax, "Max", size );
        }
All Usage Examples Of Server.Gumps.Gump::AddTextEntry