public ResourceStorageKeyTailorGump(PlayerMobile from, ResourceStorageKeyTailor key)
            : base(25, 25)
        {
            m_From = from;
            m_Key = key;

            m_From.CloseGump(typeof(ResourceStorageKeyTailorGump));

            AddPage(0);

            AddBackground(50, 10, 455, 450, 5054);
            AddImageTiled(60, 20, 435, 430, 2624);
            AddAlphaRegion(60, 20, 435, 430);

            AddLabel(110, 25, 88, "Tailor's Warehouse (Caution: color cloth will lose hue)");
            AddLabel(125, 50, 0x486, "Withdraw Increment: ");
	    AddLabel(275, 50, 0x480, key.WithdrawIncrement.ToString());
	    AddButton(330, 50, 4011, 4012, 32, GumpButtonType.Reply, 0); 
	    AddButton(360, 50, 4011, 4012, 33, GumpButtonType.Reply, 0);
	    AddButton(390, 50, 4011, 4012, 34, GumpButtonType.Reply, 0);

            AddLabel(125, 75, 0x486, "Leather");
            AddLabel(225, 75, 0x480, key.Leather.ToString());
            AddButton(75, 75, 4005, 4007, (m_Key.Leather <= 0) ? 999 : 1, GumpButtonType.Reply, 0);

            AddLabel(125, 100, 0x486, "Spined Leather");
            AddLabel(225, 100, 0x480, key.Spined.ToString());
            AddButton(75, 100, 4005, 4007, (m_Key.Spined <= 0) ? 999 : 2, GumpButtonType.Reply, 0);

            AddLabel(125, 125, 0x486, "Horned Leather");
            AddLabel(225, 125, 0x480, key.Horned.ToString());
            AddButton(75, 125, 4005, 4007, (m_Key.Horned <= 0) ? 999 : 3, GumpButtonType.Reply, 0);

            AddLabel(125, 150, 0x486, "Barbed Leather");
            AddLabel(225, 150, 0x480, key.Barbed.ToString());
            AddButton(75, 150, 4005, 4007, (m_Key.Barbed <= 0) ? 999 : 4, GumpButtonType.Reply, 0);

//            AddLabel(325, 75, 0x486, "Red Scales");
//            AddLabel(425, 75, 0x480, key.RedScales.ToString());
//            AddButton(275, 75, 4005, 4007, (m_Key.RedScales <= 0) ? 999 : 12, GumpButtonType.Reply, 0);
//
//            AddLabel(325, 100, 0x486, "Yellow Scales");
//            AddLabel(425, 100, 0x480, key.YellowScales.ToString());
//            AddButton(275, 100, 4005, 4007, (m_Key.YellowScales <= 0) ? 999 : 13, GumpButtonType.Reply, 0);
//
//            AddLabel(325, 125, 0x486, "Black Scales");
//            AddLabel(425, 125, 0x480, key.BlackScales.ToString());
//            AddButton(275, 125, 4005, 4007, (m_Key.BlackScales <= 0) ? 999 : 14, GumpButtonType.Reply, 0);
//
//            AddLabel(325, 150, 0x486, "Green Scales");
//            AddLabel(425, 150, 0x480, key.GreenScales.ToString());
//            AddButton(275, 150, 4005, 4007, (m_Key.GreenScales <= 0) ? 999 : 15, GumpButtonType.Reply, 0);
//
//            AddLabel(325, 175, 0x486, "White Scales");
//            AddLabel(425, 175, 0x480, key.WhiteScales.ToString());
//            AddButton(275, 175, 4005, 4007, (m_Key.WhiteScales <= 0) ? 999 : 16, GumpButtonType.Reply, 0);
//
//            AddLabel(325, 200, 0x486, "Blue Scales");
//            AddLabel(425, 200, 0x480, key.BlueScales.ToString());
//            AddButton(275, 200, 4005, 4007, (m_Key.BlueScales <= 0) ? 999 : 17, GumpButtonType.Reply, 0);

            AddLabel(125, 325, 0x486, "Bandage");
            AddLabel(225, 325, 0x480, key.Bandage.ToString());
            AddButton(75, 325, 4005, 4007, (m_Key.Bandage <= 0) ? 999 : 30, GumpButtonType.Reply, 0);

            AddLabel(125, 350, 0x486, "Cloth");
            AddLabel(225, 350, 0x480, key.Cloth.ToString());
            AddButton(75, 350, 4005, 4007, (m_Key.Cloth <= 0) ? 999 : 21, GumpButtonType.Reply, 0);

            AddLabel(125, 375, 0x486, "Uncut Cloth");
            AddLabel(225, 375, 0x480, key.UncutCloth.ToString());
            AddButton(75, 375, 4005, 4007, (m_Key.UncutCloth <= 0) ? 999 : 22, GumpButtonType.Reply, 0);

            AddLabel(125, 400, 0x486, "Bolt of Cloth");
            AddLabel(225, 400, 0x480, key.BoltOfCloth.ToString());
            AddButton(75, 400, 4005, 4007, (m_Key.BoltOfCloth <= 0) ? 999 : 23, GumpButtonType.Reply, 0);

            AddLabel(325, 250, 0x486, "Bone");
            AddLabel(425, 250, 0x480, key.Bone.ToString());
            AddButton(275, 250, 4005, 4007, (m_Key.Bone <= 0) ? 999 : 29, GumpButtonType.Reply, 0);

            AddLabel(325, 275, 0x486, "Flax");
            AddLabel(425, 275, 0x480, key.Flax.ToString());
            AddButton(275, 275, 4005, 4007, (m_Key.Flax <= 0) ? 999 : 28, GumpButtonType.Reply, 0);

            AddLabel(325, 300, 0x486, "Yarn");
            AddLabel(425, 300, 0x480, key.Yarn.ToString());
            AddButton(275, 300, 4005, 4007, (m_Key.Yarn <= 0) ? 999 : 24, GumpButtonType.Reply, 0);

            AddLabel(325, 325, 0x486, "Wool");
            AddLabel(425, 325, 0x480, key.Wool.ToString());
            AddButton(275, 325, 4005, 4007, (m_Key.Wool <= 0) ? 999 : 25, GumpButtonType.Reply, 0);

            AddLabel(325, 350, 0x486, "Cotton");
            AddLabel(425, 350, 0x480, key.Cotton.ToString());
            AddButton(275, 350, 4005, 4007, (m_Key.Cotton <= 0) ? 999 : 26, GumpButtonType.Reply, 0);

            AddLabel(125, 425, 0x486, "Spool of Thread");
            AddLabel(225, 425, 0x480, key.SpoolOfThread.ToString());
            AddButton(75, 425, 4005, 4007, (m_Key.SpoolOfThread <= 0) ? 999 : 27, GumpButtonType.Reply, 0);

            AddLabel(325, 375, 88, "Each Max:");
            AddLabel(425, 375, 0x480, key.StorageLimit.ToString());

            AddLabel(325, 400, 88, "Add resource");
            AddButton(275, 400, 4005, 4007, 999, GumpButtonType.Reply, 0);

            AddLabel(325, 425, 88, "Collect from backpack");
            AddButton(275, 425, 4005, 4007, 31, GumpButtonType.Reply, 0);
        }
 public ResourceStorageKeyTailorTarget(ResourceStorageKeyTailor key)
     : base(18, false, TargetFlags.None)
 {
     m_Key = key;
 }