public ScaleBookGump(PlayerMobile from, ScaleBook book) : base(25, 25) { m_From = from; m_Book = book; m_From.CloseGump(typeof(ScaleBookGump)); AddPage(0); AddBackground(50, 10, 255, 260, 5054); AddImageTiled(58, 20, 238, 241, 2624); AddAlphaRegion(58, 20, 238, 241); AddLabel(125, 25, 88, "Book of Scales"); AddLabel(125, 75, 0x486, "Red Scales"); AddLabel(225, 75, 0x480, book.Red.ToString()); AddButton(75, 75, 4005, 4007, 1, GumpButtonType.Reply, 0); AddLabel(125, 100, 0x486, "Yellow Scales"); AddLabel(225, 100, 0x480, book.Yellow.ToString()); AddButton(75, 100, 4005, 4007, 2, GumpButtonType.Reply, 0); AddLabel(125, 125, 0x486, "Black Scales"); AddLabel(225, 125, 0x480, book.Black.ToString()); AddButton(75, 125, 4005, 4007, 3, GumpButtonType.Reply, 0); AddLabel(125, 150, 0x486, "Green Scales"); AddLabel(225, 150, 0x480, book.Green.ToString()); AddButton(75, 150, 4005, 4007, 4, GumpButtonType.Reply, 0); AddLabel(125, 175, 0x486, "White Scales"); AddLabel(225, 175, 0x480, book.White.ToString()); AddButton(75, 175, 4005, 4007, 5, GumpButtonType.Reply, 0); AddLabel(125, 200, 88, "Each Max:"); AddLabel(225, 200, 0x480, book.StorageLimit.ToString()); AddLabel(125, 225, 88, "Add Scale"); AddButton(75, 225, 4005, 4007, 6, GumpButtonType.Reply, 0); }
public ScaleBookTarget(ScaleBook book) : base(18, false, TargetFlags.None) { m_Book = book; }