public AlchemyBoxGump(Mobile from, AlchemyBox box, Pages page) : base(25, 25) { m_From = from; m_Box = box; m_Page = page; AddPage(0); AddBackground(50, 10, 455, 325, 83); AddImageTiled(58, 20, 438, 317, 2624); AddAlphaRegion(58, 20, 438, 317); AddButton(75, 25, 4026, 4027, 1, GumpButtonType.Reply, 0); AddLabel(110, 25, 0x8AB, "Add Resource"); AddPage(1); if (m_Page == Pages.Start) { AddLabel(225, 25, 191, "COV Alchemy Box"); AddLabel(225, 50, 191, "DO NOT PUT FULL POTION KEGS IN HERE!"); AddLabel(110, 75, 191, "Empty Bottles"); AddButton(75, 75, 4005, 4007, 10, GumpButtonType.Reply, 0); AddLabel(110, 100, 191, "Empty Potion Kegs"); AddButton(75, 100, 4005, 4007, 11, GumpButtonType.Reply, 0); AddLabel(110, 125, 191, "NightSight Potions"); AddButton(75, 125, 4005, 4007, 12, GumpButtonType.Reply, 0); AddLabel(110, 150, 191, "Cure Potions"); AddButton(75, 150, 4005, 4007, 13, GumpButtonType.Reply, 0); AddLabel(110, 175, 191, "Agility Potions"); AddButton(75, 175, 4005, 4007, 14, GumpButtonType.Reply, 0); AddLabel(110, 200, 191, "Strength Potions"); AddButton(75, 200, 4005, 4007, 15, GumpButtonType.Reply, 0); AddLabel(110, 225, 191, "Poison Potions"); AddButton(75, 225, 4005, 4007, 16, GumpButtonType.Reply, 0); AddLabel(110, 250, 191, "Refresh Potions"); AddButton(75, 250, 4005, 4007, 17, GumpButtonType.Reply, 0); AddLabel(110, 275, 191, "Heal Potions"); AddButton(75, 275, 4005, 4007, 18, GumpButtonType.Reply, 0); AddLabel(110, 300, 191, "Explosion Potions"); AddButton(75, 300, 4005, 4007, 19, GumpButtonType.Reply, 0); if (AlchemyBoxTypes.Bottle.Length > 19) { AddLabel(310, 75, 33, "More Empty Bottles"); AddButton(275, 75, 4005, 4007, 20, GumpButtonType.Reply, 0); } if (AlchemyBoxTypes.PotionKeg.Length > 19) { AddLabel(310, 100, 33, "More Empty Potion Kegs"); AddButton(275, 100, 4005, 4007, 21, GumpButtonType.Reply, 0); } if (AlchemyBoxTypes.NightSightPotion.Length > 19) { AddLabel(310, 125, 33, "More NightSight Potions"); AddButton(275, 125, 4005, 4007, 22, GumpButtonType.Reply, 0); } if (AlchemyBoxTypes.CurePotion.Length > 19) { AddLabel(310, 150, 33, "More Cure Potions"); AddButton(275, 150, 4005, 4007, 23, GumpButtonType.Reply, 0); } if (AlchemyBoxTypes.AgilityPotion.Length > 19) { AddLabel(310, 175, 33, "More Agility Potions"); AddButton(275, 175, 4005, 4007, 24, GumpButtonType.Reply, 0); } if (AlchemyBoxTypes.StrengthPotion.Length > 19) { AddLabel(310, 200, 33, "More Strength Potions"); AddButton(275, 200, 4005, 4007, 25, GumpButtonType.Reply, 0); } if (AlchemyBoxTypes.PoisonPotion.Length > 19) { AddLabel(310, 225, 33, "More Poison Potions"); AddButton(275, 225, 4005, 4007, 26, GumpButtonType.Reply, 0); } if (AlchemyBoxTypes.RefreshPotion.Length > 19) { AddLabel(310, 250, 33, "More Refresh Potions"); AddButton(275, 250, 4005, 4007, 27, GumpButtonType.Reply, 0); } if (AlchemyBoxTypes.HealPotion.Length > 19) { AddLabel(310, 275, 33, "More Heal Potions Potions"); AddButton(275, 275, 4005, 4007, 28, GumpButtonType.Reply, 0); } if (AlchemyBoxTypes.ExplosionPotion.Length > 19) { AddLabel(310, 300, 33, "More Explosion Potions"); AddButton(275, 300, 4005, 4007, 29, GumpButtonType.Reply, 0); } } else { AddLabel(225, 25, 0x480, AddLabelsButtonsAmounts()); AddButton(425, 25, 4014, 4015, 2, GumpButtonType.Reply, 0); AddLabel(460, 25, 0x8AB, "Back"); } }
public ExtractPrompt(Type type, AlchemyBox box, Pages page) { m_type = type; m_Box = box; m_Page = page; }
public AlchemyBoxTarget(AlchemyBox box, Pages page) : base(18, false, TargetFlags.None) { m_Box = box; m_Page = page; }
public AlchemyBoxGump(Mobile from, AlchemyBox box, Pages page) : base(25, 25) { m_From = from; m_Box = box; m_Page = page; AddPage( 0 ); AddBackground( 50, 10, 455, 325, 83 ); AddImageTiled( 58, 20, 438, 317, 2624 ); AddAlphaRegion( 58, 20, 438, 317 ); AddButton( 75, 25, 4026, 4027, 1, GumpButtonType.Reply, 0 ); AddLabel( 110, 25, 0x8AB, "Add Resource" ); AddPage( 1 ); if( m_Page == Pages.Start ) { AddLabel( 225, 25, 191, "COV Alchemy Box" ); AddLabel(225, 50, 191, "DO NOT PUT FULL POTION KEGS IN HERE!"); AddLabel( 110, 75, 191, "Empty Bottles" ); AddButton( 75, 75, 4005, 4007, 10, GumpButtonType.Reply, 0 ); AddLabel( 110, 100, 191, "Empty Potion Kegs" ); AddButton( 75, 100, 4005, 4007, 11, GumpButtonType.Reply, 0 ); AddLabel( 110, 125, 191, "NightSight Potions" ); AddButton( 75, 125, 4005, 4007, 12, GumpButtonType.Reply, 0 ); AddLabel( 110, 150, 191, "Cure Potions" ); AddButton( 75, 150, 4005, 4007, 13, GumpButtonType.Reply, 0 ); AddLabel( 110, 175, 191, "Agility Potions" ); AddButton( 75, 175, 4005, 4007, 14, GumpButtonType.Reply, 0 ); AddLabel( 110, 200, 191, "Strength Potions" ); AddButton( 75, 200, 4005, 4007, 15, GumpButtonType.Reply, 0 ); AddLabel( 110, 225, 191, "Poison Potions" ); AddButton( 75, 225, 4005, 4007, 16, GumpButtonType.Reply, 0 ); AddLabel( 110, 250, 191, "Refresh Potions" ); AddButton( 75, 250, 4005, 4007, 17, GumpButtonType.Reply, 0 ); AddLabel( 110, 275, 191, "Heal Potions"); AddButton( 75, 275, 4005, 4007, 18, GumpButtonType.Reply, 0); AddLabel( 110, 300, 191, "Explosion Potions"); AddButton( 75, 300, 4005, 4007, 19, GumpButtonType.Reply, 0); if (AlchemyBoxTypes.Bottle.Length > 19) { AddLabel( 310, 75, 33, "More Empty Bottles" ); AddButton( 275, 75, 4005, 4007, 20, GumpButtonType.Reply, 0 ); } if (AlchemyBoxTypes.PotionKeg.Length > 19) { AddLabel( 310, 100, 33, "More Empty Potion Kegs" ); AddButton( 275, 100, 4005, 4007, 21, GumpButtonType.Reply, 0 ); } if (AlchemyBoxTypes.NightSightPotion.Length > 19) { AddLabel( 310, 125, 33, "More NightSight Potions" ); AddButton( 275, 125, 4005, 4007, 22, GumpButtonType.Reply, 0 ); } if (AlchemyBoxTypes.CurePotion.Length > 19) { AddLabel(310, 150, 33, "More Cure Potions"); AddButton(275, 150, 4005, 4007, 23, GumpButtonType.Reply, 0); } if (AlchemyBoxTypes.AgilityPotion.Length > 19) { AddLabel(310, 175, 33, "More Agility Potions"); AddButton(275, 175, 4005, 4007, 24, GumpButtonType.Reply, 0); } if (AlchemyBoxTypes.StrengthPotion.Length > 19) { AddLabel(310, 200, 33, "More Strength Potions"); AddButton(275, 200, 4005, 4007, 25, GumpButtonType.Reply, 0); } if (AlchemyBoxTypes.PoisonPotion.Length > 19) { AddLabel(310, 225, 33, "More Poison Potions"); AddButton(275, 225, 4005, 4007, 26, GumpButtonType.Reply, 0); } if (AlchemyBoxTypes.RefreshPotion.Length > 19) { AddLabel(310, 250, 33, "More Refresh Potions"); AddButton(275, 250, 4005, 4007, 27, GumpButtonType.Reply, 0); } if (AlchemyBoxTypes.HealPotion.Length > 19) { AddLabel(310, 275, 33, "More Heal Potions Potions"); AddButton(275, 275, 4005, 4007, 28, GumpButtonType.Reply, 0); } if (AlchemyBoxTypes.ExplosionPotion.Length > 19) { AddLabel(310, 300, 33, "More Explosion Potions"); AddButton(275, 300, 4005, 4007, 29, GumpButtonType.Reply, 0); } } else { AddLabel( 225, 25, 0x480, AddLabelsButtonsAmounts() ); AddButton( 425, 25, 4014, 4015, 2, GumpButtonType.Reply, 0 ); AddLabel( 460, 25, 0x8AB, "Back" ); } }
public ExtractPrompt( Type type, AlchemyBox box, Pages page) { m_type = type; m_Box = box; m_Page = page; }