Пример #1
0
        public EnchantGump(EnchantSpell spell)
            : base(200, 100)
        {
            m_Spell = spell;

            AddPage(0);

            AddBackground(10, 10, 250, 178, 0x2436);
            AddAlphaRegion(20, 20, 230, 158);
            AddImage(220, 20, 0x28E0);
            AddImage(220, 72, 0x28E0);
            AddImage(220, 124, 0x28E0);
            AddItem(188, 16, 0x1AE3);
            AddItem(198, 168, 0x1AE1);
            AddItem(8, 15, 0x1AE2);
            AddItem(2, 168, 0x1AE0);

            AddHtmlLocalized(30, 26, 200, 20, 1080133, 0xEF9, false, false);               // Select Enchant

            for (var i = 0; i < EnchantSpell.Entries.Length; i++)
            {
                AddButton(27, 53 + (21 * i), 0x25E6, 0x25E7, i + 1, GumpButtonType.Reply, 0);
                AddHtmlLocalized(50, 51 + (21 * i), 150, 20, EnchantSpell.Entries[i].Cliloc, 0xEF9, false, false);
            }
        }
Пример #2
0
        protected override void OnTick()
        {
            if (Weapon != null)
            {
                Weapon.EnchantedWeilder = null;
            }

            EnchantSpell.RemoveEnchantment(Owner);
        }
Пример #3
0
        public EnchantGump( EnchantSpell spell )
            : base(200, 100)
        {
            m_Spell = spell;

            AddPage( 0 );

            AddBackground( 10, 10, 250, 178, 0x2436 );
            AddAlphaRegion( 20, 20, 230, 158 );
            AddImage( 220, 20, 0x28E0 );
            AddImage( 220, 72, 0x28E0 );
            AddImage( 220, 124, 0x28E0 );
            AddItem( 188, 16, 0x1AE3 );
            AddItem( 198, 168, 0x1AE1 );
            AddItem( 8, 15, 0x1AE2 );
            AddItem( 2, 168, 0x1AE0 );

            AddHtmlLocalized( 30, 26, 200, 20, 1080133, 0xEF9, false, false ); // Select Enchant

            for ( int i = 0; i < EnchantSpell.Entries.Length; i++ )
            {
                AddButton( 27, 53 + ( 21 * i ), 0x25E6, 0x25E7, i + 1, GumpButtonType.Reply, 0 );
                AddHtmlLocalized( 50, 51 + ( 21 * i ), 150, 20, EnchantSpell.Entries[i].Cliloc, 0xEF9, false, false );
            }
        }