Ejemplo n.º 1
0
            public InternalGump(CannonAddon cannon, PotionKeg keg)
                : base(50, 50)
            {
                this.m_Cannon = cannon;
                this.m_Keg    = keg;

                this.Closable   = true;
                this.Disposable = true;
                this.Dragable   = true;
                this.Resizable  = false;

                this.AddPage(0);

                this.AddBackground(0, 0, 291, 133, 0x13BE);
                this.AddImageTiled(5, 5, 280, 100, 0xA40);

                this.AddHtmlLocalized(9, 9, 272, 100, 1076196, cannon.Validate(keg).ToString(), 0x7FFF, false, false); // You will need a full keg of explosion potions to recharge the cannon.  Your keg will provide ~1_CHARGES~ charges.

                this.AddButton(5, 107, 0xFB1, 0xFB2, (int)Buttons.Cancel, GumpButtonType.Reply, 0);
                this.AddHtmlLocalized(40, 109, 100, 20, 1060051, 0x7FFF, false, false); // CANCEL

                this.AddButton(160, 107, 0xFB7, 0xFB8, (int)Buttons.Recharge, GumpButtonType.Reply, 0);
                this.AddHtmlLocalized(195, 109, 120, 20, 1076197, 0x7FFF, false, false); // Recharge
            }
Ejemplo n.º 2
0
 public InternalTarget(CannonAddon cannon) : base(12, true, TargetFlags.None)
 {
     m_Cannon = cannon;
 }
Ejemplo n.º 3
0
 public InternalTarget( CannonAddon cannon  )
     : base(12, true, TargetFlags.None)
 {
     m_Cannon = cannon;
 }
Ejemplo n.º 4
0
            public InternalGump( CannonAddon cannon, PotionKeg keg )
                : base(50, 50)
            {
                m_Cannon = cannon;
                m_Keg = keg;

                Closable = true;
                Disposable = true;
                Dragable = true;
                Resizable = false;

                AddPage( 0 );

                AddBackground( 0, 0, 291, 133, 0x13BE );
                AddImageTiled( 5, 5, 280, 100, 0xA40 );

                AddHtmlLocalized( 9, 9, 272, 100, 1076196, cannon.Validate( keg ).ToString(), 0x7FFF, false, false ); // You will need a full keg of explosion potions to recharge the cannon.  Your keg will provide ~1_CHARGES~ charges.

                AddButton( 5, 107, 0xFB1, 0xFB2, (int) Buttons.Cancel, GumpButtonType.Reply, 0 );
                AddHtmlLocalized( 40, 109, 100, 20, 1060051, 0x7FFF, false, false ); // CANCEL

                AddButton( 160, 107, 0xFB7, 0xFB8, (int) Buttons.Recharge, GumpButtonType.Reply, 0 );
                AddHtmlLocalized( 195, 109, 120, 20, 1076197, 0x7FFF, false, false ); // Recharge
            }