public ConfirmRewardGump( IComunityCollection collection, Point3D location, CollectionItem item, int hue ) : base() { m_Collection = collection; m_Location = location; m_Item = item; m_Hue = hue; if ( m_Item != null ) AddItem( 150, 100, m_Item.ItemID, m_Item.Hue ); }
public ComunityCollectionGump(PlayerMobile from, IComunityCollection collection, Point3D location, Section section, CollectionHuedItem item) : base(250, 50) { this.m_Owner = from; this.m_Collection = collection; this.m_Location = location; this.m_Section = section; this.m_Item = item; this.Closable = true; this.Disposable = true; this.Dragable = true; this.Resizable = false; this.AddPage(0); this.AddImage(0, 0, 0x1F40); this.AddImageTiled(20, 37, 300, 308, 0x1F42); this.AddImage(20, 325, 0x1F43); this.AddImage(35, 8, 0x39); this.AddImageTiled(65, 8, 257, 10, 0x3A); this.AddImage(290, 8, 0x3B); this.AddImage(32, 33, 0x2635); this.AddImageTiled(70, 55, 230, 2, 0x23C5); this.AddHtmlLocalized(70, 35, 270, 20, 1072835, 0x1, false, false); // Community Collection // add pages if (this.m_Collection == null) return; this.m_Index = 0; this.m_Page = 1; switch ( this.m_Section ) { case Section.Donates: this.GetMax(this.m_Collection.Donations); while (this.m_Collection.Donations != null && this.m_Index < this.m_Collection.Donations.Count) this.DisplayDonationPage(); break; case Section.Rewards: this.GetMax(this.m_Collection.Rewards); while (this.m_Collection.Rewards != null && this.m_Index < this.m_Collection.Rewards.Count) this.DisplayRewardPage(); break; case Section.Hues: while (this.m_Item != null && this.m_Index < this.m_Item.Hues.Length) this.DisplayHuePage(); break; } }
public ConfirmTransferPetGump( IComunityCollection collection, Point3D location, BaseCreature pet ) : base( 50, 50 ) { m_Collection = collection; m_Location = location; m_Pet = pet; Closable = true; Disposable = true; Dragable = true; Resizable = false; AddPage( 0 ); AddBackground( 0, 0, 270, 120, 0x13BE ); AddHtmlLocalized( 10, 10, 250, 75, 1073105, 0x0, true, false ); // <div align=center>Are you sure you wish to transfer this pet away, with no possibility of recovery?</div> AddHtmlLocalized( 55, 90, 75, 20, 1011011, 0x0, false, false ); // CONTINUE AddHtmlLocalized( 170, 90, 75, 20, 1011012, 0x0, false, false ); // CANCEL AddButton( 20, 90, 0xFA5, 0xFA7, (int) Buttons.Continue, GumpButtonType.Reply, 0 ); AddButton( 135, 90, 0xFA5, 0xFA7, (int) Buttons.Cancel, GumpButtonType.Reply, 0 ); }
public override void OnGiveReward(PlayerMobile to, IComunityCollection collection, int hue) { if (to.AddCollectionTitle(this.m_Title)) { if (this.m_Title is int) to.SendLocalizedMessage(1073625, "#" + (int)this.m_Title); // The title "~1_TITLE~" has been bestowed upon you. else if (this.m_Title is string) to.SendLocalizedMessage(1073625, (string)this.m_Title); // The title "~1_TITLE~" has been bestowed upon you. to.AddCollectionPoints(collection.CollectionID, (int)this.Points * -1); } else to.SendLocalizedMessage(1073626); // You already have that title! }
public virtual void OnGiveReward(PlayerMobile to, IComunityCollection collection, int hue) { }
public InternalPrompt(IComunityCollection collection, CollectionItem selected, Point3D location) { this.m_Collection = collection; this.m_Selected = selected; this.m_Location = location; }
public ComunityCollectionGump(PlayerMobile from, IComunityCollection collection, Point3D location, Section section) : this(from, collection, location, section, null) { }
public ComunityCollectionGump(PlayerMobile from, IComunityCollection collection, Point3D location) : this(from, collection, location, Section.Donates) { }
public CollectionDecayTimer(IComunityCollection collection, TimeSpan delay) : base(delay, TimeSpan.FromDays(1.0)) { this.m_Collection = collection; this.Priority = TimerPriority.OneMinute; }
public ConfirmRewardGump( IComunityCollection collection, Point3D location, CollectionItem item ) : this( collection, location, item, 0 ) { }
public virtual void OnGiveReward(PlayerMobile to, Item item, IComunityCollection collection, int hue) { }
public ConfirmRewardGump(IComunityCollection collection, Point3D location, CollectionItem item) : this(collection, location, item, 0) { }
public ComunityCollectionGump(PlayerMobile from, IComunityCollection collection, Point3D location, Section section, CollectionHuedItem item) : base(250, 50) { this.m_Owner = from; this.m_Collection = collection; this.m_Location = location; this.m_Section = section; this.m_Item = item; this.Closable = true; this.Disposable = true; this.Dragable = true; this.Resizable = false; this.AddPage(0); this.AddImage(0, 0, 0x1F40); this.AddImageTiled(20, 37, 300, 308, 0x1F42); this.AddImage(20, 325, 0x1F43); this.AddImage(35, 8, 0x39); this.AddImageTiled(65, 8, 257, 10, 0x3A); this.AddImage(290, 8, 0x3B); this.AddImage(32, 33, 0x2635); this.AddImageTiled(70, 55, 230, 2, 0x23C5); this.AddHtmlLocalized(70, 35, 270, 20, 1072835, 0x1, false, false); // Community Collection // add pages if (this.m_Collection == null) { return; } this.m_Index = 0; this.m_Page = 1; switch (this.m_Section) { case Section.Donates: this.GetMax(this.m_Collection.Donations); while (this.m_Collection.Donations != null && this.m_Index < this.m_Collection.Donations.Count) { this.DisplayDonationPage(); } break; case Section.Rewards: this.GetMax(this.m_Collection.Rewards); while (this.m_Collection.Rewards != null && this.m_Index < this.m_Collection.Rewards.Count) { this.DisplayRewardPage(); } break; case Section.Hues: while (this.m_Item != null && this.m_Index < this.m_Item.Hues.Length) { this.DisplayHuePage(); } break; } }