using System.Collections; using Server.Gumps; using Server.Network; namespace Server.Engines.ConPVP { public class ReadyGump : Gump { private DuelContext m_Context; private int m_Count; private Mobile m_From; public ReadyGump(Mobile from, DuelContext context, int count) : base(50, 50) { m_From = from; m_Context = context; m_Count = count; ArrayList parts = context.Participants; int height = 25 + 20; for (int i = 0; i < parts.Count; ++i) { Participant p = (Participant)parts[i]; height += 4; if (p.Players.Length > 1) height += 22; height += p.Players.Length * 22; } height += 25; Closable = false; Dragable = false; AddPage(0); AddBackground(0, 0, 260, height, 9250); AddBackground(10, 10, 240, height - 20, 0xDAC); if (count == -1) { AddHtml(35, 25, 190, 20, Center("Ready"), false, false); } else { AddHtml(35, 25, 190, 20, Center("Starting"), false, false); AddHtml(35, 25, 190, 20, "