コード例 #1
0
            public InternalGump(FourShipCannonAddon 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
            }
コード例 #2
0
 public InternalTarget(FourShipCannonAddon cannon) : base(12, true, TargetFlags.None)
 {
     m_Cannon = cannon;
 }