AddImageTiledButton() public method

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
return void
Example #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);
 }
		public void AddSuperButton(int x, int y, int height, int width, int overlayID, int underID, int underIDpr, string text, GumpButtonType type, int replyID, int pageNum, Gump g)
		{
			g.AddImageTiledButton(x, y, underID, underIDpr, replyID, type, pageNum, 0, 0, width, height);
			//this.AddButton(x + 1, y+((height - 20) / 2), underID, underIDpr, replyID, type, pageNum);
			g.AddImageTiled(x, y, width, height, overlayID);
			g.AddLabel(x + 5, y + ((height - 18) / 2), Skin.NormalText, text);
		}