using Server.Mobiles; using Server.Network; namespace Server.Gumps { public class ConfirmReleaseGump : Gump { private readonly Mobile m_From; private readonly BaseCreature m_Pet; public ConfirmReleaseGump(Mobile from, BaseCreature pet) : base(50, 50) { m_From = from; m_Pet = pet; m_From.CloseGump(typeof(ConfirmReleaseGump)); AddPage(0); if (pet.Alive) { AddBackground(0, 0, 270, 120, 5054); AddBackground(10, 10, 250, 100, 3000); AddHtmlLocalized(20, 15, 230, 60, 1046257, true, true); // Are you sure you want to release your pet? Summoned Pets will vanish permanently! AddButton(20, 80, 4005, 4007, 2, GumpButtonType.Reply, 0); AddHtmlLocalized(55, 80, 75, 20, 1011011, false, false); // CONTINUE AddButton(135, 80, 4005, 4007, 1, GumpButtonType.Reply, 0); AddHtmlLocalized(170, 80, 75, 20, 1011012, false, false); // CANCEL } else { AddBackground(0, 0, 270, 120, 0x13BE); AddHtmlLocalized(10, 10, 250, 75, 1049669, true, false); //