public SeedContainerTarget(SeedContainer key) : base( 18, false, TargetFlags.None ) { m_Key = key; }
public SeedContainerGump(PlayerMobile from, SeedContainer key ) : base( 25, 25 ) { m_From = from; m_Key = key; m_From.CloseGump(typeof(SeedContainerGump)); AddPage(0); AddBackground(50, 10, 1045, 595, 5054); AddImageTiled(60, 20, 1025, 575, 2624); AddAlphaRegion(60, 20, 1025, 575); AddLabel(525, 25, 0x486, "Garden Seed Container"); AddLabel(125, 50, 0x486, "Almond Seeds"); AddLabel(275, 50, 0x480, key.AlmondTreeSeed.ToString()); AddButton(75, 50, 4005, 4007, (m_Key.AlmondTreeSeed <= 0) ? 999 : 1, GumpButtonType.Reply, 0); AddLabel(125, 75, 0x486, "Apple Seeds"); AddLabel(275, 75, 0x480, key.AppleTreeSeed.ToString()); AddButton(75, 75, 4005, 4007, (m_Key.AppleTreeSeed <= 0) ? 999 : 2, GumpButtonType.Reply, 0); AddLabel(125, 100, 0x486, "Apricot Seeds"); AddLabel(275, 100, 0x480, key.ApricotTreeSeed.ToString()); AddButton(75, 100, 4005, 4007, (m_Key.ApricotTreeSeed <= 0) ? 999 : 3, GumpButtonType.Reply, 0); AddLabel(125, 125, 0x486, "Asparagus Seeds"); AddLabel(275, 125, 0x480, key.AsparagusSeed.ToString()); AddButton(75, 125, 4005, 4007, (m_Key.AsparagusSeed <= 0) ? 999 : 4, GumpButtonType.Reply, 0); AddLabel(125, 150, 0x486, "Avocado Seeds"); AddLabel(275, 150, 0x480, key.AvocadoTreeSeed.ToString()); AddButton(75, 150, 4005, 4007, (m_Key.AvocadoTreeSeed <= 0) ? 999 : 5, GumpButtonType.Reply, 0); AddLabel(125, 175, 0x486, "Banana Seeds"); AddLabel(275, 175, 0x480, key.BananaTreeSeed.ToString()); AddButton(75, 175, 4005, 4007, (m_Key.BananaTreeSeed <= 0) ? 999 : 6, GumpButtonType.Reply, 0); AddLabel(125, 200, 0x486, "Beet Seeds"); AddLabel(275, 200, 0x480, key.BeetSeed.ToString()); AddButton(75, 200, 4005, 4007, (m_Key.BeetSeed <= 0) ? 999 : 7, GumpButtonType.Reply, 0); AddLabel(125, 225, 0x486, "Biter Hops Seeds"); AddLabel(275, 225, 0x480, key.BitterHopsSeed.ToString()); AddButton(75, 225, 4005, 4007, (m_Key.BitterHopsSeed <= 0) ? 999 : 8, GumpButtonType.Reply, 0); AddLabel(125, 250, 0x486, "Blackberry Seeds"); AddLabel(275, 250, 0x480, key.BlackberryTreeSeed.ToString()); AddButton(75, 250, 4005, 4007, (m_Key.BlackberryTreeSeed <= 0) ? 999 : 9, GumpButtonType.Reply, 0); AddLabel(125, 275, 0x486, "Black Raspberry Seeds"); AddLabel(275, 275, 0x480, key.BlackRaspberryTreeSeed.ToString()); AddButton(75, 275, 4005, 4007, (m_Key.BlackRaspberryTreeSeed <= 0) ? 999 : 10, GumpButtonType.Reply, 0); AddLabel(125, 300, 0x486, "Blueberry Seeds"); AddLabel(275, 300, 0x480, key.BlueberryTreeSeed.ToString()); AddButton(75, 300, 4005, 4007, (m_Key.BlueberryTreeSeed <= 0) ? 999 : 11, GumpButtonType.Reply, 0); AddLabel(125, 325, 0x486, "Broccoli Seeds"); AddLabel(275, 325, 0x480, key.BroccoliSeed.ToString()); AddButton(75, 325, 4005, 4007, (m_Key.BroccoliSeed <= 0) ? 999 : 12, GumpButtonType.Reply, 0); AddLabel(125, 350, 0x486, "Cabbage Seeds"); AddLabel(275, 350, 0x480, key.CabbageSeed.ToString()); AddButton(75, 350, 4005, 4007, (m_Key.CabbageSeed <= 0) ? 999 : 13, GumpButtonType.Reply, 0); AddLabel(125, 375, 0x486, "Canealoupe Seeds"); AddLabel(275, 375, 0x480, key.CantaloupeSeed.ToString()); AddButton(75, 375, 4005, 4007, (m_Key.CantaloupeSeed <= 0) ? 999 : 14, GumpButtonType.Reply, 0); AddLabel(125, 400, 0x486, "Carrot Seeds"); AddLabel(275, 400, 0x480, key.CarrotSeed.ToString()); AddButton(75, 400, 4005, 4007, (m_Key.CarrotSeed <= 0) ? 999 : 15, GumpButtonType.Reply, 0); AddLabel(125, 425, 0x486, "Cauliflower Seeds"); AddLabel(275, 425, 0x480, key.CauliflowerSeed.ToString()); AddButton(75, 425, 4005, 4007, (m_Key.CauliflowerSeed<= 0) ? 999 : 16, GumpButtonType.Reply, 0); AddLabel(125, 450, 0x486, "Celery Seeds"); AddLabel(275, 450, 0x480, key.CelerySeed.ToString()); AddButton(75, 450, 4005, 4007, (m_Key.CelerySeed <= 0) ? 999 : 17, GumpButtonType.Reply, 0); AddLabel(125, 475, 0x486, "Cherry Seeds"); AddLabel(275, 475, 0x480, key.CherryTreeSeed.ToString()); AddButton(75, 475, 4005, 4007, (m_Key.CherryTreeSeed <= 0) ? 999 : 18, GumpButtonType.Reply, 0); AddLabel(125, 500, 0x486, "Chili Pepper Seeds"); AddLabel(275, 500, 0x480, key.ChiliPepperSeed.ToString()); AddButton(75, 500, 4005, 4007, (m_Key.ChiliPepperSeed <= 0) ? 999 : 19, GumpButtonType.Reply, 0); AddLabel(125, 525, 0x486, "Cocoa Seeds"); AddLabel(275, 525, 0x480, key.CocoaTreeSeed.ToString()); AddButton(75, 525, 4005, 4007, (m_Key.CocoaTreeSeed <= 0) ? 999 : 20, GumpButtonType.Reply, 0); AddLabel(375, 50, 0x486, "Coconut Palm Seeds"); AddLabel(525, 50, 0x480, key.CoconutPalmSeed.ToString()); AddButton(325, 50, 4005, 4007, (m_Key.CoconutPalmSeed <= 0) ? 999 : 21, GumpButtonType.Reply, 0); AddLabel(375, 75, 0x486, "Coffee Seeds"); AddLabel(525, 75, 0x480, key.CoffeeSeed.ToString()); AddButton(325, 75, 4005, 4007, (m_Key.CoffeeSeed <= 0) ? 999 : 22, GumpButtonType.Reply, 0); AddLabel(375, 100, 0x486, "Corn Seeds"); AddLabel(525, 100, 0x480, key.CornSeed.ToString()); AddButton(325, 100, 4005, 4007, (m_Key.CornSeed <= 0) ? 999 : 23, GumpButtonType.Reply, 0); AddLabel(375, 125, 0x486, "Cotton Seeds"); AddLabel(525, 125, 0x480, key.CottonSeed.ToString()); AddButton(325, 125, 4005, 4007, (m_Key.CottonSeed <= 0) ? 999 : 24, GumpButtonType.Reply, 0); AddLabel(375, 150, 0x486, "Cranberry Seeds"); AddLabel(525, 150, 0x480, key.CranberryTreeSeed.ToString()); AddButton(325, 150, 4005, 4007, (m_Key.CranberryTreeSeed <= 0) ? 999 : 25, GumpButtonType.Reply, 0); AddLabel(375, 175, 0x486, "Cucumber Seeds"); AddLabel(525, 175, 0x480, key.CucumberSeed.ToString()); AddButton(325, 175, 4005, 4007, (m_Key.CucumberSeed <= 0) ? 999 : 26, GumpButtonType.Reply, 0); AddLabel(375, 200, 0x486, "Date Palm Seeds"); AddLabel(525, 200, 0x480, key.DatePalmSeed.ToString()); AddButton(325, 200, 4005, 4007, (m_Key.DatePalmSeed <= 0) ? 999 : 27, GumpButtonType.Reply, 0); AddLabel(375, 225, 0x486, "Eggplant Seeds"); AddLabel(525, 225, 0x480, key.EggplantSeed.ToString()); AddButton(325, 225, 4005, 4007, (m_Key.EggplantSeed <= 0) ? 999 : 28, GumpButtonType.Reply, 0); AddLabel(375, 250, 0x486, "Elven Hops Seeds"); AddLabel(525, 250, 0x480, key.ElvenHopsSeed.ToString()); AddButton(325, 250, 4005, 4007, (m_Key.ElvenHopsSeed <= 0) ? 999 : 29, GumpButtonType.Reply, 0); AddLabel(375, 275, 0x486, "Field Corn Seeds"); AddLabel(525, 275, 0x480, key.FieldCornSeed.ToString()); AddButton(325, 275, 4005, 4007, (m_Key.FieldCornSeed <= 0) ? 999 : 30, GumpButtonType.Reply, 0); AddLabel(375, 300, 0x486, "Flax Seeds"); AddLabel(525, 300, 0x480, key.FlaxSeed.ToString()); AddButton(325, 300, 4005, 4007, (m_Key.FlaxSeed <= 0) ? 999 : 31, GumpButtonType.Reply, 0); AddLabel(375, 325, 0x486, "Garlic Seeds"); AddLabel(525, 325, 0x480, key.GarlicSeed.ToString()); AddButton(325, 325, 4005, 4007, (m_Key.GarlicSeed <= 0) ? 999 : 32, GumpButtonType.Reply, 0); AddLabel(375, 350, 0x486, "Ginger Seeds"); AddLabel(525, 350, 0x480, key.GingerSeed.ToString()); AddButton(325, 350, 4005, 4007, (m_Key.GingerSeed <= 0) ? 999 : 33, GumpButtonType.Reply, 0); AddLabel(375, 375, 0x486, "Ginseng Seeds"); AddLabel(525, 375, 0x480, key.GinsengSeed.ToString()); AddButton(325, 375, 4005, 4007, (m_Key.GinsengSeed <= 0) ? 999 : 34, GumpButtonType.Reply, 0); AddLabel(375, 400, 0x486, "Grapefruit Seeds"); AddLabel(525, 400, 0x480, key.GrapefruitTreeSeed.ToString()); AddButton(325, 400, 4005, 4007, (m_Key.GrapefruitTreeSeed <= 0) ? 999 : 35, GumpButtonType.Reply, 0); AddLabel(375, 425, 0x486, "Green Bean Seeds"); AddLabel(525, 425, 0x480, key.GreenBeanSeed.ToString()); AddButton(325, 425, 4005, 4007, (m_Key.GreenBeanSeed <= 0) ? 999 : 36, GumpButtonType.Reply, 0); AddLabel(375, 450, 0x486, "Green Pepper Seeds"); AddLabel(525, 450, 0x480, key.GreenPepperSeed.ToString()); AddButton(325, 450, 4005, 4007, (m_Key.GreenPepperSeed <= 0) ? 999 : 37, GumpButtonType.Reply, 0); AddLabel(375, 475, 0x486, "Green Squash Seeds"); AddLabel(525, 475, 0x480, key.GreenSquashSeed.ToString()); AddButton(325, 475, 4005, 4007, (m_Key.GreenSquashSeed <= 0) ? 999 : 38, GumpButtonType.Reply, 0); AddLabel(375, 500, 0x486, "Hay Seeds"); AddLabel(525, 500, 0x480, key.HaySeed.ToString()); AddButton(325, 500, 4005, 4007, (m_Key.HaySeed <= 0) ? 999 : 39, GumpButtonType.Reply, 0); AddLabel(375, 525, 0x486, "Honeydew Melon Seeds"); AddLabel(525, 525, 0x480, key.HoneydewMelonSeed.ToString()); AddButton(325, 525, 4005, 4007, (m_Key.HoneydewMelonSeed <= 0) ? 999 : 40, GumpButtonType.Reply, 0); AddLabel(625, 50, 0x486, "Kiwi Seeds"); AddLabel(775, 50, 0x480, key.KiwiSeed.ToString()); AddButton(575, 50, 4005, 4007, (m_Key.KiwiSeed <= 0) ? 999 : 41, GumpButtonType.Reply, 0); AddLabel(625, 75, 0x486, "Lemon Seeds"); AddLabel(775, 75, 0x480, key.LemonTreeSeed.ToString()); AddButton(575, 75, 4005, 4007, (m_Key.LemonTreeSeed <= 0) ? 999 : 42, GumpButtonType.Reply, 0); AddLabel(625, 100, 0x486, "Lettuce Seeds"); AddLabel(775, 100, 0x480, key.LettuceSeed.ToString()); AddButton(575, 100, 4005, 4007, (m_Key.LettuceSeed <= 0) ? 999 : 43, GumpButtonType.Reply, 0); AddLabel(625, 125, 0x486, "Lime Seeds"); AddLabel(775, 125, 0x480, key.LimeTreeSeed.ToString()); AddButton(575, 125, 4005, 4007, (m_Key.LimeTreeSeed <= 0) ? 999 : 44, GumpButtonType.Reply, 0); AddLabel(625, 150, 0x486, "Mandrake Seeds"); AddLabel(775, 150, 0x480, key.MandrakeSeed.ToString()); AddButton(575, 150, 4005, 4007, (m_Key.MandrakeSeed <= 0) ? 999 : 45, GumpButtonType.Reply, 0); AddLabel(625, 175, 0x486, "Mango Tree Seeds"); AddLabel(775, 175, 0x480, key.MangoTreeSeed.ToString()); AddButton(575, 175, 4005, 4007, (m_Key.MangoTreeSeed <= 0) ? 999 : 46, GumpButtonType.Reply, 0); AddLabel(625, 200, 0x486, "Nightshade Seeds"); AddLabel(775, 200, 0x480, key.NightshadeSeed.ToString()); AddButton(575, 200, 4005, 4007, (m_Key.NightshadeSeed <= 0) ? 999 : 47, GumpButtonType.Reply, 0); AddLabel(625, 225, 0x486, "Oats Seeds"); AddLabel(775, 225, 0x480, key.OatsSeed.ToString()); AddButton(575, 225, 4005, 4007, (m_Key.OatsSeed <= 0) ? 999 : 48, GumpButtonType.Reply, 0); AddLabel(625, 250, 0x486, "Onion Seeds"); AddLabel(775, 250, 0x480, key.OnionSeed.ToString()); AddButton(575, 250, 4005, 4007, (m_Key.OnionSeed <= 0) ? 999 : 49, GumpButtonType.Reply, 0); AddLabel(625, 275, 0x486, "Orange Pepper Seeds"); AddLabel(775, 275, 0x480, key.OrangePepperSeed.ToString()); AddButton(575, 275, 4005, 4007, (m_Key.OrangePepperSeed <= 0) ? 999 : 50, GumpButtonType.Reply, 0); AddLabel(625, 300, 0x486, "Orange Seeds"); AddLabel(775, 300, 0x480, key.OrangeTreeSeed.ToString()); AddButton(575, 300, 4005, 4007, (m_Key.OrangeTreeSeed <= 0) ? 999 : 51, GumpButtonType.Reply, 0); AddLabel(625, 325, 0x486, "Peach Seeds"); AddLabel(775, 325, 0x480, key.PeachTreeSeed.ToString()); AddButton(575, 325, 4005, 4007, (m_Key.PeachTreeSeed <= 0) ? 999 : 52, GumpButtonType.Reply, 0); AddLabel(625, 350, 0x486, "Peanut Seeds"); AddLabel(775, 350, 0x480, key.PeanutSeed.ToString()); AddButton(575, 350, 4005, 4007, (m_Key.PeanutSeed <= 0) ? 999 : 53, GumpButtonType.Reply, 0); AddLabel(625, 375, 0x486, "Pear Seeds"); AddLabel(775, 375, 0x480, key.PearTreeSeed.ToString()); AddButton(575, 375, 4005, 4007, (m_Key.PearTreeSeed <= 0) ? 999 : 54, GumpButtonType.Reply, 0); AddLabel(625, 400, 0x486, "Pea Seeds"); AddLabel(775, 400, 0x480, key.PeasSeed.ToString()); AddButton(575, 400, 4005, 4007, (m_Key.PeasSeed <= 0) ? 999 : 55, GumpButtonType.Reply, 0); AddLabel(625, 425, 0x486, "Pineapple Seeds"); AddLabel(775, 425, 0x480, key.PineappleTreeSeed.ToString()); AddButton(575, 425, 4005, 4007, (m_Key.PineappleTreeSeed <= 0) ? 999 : 56, GumpButtonType.Reply, 0); AddLabel(625, 450, 0x486, "Pistacio Seeds"); AddLabel(775, 450, 0x480, key.PistacioTreeSeed.ToString()); AddButton(575, 450, 4005, 4007, (m_Key.PistacioTreeSeed <= 0) ? 999 : 57, GumpButtonType.Reply, 0); AddLabel(625, 475, 0x486, "Plum Tree Seeds"); AddLabel(775, 475, 0x480, key.PlumTreeSeed.ToString()); AddButton(575, 475, 4005, 4007, (m_Key.PlumTreeSeed <= 0) ? 999 : 58, GumpButtonType.Reply, 0); AddLabel(625, 500, 0x486, "Pomegranate Seeds"); AddLabel(775, 500, 0x480, key.PomegranateTreeSeed.ToString()); AddButton(575, 500, 4005, 4007, (m_Key.PomegranateTreeSeed <= 0) ? 999 : 59, GumpButtonType.Reply, 0); AddLabel(625, 525, 0x486, "Potato Seeds"); AddLabel(775, 525, 0x480, key.PotatoSeed.ToString()); AddButton(575, 525, 4005, 4007, (m_Key.PotatoSeed <= 0) ? 999 : 60, GumpButtonType.Reply, 0); AddLabel(875, 50, 0x486, "Pumpkin Seeds"); AddLabel(1025, 50, 0x480, key.PumpkinSeed.ToString()); AddButton(825, 50, 4005, 4007, (m_Key.PumpkinSeed <= 0) ? 999 : 61, GumpButtonType.Reply, 0); AddLabel(875, 75, 0x486, "Rasish Seeds"); AddLabel(1025, 75, 0x480, key.RadishSeed.ToString()); AddButton(825, 75, 4005, 4007, (m_Key.RadishSeed <= 0) ? 999 : 62, GumpButtonType.Reply, 0); AddLabel(875, 100, 0x486, "Red Pepper Seeds"); AddLabel(1025, 100, 0x480, key.RedPepperSeed.ToString()); AddButton(825, 100, 4005, 4007, (m_Key.RedPepperSeed <= 0) ? 999 : 63, GumpButtonType.Reply, 0); AddLabel(875, 125, 0x486, "Red Raspberry Seeds"); AddLabel(1025, 125, 0x480, key.RedRaspberryTreeSeed.ToString()); AddButton(825, 125, 4005, 4007, (m_Key.RedRaspberryTreeSeed <= 0) ? 999 : 64, GumpButtonType.Reply, 0); AddLabel(875, 150, 0x486, "Rice Seeds"); AddLabel(1025, 150, 0x480, key.RiceSeed.ToString()); AddButton(825, 150, 4005, 4007, (m_Key.RiceSeed <= 0) ? 999 : 65, GumpButtonType.Reply, 0); AddLabel(875, 175, 0x486, "Snow Hops Seeds"); AddLabel(1025, 175, 0x480, key.SnowHopsSeed.ToString()); AddButton(825, 175, 4005, 4007, (m_Key.SnowHopsSeed <= 0) ? 999 : 66, GumpButtonType.Reply, 0); AddLabel(875, 200, 0x486, "Snow Peas Seeds"); AddLabel(1025, 200, 0x480, key.SnowPeasSeed.ToString()); AddButton(825, 200, 4005, 4007, (m_Key.SnowPeasSeed <= 0) ? 999 : 67, GumpButtonType.Reply, 0); AddLabel(875, 225, 0x486, "Soy Seeds"); AddLabel(1025, 225, 0x480, key.SoySeed.ToString()); AddButton(825, 225, 4005, 4007, (m_Key.SoySeed <= 0) ? 999 : 68, GumpButtonType.Reply, 0); AddLabel(875, 250, 0x486, "Spinach Seeds"); AddLabel(1025, 250, 0x480, key.SpinachSeed.ToString()); AddButton(825, 250, 4005, 4007, (m_Key.SpinachSeed <= 0) ? 999 : 69, GumpButtonType.Reply, 0); AddLabel(875, 275, 0x486, "Squash Seeds"); AddLabel(1025, 275, 0x480, key.SquashSeed.ToString()); AddButton(825, 275, 4005, 4007, (m_Key.SquashSeed <= 0) ? 999 : 70, GumpButtonType.Reply, 0); AddLabel(875, 300, 0x486, "Strawberry Seeds"); AddLabel(1025, 300, 0x480, key.StrawberrySeed.ToString()); AddButton(825, 300, 4005, 4007, (m_Key.StrawberrySeed <= 0) ? 999 : 71, GumpButtonType.Reply, 0); AddLabel(875, 325, 0x486, "Sugar Seeds"); AddLabel(1025, 325, 0x480, key.SugarSeed.ToString()); AddButton(825, 325, 4005, 4007, (m_Key.SugarSeed <= 0) ? 999 : 72, GumpButtonType.Reply, 0); AddLabel(875, 350, 0x486, "Sun Flower Seeds"); AddLabel(1025, 350, 0x480, key.SunFlowerSeed.ToString()); AddButton(825, 350, 4005, 4007, (m_Key.SunFlowerSeed <= 0) ? 999 : 73, GumpButtonType.Reply, 0); AddLabel(875, 375, 0x486, "Sweet Hops Seeds"); AddLabel(1025, 375, 0x480, key.SweetHopsSeed.ToString()); AddButton(825, 375, 4005, 4007, (m_Key.SweetHopsSeed <= 0) ? 999 : 74, GumpButtonType.Reply, 0); AddLabel(875, 400, 0x486, "Sweet Potato Seeds"); AddLabel(1025, 400, 0x480, key.SweetPotatoSeed.ToString()); AddButton(825, 400, 4005, 4007, (m_Key.SweetPotatoSeed <= 0) ? 999 : 75, GumpButtonType.Reply, 0); AddLabel(875, 425, 0x486, "Tea Seeds"); AddLabel(1025, 425, 0x480, key.TeaSeed.ToString()); AddButton(825, 425, 4005, 4007, (m_Key.TeaSeed <= 0) ? 999 : 76, GumpButtonType.Reply, 0); AddLabel(875, 450, 0x486, "Tomato Seeds"); AddLabel(1025, 450, 0x480, key.TomatoSeed.ToString()); AddButton(825, 450, 4005, 4007, (m_Key.TomatoSeed <= 0) ? 999 : 77, GumpButtonType.Reply, 0); AddLabel(875, 475, 0x486, "Turnip Seeds"); AddLabel(1025, 475, 0x480, key.TurnipSeed.ToString()); AddButton(825, 475, 4005, 4007, (m_Key.TurnipSeed <= 0) ? 999 : 78, GumpButtonType.Reply, 0); AddLabel(875, 500, 0x486, "Watermelon Seeds"); AddLabel(1025, 500, 0x480, key.WatermelonSeed.ToString()); AddButton(825, 500, 4005, 4007, (m_Key.WatermelonSeed <= 0) ? 999 : 79, GumpButtonType.Reply, 0); AddLabel(875, 525, 0x486, "Wheat Seeds"); AddLabel(1025, 525, 0x480, key.WheatSeed.ToString()); AddButton(825, 525, 4005, 4007, (m_Key.WheatSeed <= 0) ? 999 : 80, GumpButtonType.Reply, 0); AddLabel(575, 550, 88, "Each Max:" ); AddLabel(650, 550, 0x480, key.StorageLimit.ToString() ); AddLabel(375, 550, 88, "Add resource"); AddButton(325, 550, 4005, 4007, 999, GumpButtonType.Reply, 0); }