public SuppressionGump(Tresorier t, Employe e) : base(0, 0) { employe = e; tresorier = t; this.Closable = true; this.Disposable = true; this.Dragable = true; this.Resizable = false; AddPage(0); AddBackground(31, 48, 716, 228, 9250); AddBackground(39, 56, 700, 212, 3500); AddLabel(326, 75, 1301, @"Suppression d'Employé"); AddLabel(60, 110, 1301, @"Que voulez vous faire avec la fiche d'employé de " + employe.Nom + "?"); AddLabel(81, 140, 1301, @"Supprimer la fiche mais laisser l'employé récupérer son dû (sans lui verser un montant additionel)."); AddButton(683, 139, 4005, 4006, 1, GumpButtonType.Reply, 0); AddLabel(81, 170, 1301, @"Payer l'employé et le laisser récupérer son dû et supprimer sa fiche."); AddButton(683, 169, 4005, 4006, 2, GumpButtonType.Reply, 0); AddLabel(82, 200, 1301, @"Reprendre son dû dans nos coffre et supprimer sa fiche"); AddButton(683, 199, 4005, 4006, 3, GumpButtonType.Reply, 0); AddLabel(82, 230, 1301, @"Ne rien faire"); AddButton(683, 229, 4029, 4030, 0, GumpButtonType.Reply, 0); }
public PaieEmployePrompt(Tresorier t, Mobile e, string nom, string titre) { tresorier = t; employe = e; nomEmploye = nom; titreEmploye = titre; }
public PaiementTimer(Tresorier t, TimeSpan delay) : base(delay) { tresorier = t; Priority = TimerPriority.OneMinute; }
protected override void OnTarget(Mobile from, object targeted) { IPoint3D p = targeted as IPoint3D; if (p != null) { Tresorier t = new Tresorier(tresorier, parent, new Point3D(p)); parent.AjouterTresorier(t); Geopolitique.journal.AjouterEntry(new CreerTresorierEntry(from, t)); from.SendGump(new TresorierGump(t, from, 0)); } }
public Terre(Categorie parent, XmlElement node) { m_Parent = parent; m_Rentes = new List <Rente>(); m_Tresoriers = new List <Tresorier>(); m_Nom = Utility.GetText(node["nom"], null); m_Type = Utility.GetXMLInt32(Utility.GetText(node["type"], "-1"), -1); m_Fonds = Utility.GetXMLInt32(Utility.GetText(node["fonds"], "0"), 0); foreach (XmlElement ele in node.GetElementsByTagName("rente")) { m_Rentes.Add(new Rente(ele)); } foreach (XmlElement ele in node.GetElementsByTagName("tresorier")) { int serial = Utility.GetXMLInt32(Utility.GetText(ele, "0"), 0); Tresorier t = (Tresorier)World.FindMobile(serial); if (t != null) { m_Tresoriers.Add(t); t.Terre = this; } } m_LastPaiement = Utility.GetXMLDateTime(Utility.GetText(node["lastpaiement"], ""), DateTime.Now); DateTime thismonth = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1); if (m_LastPaiement < thismonth) { PayerRente(); } TimerProchaineRente(); }
public ModifierFondsPrompt(Tresorier t, bool ajout) { this.t = t; this.ajout = ajout; }
public ModifierNomPrompt(Tresorier t) { this.t = t; }
public NomGestionnairePrompt(Tresorier t, Mobile gest) { tresorier = t; gestionnaire = gest; }
public TresorierGump(Tresorier tr, Mobile from, int page) : base(0, 0) { tresorier = tr; this.page = page; this.Closable = true; this.Disposable = true; this.Dragable = true; this.Resizable = false; AddPage(0); if (from.AccessLevel > AccessLevel.Player) { AddBackground(31, 48, 416, 520, 9250); AddBackground(39, 56, 400, 504, 3500); if (tr.Terre == null) { AddLabel(175, 485, 1301, @"Attacher à une terre"); AddButton(330, 484, 4017, 4018, (int)Buttons.AttacherTerre, GumpButtonType.Reply, 0); } else { AddLabel(207, 485, 1301, @"Afficher la terre"); AddButton(330, 484, 4005, 4006, (int)Buttons.AfficherTerre, GumpButtonType.Reply, 0); } AddLabel(99, 515, 1301, @"Afficher le journal des événements"); AddButton(330, 514, 4011, 4012, (int)Buttons.AfficherJournal, GumpButtonType.Reply, 0); } else { if (tresorier[from] != null) { AddBackground(31, 48, 416, 520, 9250); AddBackground(39, 56, 400, 504, 3500); AddLabel(150, 485, 1301, @"Afficher sa fiche d'employé"); AddButton(330, 484, 4011, 4012, (int)Buttons.AfficherFiche, GumpButtonType.Reply, 0); AddLabel(99, 515, 1301, @"Afficher le journal des événements"); AddButton(330, 514, 4011, 4012, (int)Buttons.AfficherJournal, GumpButtonType.Reply, 0); } else { AddBackground(31, 48, 416, 490, 9250); AddBackground(39, 56, 400, 474, 3500); AddLabel(99, 485, 1301, @"Afficher le journal des événements"); AddButton(330, 484, 4011, 4012, (int)Buttons.AfficherJournal, GumpButtonType.Reply, 0); } } AddLabel(206, 75, 1301, @"Trésorier"); AddLabel(81, 110, 1301, @"Etablissement :"); AddLabel(210, 110, 1301, tresorier.Etablissement); AddButton(383, 109, 4005, 4006, (int)Buttons.ChangerNom, GumpButtonType.Reply, 0); AddLabel(81, 140, 1301, @"Gestionnaire :"); AddLabel(210, 140, 1301, tresorier.NomGestionnaire); AddButton(383, 139, 4005, 4006, (int)Buttons.ChangerGestionnaire, GumpButtonType.Reply, 0); AddLabel(81, 170, 1301, @"Fonds :"); AddLabel(210, 170, 1301, tresorier.Fonds.ToString("N", Geopolitique.NFI)); AddButton(343, 169, 4014, 4015, (int)Buttons.RetirerFonds, GumpButtonType.Reply, 0); AddButton(383, 169, 4005, 4006, (int)Buttons.AjouterFonds, GumpButtonType.Reply, 0); if (tresorier.Terre != null && tresorier.Terre.TresorierCount > 1) { AddLabel(68, 200, 1301, @"Fonds partagés pour la terre de " + tresorier.Terre.Nom); } AddLabel(82, 240, 1301, @"Employés :"); int basey = 271; for (int i = 0; i < tresorier.EmployeCount; i++) { if (tresorier[i].Removed) { continue; } if (i >= (page + 1) * 5) { break; } if (i < page * 5) { continue; } int j = i % 5; AddLabel(60, basey + j * 30, 1301, tresorier[i].Nom); AddLabel(200, basey + j * 30, 1301, tresorier[i].Titre); AddLabel(303, basey + j * 30, 1301, tresorier[i].Paie.ToString("N", Geopolitique.NFI)); AddButton(387, basey + j * 30 - 1, 4005, 4006, 100 + i, GumpButtonType.Reply, 0); } if ((page + 1) * 5 < tresorier.EmployeCount) { AddButton(402, 418, 5601, 5605, (int)Buttons.NextPage, GumpButtonType.Reply, 0); } if (page > 0) { AddButton(61, 418, 5603, 5607, (int)Buttons.PreviousPage, GumpButtonType.Reply, 0); } AddButton(293, 439, 4005, 4006, (int)Buttons.AjouterEmploye, GumpButtonType.Reply, 0); AddLabel(148, 440, 1301, @"Ajouter un employé"); AddImageTiled(67, 471, 342, 3, 96); AddImage(61, 462, 95); AddImage(408, 462, 97); }
public ChangerTitrePrompt(Tresorier t, Employe e) { employe = e; tresorier = t; }
public void RetirerTresorier(Tresorier t) { m_Tresoriers.Remove(t); }
public ReclamerDuPrompt(Tresorier t, Employe e) { this.t = t; this.e = e; }
public ModifierPaiePrompt(Tresorier t, Employe e) { employe = e; tresorier = t; }
public ModifierFondsPrompt(Tresorier t, Employe e, bool ajout) { this.t = t; this.e = e; this.ajout = ajout; }
public NomEmployePrompt(Tresorier t, Mobile e) { tresorier = t; employe = e; }
public TitreEmployePrompt(Tresorier t, Mobile e, string nom) { tresorier = t; employe = e; nomEmploye = nom; }
public void AjouterTresorier(Tresorier t) { m_Tresoriers.Add(t); }
public AttacherTerreGump(Tresorier tr, Categorie ct, int page) : base(0, 0) { tresorier = tr; cat = ct; this.page = page; this.Closable = true; this.Disposable = true; this.Dragable = true; this.Resizable = false; AddPage(0); AddBackground(31, 48, 416, 440, 9250); AddBackground(39, 56, 400, 424, 3500); AddLabel(174, 75, 1301, cat.Nom == "" ? @"Rentes et Géopolitique" : cat.Nom); if (cat.Parent != null) { AddButton(72, 99, 4014, 4015, (int)Buttons.MenuPrecedent, GumpButtonType.Reply, 0); AddLabel(108, 100, 1301, @"Menu Précédent"); } int maxpages = (cat.CategoriesCount + cat.TerresCount) / 10; int i = -1; int basey = 123; int offset = 0; foreach (Categorie c in cat.Categories()) { i++; if (i < page * 10) { continue; } if ((page + 1) * 10 < i) { break; } AddLabel(86, basey + offset * 30 + 1, 1301, c.Nom); AddButton(354, basey + offset * 30, 4005, 4006, 100 + i, GumpButtonType.Reply, 0); offset = (offset + 1) % 10; } if (i == -1) { i = 0; } int j = -1; foreach (Terre t in cat.Terres()) { j++; if (i + j < page * 10) { continue; } if ((page + 1) * 10 < i + j) { break; } AddLabel(86, basey + offset * 30 + 1, 1301, t.Nom); AddButton(354, basey + offset * 30, 4011, 4012, 200 + j, GumpButtonType.Reply, 0); offset = (offset + 1) % 10; } if (page < maxpages) { AddButton(402, 418, 5601, 5605, (int)Buttons.NextPage, GumpButtonType.Reply, 0); } if (page > 0) { AddButton(59, 418, 5603, 5607, (int)Buttons.PreviousPage, GumpButtonType.Reply, 0); } }
public EmployeGump(Tresorier t, Employe e, bool gestion) : base(0, 0) { employe = e; tresorier = t; this.gestion = gestion; this.Closable = true; this.Disposable = true; this.Dragable = true; this.Resizable = false; AddPage(0); AddBackground(31, 48, 416, 298, 9250); AddBackground(39, 56, 400, 282, 3500); AddLabel(176, 75, 1301, @"Fiche d'Employé"); AddLabel(81, 110, 1301, @"Nom :"); AddLabel(210, 110, 1301, e.Nom); if (gestion) { AddButton(383, 109, 4005, 4006, (int)Buttons.ChangerNom, GumpButtonType.Reply, 0); } AddLabel(81, 140, 1301, @"Titre :"); AddLabel(210, 140, 1301, e.Titre); if (gestion) { AddButton(383, 139, 4005, 4006, (int)Buttons.ChangerTitre, GumpButtonType.Reply, 0); } AddLabel(81, 170, 1301, @"Paie mensuelle :"); AddLabel(210, 170, 1301, e.Paie.ToString("N", Geopolitique.NFI)); if (gestion) { AddButton(383, 169, 4005, 4006, (int)Buttons.ModifierPaie, GumpButtonType.Reply, 0); } AddLabel(82, 200, 1301, @"Dû non réclamé :"); AddLabel(210, 200, 1301, e.Total.ToString("N", Geopolitique.NFI)); if (gestion) { AddButton(343, 199, 4014, 4015, (int)Buttons.ReduireDu, GumpButtonType.Reply, 0); AddButton(383, 199, 4005, 4006, (int)Buttons.AjouterDu, GumpButtonType.Reply, 0); } else { AddButton(383, 199, 4029, 4030, (int)Buttons.ReclamerDu, GumpButtonType.Reply, 0); } AddLabel(82, 230, 1301, @"Dû non payé :"); AddLabel(210, 230, 1301, e.NonPaye.ToString("N", Geopolitique.NFI)); if (gestion) { AddButton(383, 229, 4029, 4030, (int)Buttons.PayerDu, GumpButtonType.Reply, 0); } AddLabel(82, 260, 1301, @"Dernière paie :"); AddLabel(210, 260, 1301, e.LastPaie.ToString(CultureInfo.CreateSpecificCulture("fr-FR"))); if (gestion) { AddLabel(116, 290, 1301, @"Supprimer l'employé de la liste"); AddButton(314, 289, 4005, 4006, (int)Buttons.SupprimerEmploye, GumpButtonType.Reply, 0); } }