public InternalGump(Mobile from, BoiteAuLettreComponent item) : base(100, 100) { m_from = from; m_item = item; int upmargin = 90, num = 0; PlayerMobile rpm = (PlayerMobile)from; AddBackground(55, 60, 260, 320, 9200); AddLabel(120, 70, 0x26, "Gestion de la maison"); AddLabel(80, upmargin + num * 20, 0x00, string.Format("Prix : {0}", item.PrixLocation)); num++; if (m_item.Proprio == null) { AddButtonLabeled(80, upmargin + num * 20, 1, "Acheter la maison"); num++; } else if (item.MontrerProprio) { AddLabel(80, upmargin + num * 20, 0x00, string.Format("Proprietaire : {0}", item.NomProprio)); num++; if (m_from == item.Proprio) { AddButtonLabeled(80, upmargin + num * 20, 2, "Cacher votre nom"); num++; } } if (m_item.Proprio == from) { AddButtonLabeled(80, upmargin + num * 20, 3, "Changer votre nom"); num++; } num++; if (m_from == m_item.Proprio || m_from.AccessLevel > AccessLevel.Player || m_from == m_item.CoProprio[0] || m_from == m_item.CoProprio[1] || m_from == m_item.CoProprio[2]) { if (m_item.Proprio == m_from) { AddButtonLabeled(80, upmargin + num * 20, 4, "Ajouter Coproprietaire"); num++; } num++; for (int i = 0; i < 3; ++i) { AddImageTiled(80, upmargin + num * 20, 182, 23, 0x52); AddImageTiled(81, upmargin + num * 20 + 1, 180, 21, 0xBBC); if (m_item.CoProprio[i] != null) { AddLabelCropped(91, upmargin + num * 20 + 1, 180, 21, 0, m_item.CoProprio[i].GetNameUsedBy(rpm)); // rpm.FindName(m_item.CoProprio[i].Serial.Value)); if (m_item.Proprio == m_from) { AddButtonLabeledDel(270, upmargin + num * 20, 5 + i, ""); } } num++; } num++; if (m_item.Proprio == m_from) { AddButtonLabeled(80, upmargin + num * 20, 8, "Transferer la propriete"); } num++; if (m_item.Proprio == m_from) { AddButtonLabeled(80, upmargin + num * 20, 9, "Créer une clef : porte 1."); } num++; if (m_item.Proprio == m_from) { AddButtonLabeled(80, upmargin + num * 20, 10, "Créer une clef : porte 2."); } num++; num++; if (m_item.Proprio == m_from) { AddButtonLabeled(80, upmargin + num * 20, 11, "Cesser de payer."); } } }
public AddTargetChangeProprio(BoiteAuLettreComponent item) : base(3, false, TargetFlags.None) { m_item = item; }
public OwnerNamePrompt(BoiteAuLettreComponent boite) { m_Boite = boite; }