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

AddImageTiledButton() public méthode

public AddImageTiledButton ( int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param, int itemID, int hue, int width, int height ) : void
x int
y int
normalID int
pressedID int
buttonID int
type GumpButtonType
param int
itemID int
hue int
width int
height int
Résultat void
        public void AddImageTiledButton( int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param, int itemID, int hue, int width, int height )
        {
            Add( new GumpImageTileButton( x, y, normalID, pressedID, buttonID, type, param, itemID, hue, width, height ) );
        }

Same methods

Gump::AddImageTiledButton ( int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param, int itemID, int hue, int width, int height, int localizedTooltip ) : void

Usage Example

Exemple #1
0
 /// <summary>
 /// Long as poo. Adds a "super button" with a graphic overlay and text.
 /// </summary>
 /// <param name="x">X location of button.</param>
 /// <param name="y">Y location of button.</param>
 /// <param name="height">Height of graphical background.</param>
 /// <param name="width">Width of graphical background.</param>
 /// <param name="overlayID">ID of graphical background.</param>
 /// <param name="underID">Button ID of underlying button.</param>
 /// <param name="underIDpr">Button ID of pressed button.</param>
 /// <param name="text">The text the button should bear.</param>
 /// <param name="type">The GumpButtonType of the button.</param>
 /// <param name="replyID">The reply ID of the button (if any).</param>
 /// <param name="pageNum">The page number of the button (if ButtonType.Reply, leave 0) Also is the "param" entry for GumpButton.</param>
 private void AddSuperButton(int x, int y, int height, int width, int overlayID, int underID, int underIDpr, string text, GumpButtonType type, int replyID, int pageNum)
 {
     //page.AddButton(x + 1, y + 1, underID, underIDpr, replyID, type, pageNum);
     page.AddImageTiledButton(x, y, underID, underIDpr, replyID, type, pageNum, 0, 0, width, height);
     page.AddImageTiled(x, y, width, height, overlayID);
     page.AddLabel(x + 2, y + 2, sk.NormalText, text);
 }
All Usage Examples Of Server.Gumps.Gump::AddImageTiledButton