示例#1
0
 public FarmersSeedBoxTarget(FarmersSeedBox key) : base(18, false, TargetFlags.None)
 {
     m_Key = key;
 }
示例#2
0
        public FarmersSeedBoxGump(PlayerMobile from, FarmersSeedBox key)
            : base(25, 25)
        {
            m_From = from;
            m_Key  = key;

            m_From.CloseGump(typeof(FarmersSeedBoxGump));

            AddPage(0);

            AddBackground(50, 10, 455, 230, 5054);
            AddImageTiled(58, 20, 438, 210, 2624);
            AddAlphaRegion(58, 20, 438, 210);

            AddLabel(200, 25, 88, "Farmers Seed Box");

            AddLabel(125, 50, 0x486, "Cotton Seed");
            AddLabel(225, 50, 0x480, key.CottonSeed.ToString());
            AddButton(75, 50, 4005, 4007, 1, GumpButtonType.Reply, 0);

            AddLabel(125, 75, 0x486, "Flax Seed");
            AddLabel(225, 75, 0x480, key.FlaxSeed.ToString());
            AddButton(75, 75, 4005, 4007, 2, GumpButtonType.Reply, 0);

            AddLabel(125, 100, 0x486, "Hay Seed");
            AddLabel(225, 100, 0x480, key.HaySeed.ToString());
            AddButton(75, 100, 4005, 4007, 3, GumpButtonType.Reply, 0);

            AddLabel(125, 125, 0x486, "Oats Seed");
            AddLabel(225, 125, 0x480, key.OatsSeed.ToString());
            AddButton(75, 125, 4005, 4007, 4, GumpButtonType.Reply, 0);

            AddLabel(125, 150, 0x486, "Rice Seed");
            AddLabel(225, 150, 0x480, key.RiceSeed.ToString());
            AddButton(75, 150, 4005, 4007, 5, GumpButtonType.Reply, 0);

            AddLabel(125, 175, 0x486, "Sugarcane Seed");
            AddLabel(225, 175, 0x480, key.SugarcaneSeed.ToString());
            AddButton(75, 175, 4005, 4007, 6, GumpButtonType.Reply, 0);

            AddLabel(125, 200, 0x486, "Wheat Seed");
            AddLabel(225, 200, 0x480, key.WheatSeed.ToString());
            AddButton(75, 200, 4005, 4007, 7, GumpButtonType.Reply, 0);

            AddLabel(325, 50, 0x486, "Bitter Hops Seed");
            AddLabel(425, 50, 0x480, key.BitterHopsSeed.ToString());
            AddButton(275, 50, 4005, 4007, 8, GumpButtonType.Reply, 0);

            AddLabel(325, 75, 0x486, "Elven Hops Seed");
            AddLabel(425, 75, 0x480, key.ElvenHopsSeed.ToString());
            AddButton(275, 75, 4005, 4007, 9, GumpButtonType.Reply, 0);

            AddLabel(325, 100, 0x486, "Snow Hops Seed");
            AddLabel(425, 100, 0x480, key.SnowHopsSeed.ToString());
            AddButton(275, 100, 4005, 4007, 10, GumpButtonType.Reply, 0);

            AddLabel(325, 125, 0x486, "Sweet Hops Seed");
            AddLabel(425, 125, 0x480, key.SweetHopsSeed.ToString());
            AddButton(275, 125, 4005, 4007, 11, GumpButtonType.Reply, 0);

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

            AddLabel(325, 200, 88, "Add resource");
            AddButton(275, 200, 4005, 4007, 12, GumpButtonType.Reply, 0);
        }