public GraniteBookTarget(GraniteBook book) : base(18, false, TargetFlags.None) { m_Book = book; }
public GraniteBookGump(PlayerMobile from, GraniteBook book) : base(25, 25) { m_From = from; m_Book = book; m_From.CloseGump(typeof(GraniteBookGump)); AddPage(0); AddBackground(50, 10, 455, 260, 5054); AddImageTiled(58, 20, 438, 241, 2624); AddAlphaRegion(58, 20, 438, 241); AddLabel(225, 25, 88, "Granite Book"); AddLabel(125, 50, 0x486, "Granite"); AddLabel(225, 50, 0x480, book.Granite.ToString()); AddButton(75, 50, 4005, 4007, 1, GumpButtonType.Reply, 0); AddLabel(125, 75, 0x486, "Dull Copper"); AddLabel(225, 75, 0x480, book.DullCopper.ToString()); AddButton(75, 75, 4005, 4007, 2, GumpButtonType.Reply, 0); AddLabel(125, 100, 0x486, "Shadow Iron"); AddLabel(225, 100, 0x480, book.ShadowIron.ToString()); AddButton(75, 100, 4005, 4007, 3, GumpButtonType.Reply, 0); AddLabel(125, 125, 0x486, "Copper"); AddLabel(225, 125, 0x480, book.Copper.ToString()); AddButton(75, 125, 4005, 4007, 4, GumpButtonType.Reply, 0); AddLabel(125, 150, 0x486, "Bronze"); AddLabel(225, 150, 0x480, book.Bronze.ToString()); AddButton(75, 150, 4005, 4007, 5, GumpButtonType.Reply, 0); AddLabel(125, 175, 0x486, "Gold"); AddLabel(225, 175, 0x480, book.Gold.ToString()); AddButton(75, 175, 4005, 4007, 6, GumpButtonType.Reply, 0); AddLabel(125, 200, 0x486, "Agapite"); AddLabel(225, 200, 0x480, book.Agapite.ToString()); AddButton(75, 200, 4005, 4007, 7, GumpButtonType.Reply, 0); AddLabel(125, 225, 0x486, "Verite"); AddLabel(225, 225, 0x480, book.Verite.ToString()); AddButton(75, 225, 4005, 4007, 8, GumpButtonType.Reply, 0); AddLabel(325, 50, 0x486, "Valorite"); AddLabel(425, 50, 0x480, book.Valorite.ToString()); AddButton(275, 50, 4005, 4007, 9, GumpButtonType.Reply, 0); AddLabel(325, 75, 0x486, "Sand"); AddLabel(425, 75, 0x480, book.Sand.ToString()); AddButton(275, 75, 4005, 4007, 10, GumpButtonType.Reply, 0); AddLabel(325, 200, 88, "Each Max:"); AddLabel(425, 200, 0x480, book.StorageLimit.ToString()); AddLabel(325, 225, 88, "Add Granite"); AddButton(275, 225, 4005, 4007, 11, GumpButtonType.Reply, 0); }