Exemple #1
0
        public WeaponAttributeGump(Item item, Mobile m, int points, BasicAttributeGump gump)
            : base(0, 60)
        {
            beheld      = item; from = m;
            parent      = gump;
            imbuePoints = points;

            this.Closable   = true;
            this.Disposable = true;
            this.Dragable   = true;
            this.Resizable  = false;
            this.AddPage(0);
            this.AddBackground(12, 0, 283, 380, 9380);

            this.AddImage(212, 292, 51);
            this.AddLabel(233, 307, 0, imbuePoints.ToString());

            this.AddItem(31, 33, 3676);
            this.AddItem(80, 29, 3688);
            this.AddItem(132, 33, 3686);
            this.AddItem(231, 33, 3679);
            this.AddItem(182, 29, 3682);

            this.AddLabel(41, 59, 1209, @"Hit Dispel");
            this.AddLabel(41, 81, 1409, @"Hit Fireball");
            this.AddLabel(41, 104, 1309, @"Hit Harm");
            this.AddLabel(41, 127, 1109, @"Hit Lightning");
            this.AddLabel(41, 150, 1509, @"Hit Magic Arrow");
            this.AddLabel(41, 173, 1609, @"Life Leech");
            this.AddLabel(41, 196, 2115, @"Mana Leech");
            this.AddLabel(41, 219, 2120, @"Stam Leech");
            this.AddLabel(41, 241, 2113, @"Lower Attack");
            this.AddLabel(41, 263, 2201, @"Lower Defense");

            this.AddButton(253, 61, 55, 55, (int)Buttons.dispelBtn, GumpButtonType.Reply, 0);
            this.AddButton(253, 83, 55, 55, (int)Buttons.fireballBtn, GumpButtonType.Reply, 0);
            this.AddButton(253, 106, 55, 55, (int)Buttons.harmcBtn, GumpButtonType.Reply, 0);
            this.AddButton(253, 129, 55, 55, (int)Buttons.lightningBtn, GumpButtonType.Reply, 0);
            this.AddButton(253, 152, 55, 55, (int)Buttons.mArrowBtn, GumpButtonType.Reply, 0);
            this.AddButton(253, 175, 55, 55, (int)Buttons.lifeLeechBtn, GumpButtonType.Reply, 0);
            this.AddButton(253, 198, 55, 55, (int)Buttons.manaLeechBtn, GumpButtonType.Reply, 0);
            this.AddButton(253, 221, 55, 55, (int)Buttons.stamLeechBtn, GumpButtonType.Reply, 0);
            this.AddButton(253, 243, 55, 55, (int)Buttons.lowAttBtn, GumpButtonType.Reply, 0);
            this.AddButton(253, 265, 55, 55, (int)Buttons.lowDefBtn, GumpButtonType.Reply, 0);

            this.AddButton(204, 61, 56, 56, (int)Buttons._dispelBtn, GumpButtonType.Reply, 0);
            this.AddButton(204, 83, 56, 56, (int)Buttons._fireballBtn, GumpButtonType.Reply, 0);
            this.AddButton(204, 106, 56, 56, (int)Buttons._harmcBtn, GumpButtonType.Reply, 0);
            this.AddButton(204, 129, 56, 56, (int)Buttons._lightningBtn, GumpButtonType.Reply, 0);
            this.AddButton(204, 152, 56, 56, (int)Buttons._mArrowBtn, GumpButtonType.Reply, 0);
            this.AddButton(204, 175, 56, 56, (int)Buttons._lifeLeechBtn, GumpButtonType.Reply, 0);
            this.AddButton(204, 198, 56, 56, (int)Buttons._manaLeechBtn, GumpButtonType.Reply, 0);
            this.AddButton(204, 221, 56, 56, (int)Buttons._stamLeechBtn, GumpButtonType.Reply, 0);
            this.AddButton(204, 243, 56, 56, (int)Buttons._lowAttBtn, GumpButtonType.Reply, 0);
            this.AddButton(204, 265, 56, 56, (int)Buttons._lowDefBtn, GumpButtonType.Reply, 0);

            this.AddButton(50, 300, 239, 239, (int)Buttons.applyButton, GumpButtonType.Reply, 0);

            this.AddLabel(231, 59, 0, _values[1].ToString());
            this.AddLabel(231, 82, 0, _values[2].ToString());
            this.AddLabel(231, 105, 0, _values[3].ToString());
            this.AddLabel(231, 128, 0, _values[4].ToString());
            this.AddLabel(231, 151, 0, _values[5].ToString());
            this.AddLabel(231, 174, 0, _values[6].ToString());
            this.AddLabel(231, 197, 0, _values[7].ToString());
            this.AddLabel(231, 220, 0, _values[8].ToString());
            this.AddLabel(231, 242, 0, _values[9].ToString());
            this.AddLabel(231, 264, 0, _values[10].ToString());
        }
        public WeaponAttributeGump(Item item, Mobile m, int points, BasicAttributeGump gump)
            : base(0, 60)
        {
            beheld = item; from = m;
            parent = gump;
            imbuePoints = points;

            this.Closable = true;
            this.Disposable = true;
            this.Dragable = true;
            this.Resizable = false;
            this.AddPage(0);
            this.AddBackground(12, 0, 283, 380, 9380);

            this.AddImage(212, 292, 51);
            this.AddLabel(233, 307, 0, imbuePoints.ToString());

            this.AddItem(31, 33, 3676);
            this.AddItem(80, 29, 3688);
            this.AddItem(132, 33, 3686);
            this.AddItem(231, 33, 3679);
            this.AddItem(182, 29, 3682);

            this.AddLabel(41, 59, 1209, @"Hit Dispel");
            this.AddLabel(41, 81, 1409, @"Hit Fireball");
            this.AddLabel(41, 104, 1309, @"Hit Harm");
            this.AddLabel(41, 127, 1109, @"Hit Lightning");
            this.AddLabel(41, 150, 1509, @"Hit Magic Arrow");
            this.AddLabel(41, 173, 1609, @"Life Leech");
            this.AddLabel(41, 196, 2115, @"Mana Leech");
            this.AddLabel(41, 219, 2120, @"Stam Leech");
            this.AddLabel(41, 241, 2113, @"Lower Attack");
            this.AddLabel(41, 263, 2201, @"Lower Defense");

            this.AddButton(253, 61, 55, 55, (int)Buttons.dispelBtn, GumpButtonType.Reply, 0);
            this.AddButton(253, 83, 55, 55, (int)Buttons.fireballBtn, GumpButtonType.Reply, 0);
            this.AddButton(253, 106, 55, 55, (int)Buttons.harmcBtn, GumpButtonType.Reply, 0);
            this.AddButton(253, 129, 55, 55, (int)Buttons.lightningBtn, GumpButtonType.Reply, 0);
            this.AddButton(253, 152, 55, 55, (int)Buttons.mArrowBtn, GumpButtonType.Reply, 0);
            this.AddButton(253, 175, 55, 55, (int)Buttons.lifeLeechBtn, GumpButtonType.Reply, 0);
            this.AddButton(253, 198, 55, 55, (int)Buttons.manaLeechBtn, GumpButtonType.Reply, 0);
            this.AddButton(253, 221, 55, 55, (int)Buttons.stamLeechBtn, GumpButtonType.Reply, 0);
            this.AddButton(253, 243, 55, 55, (int)Buttons.lowAttBtn, GumpButtonType.Reply, 0);
            this.AddButton(253, 265, 55, 55, (int)Buttons.lowDefBtn, GumpButtonType.Reply, 0);

            this.AddButton(204, 61, 56, 56, (int)Buttons._dispelBtn, GumpButtonType.Reply, 0);
            this.AddButton(204, 83, 56, 56, (int)Buttons._fireballBtn, GumpButtonType.Reply, 0);
            this.AddButton(204, 106, 56, 56, (int)Buttons._harmcBtn, GumpButtonType.Reply, 0);
            this.AddButton(204, 129, 56, 56, (int)Buttons._lightningBtn, GumpButtonType.Reply, 0);
            this.AddButton(204, 152, 56, 56, (int)Buttons._mArrowBtn, GumpButtonType.Reply, 0);
            this.AddButton(204, 175, 56, 56, (int)Buttons._lifeLeechBtn, GumpButtonType.Reply, 0);
            this.AddButton(204, 198, 56, 56, (int)Buttons._manaLeechBtn, GumpButtonType.Reply, 0);
            this.AddButton(204, 221, 56, 56, (int)Buttons._stamLeechBtn, GumpButtonType.Reply, 0);
            this.AddButton(204, 243, 56, 56, (int)Buttons._lowAttBtn, GumpButtonType.Reply, 0);
            this.AddButton(204, 265, 56, 56, (int)Buttons._lowDefBtn, GumpButtonType.Reply, 0);

            this.AddButton(50, 300, 239, 239, (int)Buttons.applyButton, GumpButtonType.Reply, 0);

            this.AddLabel(231, 59, 0, _values[1].ToString());
            this.AddLabel(231, 82, 0, _values[2].ToString());
            this.AddLabel(231, 105, 0, _values[3].ToString());
            this.AddLabel(231, 128, 0, _values[4].ToString());
            this.AddLabel(231, 151, 0, _values[5].ToString());
            this.AddLabel(231, 174, 0, _values[6].ToString());
            this.AddLabel(231, 197, 0, _values[7].ToString());
            this.AddLabel(231, 220, 0, _values[8].ToString());
            this.AddLabel(231, 242, 0, _values[9].ToString());
            this.AddLabel(231, 264, 0, _values[10].ToString());
        }