Exemple #1
0
        public LumberBookGump(PlayerMobile from, LumberBook book) : base(25, 25)
        {
            m_From = from;
            m_Book = book;

            m_From.CloseGump(typeof(LumberBookGump));

            AddPage(0);

            AddBackground(50, 10, 255, 260, 5054);
            AddImageTiled(58, 20, 238, 241, 2624);
            AddAlphaRegion(58, 20, 238, 241);

            AddLabel(125, 25, 88, "Lumber Book");

            AddLabel(125, 50, 0x486, "Log");
            AddLabel(225, 50, 0x480, book.Log.ToString());
            AddButton(75, 50, 4005, 4007, 1, GumpButtonType.Reply, 0);

            AddLabel(125, 75, 0x486, "Arrow");
            AddLabel(225, 75, 0x480, book.Arrow.ToString());
            AddButton(75, 75, 4005, 4007, 2, GumpButtonType.Reply, 0);

            AddLabel(125, 100, 0x486, "Bolt");
            AddLabel(225, 100, 0x480, book.Bolt.ToString());
            AddButton(75, 100, 4005, 4007, 3, GumpButtonType.Reply, 0);

            AddLabel(125, 125, 0x486, "Feather");
            AddLabel(225, 125, 0x480, book.Feather.ToString());
            AddButton(75, 125, 4005, 4007, 4, GumpButtonType.Reply, 0);

            AddLabel(125, 150, 0x486, "Shaft");
            AddLabel(225, 150, 0x480, book.Shaft.ToString());
            AddButton(75, 150, 4005, 4007, 5, GumpButtonType.Reply, 0);

            AddLabel(125, 200, 88, "Each Max:");
            AddLabel(225, 200, 0x480, book.StorageLimit.ToString());

            AddLabel(125, 225, 88, "Add resource");
            AddButton(75, 225, 4005, 4007, 6, GumpButtonType.Reply, 0);
        }
Exemple #2
0
 public LumberBookTarget(LumberBook book) : base(18, false, TargetFlags.None)
 {
     m_Book = book;
 }