public PVPGumpCreation(ScriptMobile from, PVPEvent pvpevent) : base("", 0, 0) { m_From = from; m_Pvpevent = pvpevent; from.CloseGump(typeof(PVPGumpCreation)); if (m_Pvpevent != null) { AddPage(0); TrouverNbLignes(); AddBackground(0, 0, 450, 100 + (NbLignes * scale), 5054); // Taille du background dépendant du nombre de lignes. SetEvent(); } }
public static void PVPDelete_OnCommand(CommandEventArgs e) { PVPEvent pvpevent_todelete = null; if (PVPEvent.m_InstancesList != null) { foreach (PVPEvent pvpevent in PVPEvent.m_InstancesList) { if (pvpevent.nom == e.Arguments[0]) { pvpevent_todelete = pvpevent; break; } } } if (pvpevent_todelete != null) { pvpevent_todelete.StopEvent(); } }
public PVPGumpPreparation(ScriptMobile from, PVPEvent pvpevent, List <ScriptMobile> list) : base("", 0, 0) { m_From = from; m_Pvpevent = pvpevent; m_List = list; m_From.CloseGump(typeof(PVPGumpPreparation)); AddBackground(0, 0, 400, 155, 5054); AddHtml(x, y + (line * scale), 300, 20, "<h3>Voulez vous rejoindre l'event " + m_Pvpevent.nom + " ? </h3>", false, false); line++; AddButton(x, y + (line * scale), 0xFAE, 0xFB0, 1, GumpButtonType.Reply, 0); AddHtml(x + 50, y + (line * scale), 150, 20, "<h3> Oui. </h3>", false, false); line++; AddButton(x, y + (line * scale), 0xFAE, 0xFB0, 2, GumpButtonType.Reply, 0); AddHtml(x + 50, y + (line * scale), 150, 20, "<h3> Non, j'ai peur ! </h3>", false, false); }
public PVPGumpCreation(ScriptMobile from, PVPStone stone) : this(from, PVPEvent.CreateEvent(from, stone)) { }