Exemplo n.º 1
0
 public void AddImageTiledButton(int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type,
                                    int itemID, int hue, int width, int height, GumpResponse callback,
                                    int param = 0, int localizedTooltip = -1, string name = "")
 {
     this.Add(new GumpImageTileButton(x, y, normalID, pressedID, this.NewID(), type, param, itemID, hue, width,
                                      height, callback, localizedTooltip, name));
 }
		public KRGumpButton( int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param )
		{
			m_X = x;
			m_Y = y;
			m_ID1 = normalID;
			m_ID2 = pressedID;
			m_ButtonID = buttonID;
			m_Type = type;
			m_Param = param;
		}
Exemplo n.º 3
0
		public new void AddButton(int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param)
		{
			if (type == GumpButtonType.Page)
			{
				AddButton(new GumpButton(x, y, normalID, pressedID, 0, GumpButtonType.Page, param), null);
			}
			else
			{
				AddButton(x, y, normalID, pressedID, buttonID, null);
			}
		}
Exemplo n.º 4
0
 public GumpButton(int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param, GumpResponse callback, string name)
 {
     this._X = x;
     this._Y = y;
     this._ID1 = normalID;
     this._ID2 = pressedID;
     this._EntryID = buttonID;
     this._Type = type;
     this._Param = param;
     this._Callback = callback;
     this._Name = (name != null ? name : "");
 }
Exemplo n.º 5
0
		public void AddButton(
			int x,
			int y,
			int normalID,
			int pressedID,
			GumpButtonType type,
			GumpResponse callback,
			int param = 0,
			string name = "")
		{
			Add(new GumpButton(x, y, normalID, pressedID, NewID(), type, param, callback, name));
		}
Exemplo n.º 6
0
		public void AddButton(
			int x,
			int y,
			int normalID,
			int pressedID,
			int buttonID,
			GumpButtonType type,
			int param,
			GumpResponse callback,
			string name = "")
		{
			Add(new GumpButton(x, y, normalID, pressedID, buttonID, type, param, callback));
		}
Exemplo n.º 7
0
		public GumpImageTileButton(
			int x,
			int y,
			int normalID,
			int pressedID,
			GumpButtonType type,
			int param,
			int itemID,
			int hue,
			int width,
			int height,
			string name)
			: this(x, y, normalID, pressedID, -1, type, param, itemID, hue, width, height, null, -1, name)
		{ }
Exemplo n.º 8
0
		public GumpImageTileButton(
			int x,
			int y,
			int normalID,
			int pressedID,
			GumpButtonType type,
			int param,
			int itemID,
			int hue,
			int width,
			int height,
			GumpResponse callback,
			int localizedTooltip,
			string name)
			: this(x, y, normalID, pressedID, -1, type, param, itemID, hue, width, height, callback, localizedTooltip, name)
		{ }
		public GumpButtonTileArt( int x, int y, int normalID, int pressedID, GumpButtonType type, int param, int buttonID, int itemid, int hue, int width, int height, int localizedTooltip )
		{
			m_X = x;
			m_Y = y;
			m_ID1 = normalID;
			m_ID2 = pressedID;
			m_Type = type;
			m_Param = param;
			m_ButtonID = buttonID;
			m_ItemID = itemid;
			m_Hue = hue;
			m_Width = width;
			m_Height = height;

            m_LocalizedTooltip = localizedTooltip;
		}
Exemplo n.º 10
0
        public GumpImageTileButton(int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param, int itemID, int hue, int width, int height, int localizedTooltip)
        {
            this.m_X = x;
            this.m_Y = y;
            this.m_ID1 = normalID;
            this.m_ID2 = pressedID;
            this.m_ButtonID = buttonID;
            this.m_Type = type;
            this.m_Param = param;

            this.m_ItemID = itemID;
            this.m_Hue = hue;
            this.m_Width = width;
            this.m_Height = height;

            this.m_LocalizedTooltip = localizedTooltip;
        }
Exemplo n.º 11
0
		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,
			int localizedTooltip = -1,
			string name = "")
		{
			Add(
				new GumpImageTileButton(
					x, y, normalID, pressedID, buttonID, type, param, itemID, hue, width, height, null, localizedTooltip, name));
		}
Exemplo n.º 12
0
        public GumpImageTileButton(int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param, int itemID, int hue, int width, int height, GumpResponse callback, int localizedTooltip, string name)
        {
            this._X = x;
            this._Y = y;
            this._ID1 = normalID;
            this._ID2 = pressedID;
            this._EntryID = buttonID;
            this._Type = type;
            this._Param = param;

            this._ItemID = itemID;
            this._Hue = hue;
            this._Width = width;
            this._Height = height;

            this._LocalizedTooltip = localizedTooltip;

            this._Callback = callback;
            this._Name = (name != null ? name : "");
        }
Exemplo n.º 13
0
		public new void AddImageTiledButton(
			int x,
			int y,
			int normalID,
			int pressedID,
			int buttonID,
			GumpButtonType type,
			int param,
			int itemID,
			int hue,
			int width,
			int height)
		{
			if (type == GumpButtonType.Page)
			{
				AddImageTiledButton(
					new GumpImageTileButton(x, y, normalID, pressedID, 0, GumpButtonType.Page, param, itemID, hue, width, height), null);
			}
			else
			{
				AddImageTiledButton(x, y, normalID, pressedID, buttonID, itemID, hue, width, height, null);
			}
		}
Exemplo n.º 14
0
 public GreyLeftArrow(Int32 x, Int32 y, GumpButtonType buttonType, Int32 param, GumpResponse callback) : base(x, y, 0x25EA, 0x25EB, -1, buttonType, param, callback) { }
Exemplo n.º 15
0
        public ShardTravelGump(Mobile from, int page, int x, int y, ShardTravelMap travelmap, int detail, string message)
            : base(x, y)
        {
            m_Page      = page;
            m_From      = from;
            m_TravelMap = travelmap;
            m_Detail    = detail;

            bool           GM    = m_From.AccessLevel >= AccessLevel.GameMaster;
            GumpButtonType Reply = GumpButtonType.Reply;

            if (m_TravelMap == null)
            {
                return;
            }

            if (m_TravelMap.Entries == null || m_TravelMap.Entries.Count <= 0)
            {
                m_TravelMap.Entries = m_TravelMap.GetDefaultEntries();
            }

            if (m_TravelMap.Entries == null || m_TravelMap.Entries.Count <= 0)
            {
                from.SendMessage("No entries were found on this map.");
                m_From.CloseGump(typeof(ShardTravelGump));
                return;
            }

            AddPage(0);
            AddBackground(0, 0, 600, 460, 3600);   // Grey Stone Background
            AddBackground(20, 20, 560, 420, 3000); // Paper Background
            AddBackground(36, 28, 387, 387, 2620); // Black Background behind map

            switch (m_Page)
            {
            case 1:     // Trammel Cities
            case 2:     // Trammel Dungeons
            case 3:     // Trammel Moongates
            case 4:     // Trammel Shrines
                AddImage(38, 30, 0x15DA);
                break;

            case 5:     // Felucca Cities
            case 6:     // Felucca Dungeons
            case 7:     // Felucca Moongates
            case 8:     // Felucca Shrines
                AddImage(38, 30, 0x15D9);
                break;

            case 9:     // Ilshenar Cities
            case 10:    // Ilshenar Dungeons
            case 11:    // Ilshenar Shrines
                AddImage(38, 30, 0x15DB);
                break;

            case 12:     // Malas Locations
                AddImage(38, 30, 0x15DC);
                break;

            case 13:     // Tokuno Moongates
            case 14:     // Tokuno Locations
                AddImage(38, 30, 0x15DD);
                break;

            case 15:     // TerMur Locations
                AddImage(38, 30, 0x15DE);
                break;
            }

            AddImage(34, 26, 0x15DF); // Border around the map

            AddLabel(206, 417, 0, MapPages[m_Page]);
            if (m_Page > 1)
            {
                AddButton(21, 29, 0x15E3, 0x15E7, 2, Reply, 0); // Previous Page
            }
            if (m_Page < 15)
            {
                AddButton(427, 29, 0x15E1, 0x15E5, 3, Reply, 0); // Next Page
            }
            foreach (ShardTravelEntry entry in m_TravelMap.Entries)
            {
                bool found = entry.Discovered;
                bool open  = entry.Unlocked;
                if (entry.MapIndex == m_Page && (found || GM))
                {
                    AddButton(entry.XposButton, entry.YposButton, 1210, 1209, entry.Index, Reply, 0);
                    AddLabel(entry.XposLabel, entry.YposLabel, open ? 0x480: found? 0x40 : 0x20, entry.Name);
                }
            }

            if (m_Detail > 0)
            {
                ShardTravelEntry entry = m_TravelMap.GetEntry(m_Detail);
                AddLabel(433, 64, 0, entry.Name);
                AddLabel(433, 84, 0, string.Format("X: {0}", entry.Destination.X));
                AddLabel(433, 104, 0, string.Format("Y: {0}", entry.Destination.Y));
                AddLabel(433, 124, 0, string.Format("Z: {0}", entry.Destination.Z));
                AddLabel(433, 144, 0, string.Format("Map: {0}", entry.Map));
                AddLabel(433, 164, entry.Unlocked ? 0x2A5 : 0x14D,
                         string.Format("Status: {0}", entry.Unlocked ? "Unlocked" : "Locked"));
                if (entry.Unlocked || GM)
                {
                    AddButton(434, 204, 4006, 4007, entry.Index + 10000, Reply, 0); // Teleport Now
                    AddLabel(480, 204, 0x2A5, "Teleport Now");
                }
                if (!entry.Unlocked && (entry.Discovered || GM))
                {
                    if (m_From.Map == entry.Map)
                    {
                        AddButton(434, 244, 4027, 4028, entry.Index + 30000, Reply, 0); // Explore This
                        AddLabel(480, 244, 0x2A5, "Explore This");
                    }
                }
            }
            if (message.Length > 0)
            {
                AddHtml(434, 284, 120, 170, message, false, false);
            }
            AddButton(561, 21, 22153, 22155, 4, Reply, 0); // Help Button
        }
Exemplo n.º 16
0
 public void AddButton( int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param )
 {
     GumpElement ge = new GumpElement();
     ge.Type = ElementType.button;
     ge.X = x;
     ge.Y = y;
     ge.InactiveID = normalID;
     ge.ActiveID = pressedID;
     ge.ButtonType = (int) type;
     ge.ElementID = buttonID;
     ge.Param = param;
     Add( ge );
 }
Exemplo n.º 17
0
 public void AddButtonTileArt(int x, int y, int normalID, int pressedID, GumpButtonType type, int param, int buttonID, int itemid, int hue, int width, int height)
 {
     Add(new GumpButtonTileArt(x, y, normalID, pressedID, type, param, buttonID, itemid, hue, width, height));
 }
Exemplo n.º 18
0
 public GumpImageTileButton(int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param, int itemID, int hue, int width, int height, GumpResponse callback, int localizedTooltip)
     : this(x, y, normalID, pressedID, buttonID, type, param, itemID, hue, width, height, callback, localizedTooltip, "")
 {
 }
Exemplo n.º 19
0
		public virtual void AddButton( int x, int y, int normalID, int pressedID, GumpButtonType type, int param, GumpResponse response )
		{
			m_RootParent.AddButton( x + m_XOffset, y + m_YOffset, normalID, pressedID, type, param, response );
			m_ButtonCount++;
		}
Exemplo n.º 20
0
 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)
 {
     AddSuperButton(x, y, height, width, overlayID, underID, underIDpr, text, type, replyID, pageNum, this);
 }
Exemplo n.º 21
0
        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, int localizedTooltip)
        {
            GumpElement ge = new GumpElement();

            ge.Type       = ElementType.buttontileart;
            ge.X          = x;
            ge.Y          = y;
            ge.InactiveID = normalID;
            ge.ActiveID   = pressedID;
            ge.ElementID  = buttonID;
            ge.ButtonType = (int)type;
            ge.Param      = param;
            ge.ItemID     = itemID;
            ge.Hue        = hue;
            ge.Height     = height;
            ge.Width      = width;
            ge.Cliloc     = localizedTooltip;
            Add(ge);
        }
Exemplo n.º 22
0
 public GumpButton(int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param)
     : this(x, y, normalID, pressedID, buttonID, type, param, null, "")
 {
 }
Exemplo n.º 23
0
 public GumpButton(
     int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param, GumpResponse callback)
     : this(x, y, normalID, pressedID, buttonID, type, param, callback, "")
 {
 }
Exemplo n.º 24
0
 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);
 }
Exemplo n.º 25
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);
 }
Exemplo n.º 26
0
        public GumpImageTileButton(int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param, int itemID, int hue, int width, int height, GumpResponse callback, int localizedTooltip, string name)
        {
            this._X       = x;
            this._Y       = y;
            this._ID1     = normalID;
            this._ID2     = pressedID;
            this._EntryID = buttonID;
            this._Type    = type;
            this._Param   = param;

            this._ItemID = itemID;
            this._Hue    = hue;
            this._Width  = width;
            this._Height = height;

            this._LocalizedTooltip = localizedTooltip;

            this._Callback = callback;
            this._Name     = (name != null ? name : "");
        }
Exemplo n.º 27
0
 public virtual void AddButton(int x, int y, int normalID, int pressedID, GumpButtonType type, int param, GumpResponse response)
 {
     m_RootParent.AddButton(x + m_XOffset, y + m_YOffset, normalID, pressedID, type, param, response);
     m_ButtonCount++;
 }
Exemplo n.º 28
0
 public GumpImageTileButton(int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param, int itemID, int hue, int width, int height) : this(x, y, normalID, pressedID, buttonID, type, param, itemID, hue, width, height, -1)
 {
 }
Exemplo n.º 29
0
		public GumpImageTileButton(
			int x,
			int y,
			int normalID,
			int pressedID,
			int buttonID,
			GumpButtonType type,
			int param,
			int itemID,
			int hue,
			int width,
			int height,
			GumpResponse callback)
			: this(x, y, normalID, pressedID, buttonID, type, param, itemID, hue, width, height, callback, -1, "")
		{ }
Exemplo n.º 30
0
        public GumpImageTileButton(int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param, int itemID, int hue, int width, int height, int localizedTooltip)
        {
            m_X        = x;
            m_Y        = y;
            m_ID1      = normalID;
            m_ID2      = pressedID;
            m_ButtonID = buttonID;
            m_Type     = type;
            m_Param    = param;

            m_ItemID = itemID;
            m_Hue    = hue;
            m_Width  = width;
            m_Height = height;

            LocalizedTooltip = localizedTooltip;
        }
Exemplo n.º 31
0
 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)
 {
     AddImageTiledButton(x, y, normalID, pressedID, buttonID, type, param, itemID, hue, width, height, -1);
 }
Exemplo n.º 32
0
 public virtual void AddButton(int x, int y, int normalID, int pressedID, GumpButtonType type, int param, GumpResponse response)
 {
     AddButton(x, y, normalID, pressedID, ++m_ButtonCount, type, param);
     AddResponse(response);
 }
Exemplo n.º 33
0
 public void AddButtonTileArt( int x, int y, int normalID, int pressedID, GumpButtonType type, int param, int buttonID, int itemid, int hue, int width, int height )
 {
     Add( new GumpButtonTileArt( x, y, normalID, pressedID, type, param, buttonID, itemid, hue, width, height ) );
 }
Exemplo n.º 34
0
 public virtual void AddImageTiledButton(int x, int y, int normalID, int pressedID, GumpButtonType type, int param, int itemID, int hue, int width, int height, int localizedTooltip, GumpResponse response)
 {
     AddImageTiledButton(x, y, normalID, pressedID, ++m_ButtonCount, type, param, itemID, hue, width, height, localizedTooltip);
     AddResponse(response);
 }
Exemplo n.º 35
0
		public virtual void AddImageTiledButton( int x, int y, int normalID, int pressedID, GumpButtonType type, int param, int itemID, int hue, int width, int height, int localizedTooltip, GumpResponse response )
		{
			m_RootParent.AddImageTiledButton( x + m_XOffset, y + m_YOffset, normalID, pressedID, type, param, itemID, hue, width, height, localizedTooltip, response );
			m_ButtonCount++;
		}
Exemplo n.º 36
0
 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, int localizedTooltip)
 {
     Add(new GumpImageTileButton(x, y, normalID, pressedID, buttonID, type, param, itemID, hue, width, height, localizedTooltip));
 }
Exemplo n.º 37
0
 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, int localizedTooltip )
 {
     GumpElement ge = new GumpElement();
     ge.Type = ElementType.buttontileart;
     ge.X = x;
     ge.Y = y;
     ge.InactiveID = normalID;
     ge.ActiveID = pressedID;
     ge.ElementID = buttonID;
     ge.ButtonType = (int) type;
     ge.Param = param;
     ge.ItemID = itemID;
     ge.Hue = hue;
     ge.Height = height;
     ge.Width = width;
     ge.Cliloc = localizedTooltip;
     Add( ge );
 }
Exemplo n.º 38
0
		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 ) );
		}
Exemplo n.º 39
0
 public GreyLeftArrow(Int32 x, Int32 y, GumpButtonType buttonType, Int32 param) : this(x, y, buttonType, param, null) { }
Exemplo n.º 40
0
		public GumpButton(int x, int y, int normalID, int pressedID, GumpButtonType type, int param, string name)
			: this(x, y, normalID, pressedID, -1, type, param, null, name)
		{ }
Exemplo n.º 41
0
		public void AddButton(
			int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param, string name = "")
		{
			Add(new GumpButton(x, y, normalID, pressedID, buttonID, type, param, null, name));
		}
Exemplo n.º 42
0
		public GumpButton(int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param)
			: this(x, y, normalID, pressedID, buttonID, type, param, null, "")
		{ }
Exemplo n.º 43
0
 public virtual void AddImageTiledButton(int x, int y, int normalID, int pressedID, GumpButtonType type, int param, int itemID, int hue, int width, int height, int localizedTooltip, GumpResponse response)
 {
     m_RootParent.AddImageTiledButton(x + m_XOffset, y + m_YOffset, normalID, pressedID, type, param, itemID, hue, width, height, localizedTooltip, response);
     m_ButtonCount++;
 }
Exemplo n.º 44
0
        public void AddButton(int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param)
        {
            GumpElement ge = new GumpElement();

            ge.Type       = ElementType.button;
            ge.X          = x;
            ge.Y          = y;
            ge.InactiveID = normalID;
            ge.ActiveID   = pressedID;
            ge.ButtonType = (int)type;
            ge.ElementID  = buttonID;
            ge.Param      = param;
            Add(ge);
        }
Exemplo n.º 45
0
 public GreyRightArrow(Int32 x, Int32 y, GumpButtonType buttonType, Int32 param, GumpResponse callback) : base(x, y, 0x25E6, 0x25E7, -1, buttonType, param, callback)
 {
 }
Exemplo n.º 46
0
 public GumpButton(int x, int y, int normalID, int pressedID, GumpButtonType type, int param, string name)
     : this(x, y, normalID, pressedID, -1, type, param, null, name)
 {
 }
Exemplo n.º 47
0
 public GreyRightArrow(Int32 x, Int32 y, GumpButtonType buttonType, Int32 param) : this(x, y, buttonType, param, null)
 {
 }
Exemplo n.º 48
0
 public GumpButton(
     int x, int y, int normalID, int pressedID, GumpButtonType type, int param, GumpResponse callback, string name)
     : this(x, y, normalID, pressedID, -1, type, param, callback, name)
 {
 }
 public GumpButtonTileArt(int x, int y, int normalID, int pressedID, GumpButtonType type, int buttonID, int param, int itemID, int hue, int width, int height)
     : this(x, y, normalID, pressedID, type, buttonID, param, itemID, hue, width, height, -1)
 {
 }
Exemplo n.º 50
0
        public void AddEntryButton(int x, int y, int buttonUp, int buttonDn, int retID, GumpButtonType gumpButtonType, int param, string col1, string col2, string col3)
        {
            int yloc  = Skin.SelectStartY + (y * (Skin.SkillSpacer + Skin.SelectH));
            int xbase = Skin.SelectStartX;

            this.AddImageTiled(xbase, yloc, Skin.SelectW, Skin.SelectH, Skin.SelectUnderlay);
            this.AddLabel(xbase + Skin.SelectInset, yloc, Skin.NormalText, col1);
            this.AddLabel(xbase + Skin.WeightLabelX, yloc, Skin.NormalText, col2);
            this.AddLabel(xbase + Skin.PointsLabelX, yloc, Skin.NormalText, col3);
            this.AddButton(xbase + Skin.CheckTopX, yloc + 2, buttonUp, buttonDn, retID, gumpButtonType, param);
        }
Exemplo n.º 51
0
		public void AddButton( int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param )
		{
			Add( new GumpButton( x, y, normalID, pressedID, buttonID, type, param ) );
		}
Exemplo n.º 52
0
 public GumpImageTileButton(int x, int y, int normalID, int pressedID, GumpButtonType type, int param, int itemID, int hue, int width, int height, GumpResponse callback, string name)
     : this(x, y, normalID, pressedID, -1, type, param, itemID, hue, width, height, callback, -1, name)
 {
 }
Exemplo n.º 53
0
 public void AddCallbackButton(int x, int y, int buttonIDnormal, int buttonIDpushed, int id, GumpButtonType type, int page, Action<GumpButton> callback)
 {
     GumpButton b = new GumpButton(x, y, buttonIDnormal, buttonIDpushed, id, type, page);
     ButtonCallbacks[b] = callback;
     Add(b);
 }
Exemplo n.º 54
0
 public new void AddButton(int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param)
 {
     if (type == GumpButtonType.Page)
     {
         AddButton(new GumpButton(x, y, normalID, pressedID, 0, GumpButtonType.Page, param), null);
     }
     else
     {
         AddButton(x, y, normalID, pressedID, buttonID, null);
     }
 }
Exemplo n.º 55
0
		public GumpButton(
			int x, int y, int normalID, int pressedID, GumpButtonType type, int param, GumpResponse callback, string name)
			: this(x, y, normalID, pressedID, -1, type, param, callback, name)
		{ }
Exemplo n.º 56
0
        public void AddCallbackButton(int x, int y, int buttonIDnormal, int buttonIDpushed, int id, GumpButtonType type, int page, Action <GumpButton> callback)
        {
            GumpButton b = new GumpButton(x, y, buttonIDnormal, buttonIDpushed, id, type, page);

            ButtonCallbacks[b] = callback;
            Add(b);
        }
Exemplo n.º 57
0
		public GumpButton(
			int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param, GumpResponse callback)
			: this(x, y, normalID, pressedID, buttonID, type, param, callback, "")
		{ }
Exemplo n.º 58
0
 public void AddButton(int x, int y, int normalID, int pressedID, int buttonID, GumpButtonType type, int param)
 {
     Add(new GumpButton(x, y, normalID, pressedID, buttonID, type, param));
 }