예제 #1
0
 public TailorBookTarget(TailorBook book) : base(18, false, TargetFlags.None)
 {
     m_Book = book;
 }
예제 #2
0
        public TailorBookGump(PlayerMobile from, TailorBook book) : base(25, 25)
        {
            m_From = from;
            m_Book = book;

            m_From.CloseGump(typeof(TailorBookGump));

            AddPage(0);

            AddBackground(50, 10, 655, 260, 5054);
            AddImageTiled(58, 20, 638, 241, 2624);
            AddAlphaRegion(58, 20, 638, 241);

            AddLabel(325, 25, 88, "Tailor Supplies");

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

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

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

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

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

            AddLabel(125, 200, 0x486, "Uncut Cloth");
            AddLabel(225, 200, 0x480, book.UncutCloth.ToString());
            AddButton(75, 200, 4005, 4007, 6, GumpButtonType.Reply, 0);

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

            AddLabel(325, 75, 0x486, "SpoolOfThread");
            AddLabel(425, 75, 0x480, book.SpoolOfThread.ToString());
            AddButton(275, 75, 4005, 4007, 8, GumpButtonType.Reply, 0);

            AddLabel(325, 100, 0x486, "LightYarn");
            AddLabel(425, 100, 0x480, book.LightYarn.ToString());
            AddButton(275, 100, 4005, 4007, 9, GumpButtonType.Reply, 0);

            AddLabel(325, 125, 0x486, "DarkYarn");
            AddLabel(425, 125, 0x480, book.DarkYarn.ToString());
            AddButton(275, 125, 4005, 4007, 10, GumpButtonType.Reply, 0);

            AddLabel(325, 150, 0x486, "Bone");
            AddLabel(425, 150, 0x480, book.Bone.ToString());
            AddButton(275, 150, 4005, 4007, 11, GumpButtonType.Reply, 0);

            AddLabel(325, 175, 0x486, "Flax");
            AddLabel(425, 175, 0x480, book.Flax.ToString());
            AddButton(275, 175, 4005, 4007, 12, GumpButtonType.Reply, 0);

            AddLabel(325, 200, 0x486, "Cotton");
            AddLabel(425, 200, 0x480, book.Cotton.ToString());
            AddButton(275, 200, 4005, 4007, 13, GumpButtonType.Reply, 0);

            AddLabel(325, 225, 0x486, "Wool");
            AddLabel(425, 225, 0x480, book.Wool.ToString());
            AddButton(275, 225, 4005, 4007, 14, GumpButtonType.Reply, 0);

            AddLabel(525, 75, 0x486, "LightYarn Unraveled");
            AddLabel(650, 75, 0x480, book.LightYarnUnraveled.ToString());
            AddButton(475, 75, 4005, 4007, 15, GumpButtonType.Reply, 0);

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

            AddLabel(525, 225, 88, "Add resource");
            AddButton(475, 225, 4005, 4007, 16, GumpButtonType.Reply, 0);
        }