public override void GetProperties(ObjectPropertyList list) { base.GetProperties(list); list.Add(1060655); // large bulk order if (this.m_RequireExceptional) { list.Add(1045141); // All items must be exceptional. } // if (this.m_Material != BulkMaterialType.None) // list.Add(SmallBODGump.GetMaterialNumberFor(this.m_Material)); // All items must be made with x material. //daat99 OWLTR start - custom resource if (m_Material != BulkMaterialType.None) { list.Add("All items must be crafted with " + LargeBODGump.GetMaterialStringFor(m_Material)); // All items must be made with x material. } //daat99 OWLTR end - custom resource. list.Add(1060656, this.m_AmountMax.ToString()); // amount to make: ~1_val~ for (int i = 0; i < this.m_Entries.Length; ++i) { list.Add(1060658 + i, "#{0}\t{1}", this.m_Entries[i].Details.Number, this.m_Entries[i].Amount); // ~1_val~: ~2_val~ } }
public override void GetProperties(ObjectPropertyList list) { base.GetProperties(list); list.Add(1060654); // small bulk order if (this.m_RequireExceptional) { list.Add(1045141); // All items must be exceptional. } if (this.m_Material != BulkMaterialType.None) { //daat99 OWLTR start - custom resource list.Add("All items must be crafted with " + LargeBODGump.GetMaterialStringFor(Material)); } //daat99 OWLTR end - custom resource list.Add(1060656, this.m_AmountMax.ToString()); // amount to make: ~1_val~ list.Add(1060658, "#{0}\t{1}", this.m_Number, this.m_AmountCur); // ~1_val~: ~2_val~ }
public SmallBODAcceptGump(Mobile from, SmallBOD deed) : base(50, 50) { this.m_From = from; this.m_Deed = deed; this.m_From.CloseGump(typeof(LargeBODAcceptGump)); this.m_From.CloseGump(typeof(SmallBODAcceptGump)); this.AddPage(0); this.AddBackground(25, 10, 430, 264, 5054); this.AddImageTiled(33, 20, 413, 245, 2624); this.AddAlphaRegion(33, 20, 413, 245); this.AddImage(20, 5, 10460); this.AddImage(430, 5, 10460); this.AddImage(20, 249, 10460); this.AddImage(430, 249, 10460); this.AddHtmlLocalized(190, 25, 120, 20, 1045133, 0x7FFF, false, false); // A bulk order this.AddHtmlLocalized(40, 48, 350, 20, 1045135, 0x7FFF, false, false); // Ah! Thanks for the goods! Would you help me out? this.AddHtmlLocalized(40, 72, 210, 20, 1045138, 0x7FFF, false, false); // Amount to make: this.AddLabel(250, 72, 1152, deed.AmountMax.ToString()); this.AddHtmlLocalized(40, 96, 120, 20, 1045136, 0x7FFF, false, false); // Item requested: this.AddItem(385, 96, deed.Graphic); this.AddHtmlLocalized(40, 120, 210, 20, deed.Number, 0xFFFFFF, false, false); if (deed.RequireExceptional || deed.Material != BulkMaterialType.None) { this.AddHtmlLocalized(40, 144, 210, 20, 1045140, 0x7FFF, false, false); // Special requirements to meet: if (deed.RequireExceptional) { this.AddHtmlLocalized(40, 168, 350, 20, 1045141, 0x7FFF, false, false); // All items must beexceptional. } if (deed.Material != BulkMaterialType.None) { //daat99 OWLTR start - custom resources AddHtml(40, deed.RequireExceptional ? 192 : 168, 350, 25, "<basefont color=#FF0000>All items must be crafted with " + LargeBODGump.GetMaterialStringFor(deed.Material), false, false); } //daat99 OWLTR end - cusotom resources } this.AddHtmlLocalized(40, 216, 350, 20, 1045139, 0x7FFF, false, false); // Do you want to accept this order? this.AddButton(100, 240, 4005, 4007, 1, GumpButtonType.Reply, 0); this.AddHtmlLocalized(135, 240, 120, 20, 1006044, 0x7FFF, false, false); // Ok this.AddButton(275, 240, 4005, 4007, 0, GumpButtonType.Reply, 0); this.AddHtmlLocalized(310, 240, 120, 20, 1011012, 0x7FFF, false, false); // CANCEL }
public SmallBODGump(Mobile from, SmallBOD deed) : base(25, 25) { this.m_From = from; this.m_Deed = deed; this.m_From.CloseGump(typeof(LargeBODGump)); this.m_From.CloseGump(typeof(SmallBODGump)); this.AddPage(0); this.AddBackground(50, 10, 455, 260, 5054); this.AddImageTiled(58, 20, 438, 241, 2624); this.AddAlphaRegion(58, 20, 438, 241); this.AddImage(45, 5, 10460); this.AddImage(480, 5, 10460); this.AddImage(45, 245, 10460); this.AddImage(480, 245, 10460); this.AddHtmlLocalized(225, 25, 120, 20, 1045133, 0x7FFF, false, false); // A bulk order this.AddHtmlLocalized(75, 48, 250, 20, 1045138, 0x7FFF, false, false); // Amount to make: this.AddLabel(275, 48, 1152, deed.AmountMax.ToString()); this.AddHtmlLocalized(275, 76, 200, 20, 1045153, 0x7FFF, false, false); // Amount finished: this.AddHtmlLocalized(75, 72, 120, 20, 1045136, 0x7FFF, false, false); // Item requested: this.AddItem(410, 72, deed.Graphic); this.AddHtmlLocalized(75, 96, 210, 20, deed.Number, 0x7FFF, false, false); this.AddLabel(275, 96, 0x480, deed.AmountCur.ToString()); if (deed.RequireExceptional || deed.Material != BulkMaterialType.None) { this.AddHtmlLocalized(75, 120, 200, 20, 1045140, 0x7FFF, false, false); // Special requirements to meet: } if (deed.RequireExceptional) { this.AddHtmlLocalized(75, 144, 300, 20, 1045141, 0x7FFF, false, false); // All items must be exceptional. } if (deed.Material != BulkMaterialType.None) { //daat99 OWLTR start - custom resources AddHtml(75, deed.RequireExceptional ? 168 : 144, 400, 25, "<basefont color=#FF0000>All items must be crafted with " + LargeBODGump.GetMaterialStringFor(deed.Material), false, false); } //daat99 OWLTR end - custom resources this.AddButton(125, 192, 4005, 4007, 2, GumpButtonType.Reply, 0); this.AddHtmlLocalized(160, 192, 300, 20, 1045154, 0x7FFF, false, false); // Combine this deed with the item requested. this.AddButton(125, 216, 4005, 4007, 1, GumpButtonType.Reply, 0); this.AddHtmlLocalized(160, 216, 120, 20, 1011441, 0x7FFF, false, false); // EXIT }
public LargeBODAcceptGump(Mobile from, LargeBOD deed) : base(50, 50) { this.m_From = from; this.m_Deed = deed; this.m_From.CloseGump(typeof(LargeBODAcceptGump)); this.m_From.CloseGump(typeof(SmallBODAcceptGump)); LargeBulkEntry[] entries = deed.Entries; this.AddPage(0); this.AddBackground(25, 10, 430, 240 + (entries.Length * 24), 5054); this.AddImageTiled(33, 20, 413, 221 + (entries.Length * 24), 2624); this.AddAlphaRegion(33, 20, 413, 221 + (entries.Length * 24)); this.AddImage(20, 5, 10460); this.AddImage(430, 5, 10460); this.AddImage(20, 225 + (entries.Length * 24), 10460); this.AddImage(430, 225 + (entries.Length * 24), 10460); this.AddHtmlLocalized(180, 25, 120, 20, 1045134, 0x7FFF, false, false); // A large bulk order this.AddHtmlLocalized(40, 48, 350, 20, 1045135, 0x7FFF, false, false); // Ah! Thanks for the goods! Would you help me out? this.AddHtmlLocalized(40, 72, 210, 20, 1045138, 0x7FFF, false, false); // Amount to make: this.AddLabel(250, 72, 1152, deed.AmountMax.ToString()); this.AddHtmlLocalized(40, 96, 120, 20, 1045137, 0x7FFF, false, false); // Items requested: int y = 120; for (int i = 0; i < entries.Length; ++i, y += 24) { this.AddHtmlLocalized(40, y, 210, 20, entries[i].Details.Number, 0x7FFF, false, false); } if (deed.RequireExceptional || deed.Material != BulkMaterialType.None) { this.AddHtmlLocalized(40, y, 210, 20, 1045140, 0x7FFF, false, false); // Special requirements to meet: y += 24; if (deed.RequireExceptional) { this.AddHtmlLocalized(40, y, 350, 20, 1045141, 0x7FFF, false, false); // All items must be exceptional. y += 24; } if (deed.Material != BulkMaterialType.None) { //daat99 OWLTR start - custom resource AddHtml(40, y, 350, 25, "<basefont color=#FF0000>All items must be crafted with " + LargeBODGump.GetMaterialStringFor(deed.Material), false, false); //daat99 OWLTR end - custom resource y += 24; } } this.AddHtmlLocalized(40, 192 + (entries.Length * 24), 350, 20, 1045139, 0x7FFF, false, false); // Do you want to accept this order? this.AddButton(100, 216 + (entries.Length * 24), 4005, 4007, 1, GumpButtonType.Reply, 0); this.AddHtmlLocalized(135, 216 + (entries.Length * 24), 120, 20, 1006044, 0x7FFF, false, false); // Ok this.AddButton(275, 216 + (entries.Length * 24), 4005, 4007, 0, GumpButtonType.Reply, 0); this.AddHtmlLocalized(310, 216 + (entries.Length * 24), 120, 20, 1011012, 0x7FFF, false, false); // CANCEL }
public SmallBODGump(Mobile from, SmallBOD deed) : base(25, 25) { this.m_From = from; this.m_Deed = deed; this.m_From.CloseGump(typeof(LargeBODGump)); this.m_From.CloseGump(typeof(SmallBODGump)); this.AddPage(0); int height = 0; if (BulkOrderSystem.NewSystemEnabled) { if (deed.RequireExceptional || deed.Material != BulkMaterialType.None) { height += 24; } if (deed.RequireExceptional) { height += 24; } if (deed.Material != BulkMaterialType.None) { height += 24; } } this.AddBackground(50, 10, 455, 245 + height, 5054); this.AddImageTiled(58, 20, 438, 226 + height, 2624); this.AddAlphaRegion(58, 20, 438, 226 + height); this.AddImage(45, 5, 10460); this.AddImage(480, 5, 10460); this.AddImage(45, 230 + height, 10460); this.AddImage(480, 230 + height, 10460); this.AddHtmlLocalized(225, 25, 120, 20, 1045133, 0x7FFF, false, false); // A bulk order this.AddHtmlLocalized(75, 48, 250, 20, 1045138, 0x7FFF, false, false); // Amount to make: this.AddLabel(275, 48, 1152, deed.AmountMax.ToString()); this.AddHtmlLocalized(275, 76, 200, 20, 1045153, 0x7FFF, false, false); // Amount finished: this.AddHtmlLocalized(75, 72, 120, 20, 1045136, 0x7FFF, false, false); // Item requested: this.AddItem(410, 72, deed.Graphic, deed.GraphicHue); this.AddHtmlLocalized(75, 96, 210, 20, deed.Number, 0x7FFF, false, false); this.AddLabel(275, 96, 0x480, deed.AmountCur.ToString()); int y = 120; if (deed.RequireExceptional || deed.Material != BulkMaterialType.None) { this.AddHtmlLocalized(75, y, 200, 20, 1045140, 0x7FFF, false, false); // Special requirements to meet: y += 24; } if (deed.RequireExceptional) { this.AddHtmlLocalized(75, y, 300, 20, 1045141, 0x7FFF, false, false); // All items must be exceptional. y += 24; } if (deed.Material != BulkMaterialType.None) { //this.AddHtmlLocalized(75, y, 300, 20, GetMaterialNumberFor(deed.Material), 0x7FFF, false, false); // All items must be made with x material. //daat99 OWLTR start - custom resources AddHtml(75, deed.RequireExceptional ? 168 : 144, 400, 25, "<basefont color=#FF0000>All items must be crafted with " + LargeBODGump.GetMaterialStringFor(deed.Material), false, false); //daat99 OWLTR end - custom resources y += 24; } if (from is PlayerMobile && BulkOrderSystem.NewSystemEnabled) { BODContext c = BulkOrderSystem.GetContext((PlayerMobile)from); int points = 0; double banked = 0.0; BulkOrderSystem.ComputePoints(deed, out points, out banked); AddHtmlLocalized(75, y, 300, 20, 1157301, String.Format("{0}\t{1}", points, banked.ToString("0.000000")), 0x7FFF, false, false); // Worth ~1_POINTS~ turn in points and ~2_POINTS~ bank points. y += 24; AddButton(125, y, 4005, 4007, 3, GumpButtonType.Reply, 0); AddHtmlLocalized(160, y, 300, 20, c.PointsMode == PointsMode.Enabled ? 1157302 : c.PointsMode == PointsMode.Disabled ? 1157303 : 1157309, 0x7FFF, false, false); // Banking Points Enabled/Disabled/Automatic y += 24; AddButton(125, y, 4005, 4007, 2, GumpButtonType.Reply, 0); AddHtmlLocalized(160, y, 300, 20, 1045154, 0x7FFF, false, false); // Combine this deed with the item requested. y += 24; this.AddButton(125, y, 4005, 4007, 4, GumpButtonType.Reply, 0); this.AddHtmlLocalized(160, y, 300, 20, 1157304, 0x7FFF, false, false); // Combine this deed with contained items. y += 24; } else { this.AddButton(125, y, 4005, 4007, 2, GumpButtonType.Reply, 0); this.AddHtmlLocalized(160, y, 300, 20, 1045154, 0x7FFF, false, false); // Combine this deed with the item requested. y += 24; } this.AddButton(125, y, 4005, 4007, 1, GumpButtonType.Reply, 0); this.AddHtmlLocalized(160, y, 120, 20, 1011441, 0x7FFF, false, false); // EXIT }