public ClaimListGump(StableStone trainer, Mobile from, ArrayList list) : base(50, 50)
            {
                m_Trainer = trainer;
                m_From    = from;
                m_List    = list;

                from.CloseGump(typeof(ClaimListGump));

                AddPage(0);

                AddBackground(0, 0, 325, 120 + (list.Count * 20), 9250);
                AddAlphaRegion(5, 5, 325, 120 + (list.Count * 20));

                AddHtml(15, 15, 275, 20, "<BASEFONT COLOR=#FFFFFF>Select a pet to retrieve from the stables:</BASEFONT>", false, false);

                for (int i = 0; i < list.Count; ++i)
                {
                    BaseCreature pet = list[i] as BaseCreature;

                    if (pet == null || pet.Deleted)
                    {
                        continue;
                    }
                    AddLabel(32, 35, 160, "Pet Name"); AddLabel(175, 35, 160, "Pet Bonded?");
                    AddLabel(32, 65 + (i * 20), 55, pet.Name);
                    AddLabel(175, 65 + (i * 20), 55, pet.IsBonded.ToString());
                    AddButton(15, 69 + (i * 20), 10006, 10006, i + 1, GumpButtonType.Reply, 0);
                    //		AddHtml( 32, 35 + (i * 20), 275, 18,  pet.Name, pet.Title , "Bonded? " , pet.IsBonded , false, false );
                }
            }
Exemple #2
0
            public ClaimListGump(StableStone trainer, Mobile from, ArrayList list) : base(50, 50)
            {
                m_Trainer = trainer;
                m_From    = from;
                m_List    = list;

                from.CloseGump(typeof(ClaimListGump));

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

                AddPage(0);
                AddImage(0, 0, 155);
                AddImage(300, 0, 155);
                AddImage(0, 300, 155);
                AddImage(300, 300, 155);
                AddImage(2, 2, 129);
                AddImage(298, 2, 129);
                AddImage(2, 298, 129);
                AddImage(298, 298, 129);
                AddImage(7, 8, 133);
                AddImage(218, 47, 132);
                AddImage(380, 8, 134);
                AddImage(164, 551, 140);
                AddImage(8, 517, 139);
                AddImage(269, 342, 147);
                AddHtml(174, 68, 200, 20, @"<BODY><BASEFONT Color=White><BIG>PETS IN THE STABLE</BIG></BASEFONT></BODY>", (bool)false, (bool)false);

                int y = 95;

                for (int i = 0; i < list.Count; ++i)
                {
                    BaseCreature pet = list[i] as BaseCreature;

                    if (pet == null || pet.Deleted)
                    {
                        continue;
                    }

                    y = y + 35;

                    AddHtml(145, y, 425, 20, @"<BODY><BASEFONT Color=#FCFF00><BIG>" + pet.Name + "</BIG></BASEFONT></BODY>", (bool)false, (bool)false);
                    AddButton(105, y, 4005, 4005, (i + 1), GumpButtonType.Reply, 0);
                }
            }
Exemple #3
0
            public ClaimListGump(StableStone trainer, Mobile from, List <BaseCreature> list) : base(50, 50)
            {
                m_Trainer = trainer;
                m_From    = from;
                m_List    = list;

                from.CloseGump(typeof(ClaimListGump));

                AddPage(0);

                AddBackground(0, 0, 325, 50 + (list.Count * 20), 9250);
                AddAlphaRegion(5, 5, 315, 40 + (list.Count * 20));

                AddHtml(
                    15,
                    15,
                    275,
                    20,
                    "<BASEFONT COLOR=#000008>Select a pet to retrieve from the stables:</BASEFONT>",
                    false,
                    false);

                for (var i = 0; i < list.Count; ++i)
                {
                    var pet = list[i];

                    if (pet == null || pet.Deleted)
                    {
                        continue;
                    }

                    AddButton(15, 39 + (i * 20), 10006, 10006, i + 1, GumpButtonType.Reply, 0);
                    AddHtml(
                        32,
                        35 + (i * 20),
                        275,
                        18,
                        String.Format("<BASEFONT COLOR=#C6C6EF>{0}</BASEFONT>", pet.Name),
                        false,
                        false);
                }
            }
Exemple #4
0
 public ClaimingGumpEntry(StableStone trainer, Mobile from) : base(6165, 3)
 {
     m_Trainer = trainer;
     m_From    = from;
 }
Exemple #5
0
 public ClaimListEntry(StableStone trainer, Mobile from) : base(6127, 2)
 {
     m_Trainer = trainer;
     m_From    = from;
 }
Exemple #6
0
 public StableEntry(StableStone trainer, Mobile from) : base(6126, 2)
 {
     m_Trainer = trainer;
     m_From    = from;
 }
Exemple #7
0
 public StableTarget(StableStone trainer) : base(12, false, TargetFlags.None)
 {
     m_Trainer = trainer;
 }