private void MarnieAnimalPurchaseMessage() { exitThisMenu(); Game1.player.forceCanMove(); Freeze = false; Game1.activeClickableMenu = new MailOrderPigMenu(ItemUtils.GetPurchaseAnimalStock(), ItemUtils, OnMenuOpened, GetNewId); OnMenuOpened(); }
public override void receiveLeftClick(int x, int y, bool playSound = true) { base.receiveLeftClick(x, y, playSound); foreach (var textureComponent in LinksToVisit) { if (textureComponent.containsPoint(x, y)) { switch (textureComponent.name) { case "blacksmith": OpenLink(() => new ShopMenu(ItemUtils.GetBlacksmithStock(Unfiltered)), "Blacksmith"); break; case "blacksmith_tools": OpenLink(new ShopMenu(Utility.getBlacksmithUpgradeStock(Game1.player))); break; case "animals": OpenLink(() => new ShopMenu(Utility.getAnimalShopStock()), "AnimalShop"); break; case "animal_supplies": if (Game1.currentLocation is AnimalHouse) { OpenLink(new MailOrderPigMenu(ItemUtils.GetPurchaseAnimalStock(), ItemUtils, OnLinkOpened, GetNewId)); } else { OpenLink(new BuyAnimalMenu(Utility.getPurchaseAnimalStock(), OnLinkOpened, GetNewId)); } break; case "produce": OpenLink(() => new ShopMenu(ItemUtils.GetShopStock(true, Unfiltered)), "SeedShop"); break; case "carpentry": OpenLink(() => new ShopMenu(ItemUtils.GetCarpenterStock(Unfiltered)), "ScienceHouse"); break; case "carpentry_build": OpenLink(new ConstructionMenu(false, OnLinkOpened)); break; case "fish": OpenLink(() => new ShopMenu(ItemUtils.GetFishShopStock(Game1.player, Unfiltered)), "FishShop"); break; case "dining": OpenLink(new ShopMenu(ItemUtils.GetSaloonStock(Unfiltered))); break; case "imports": OpenLink(new ShopMenu( Utility.getTravelingMerchantStock((int)(Game1.uniqueIDForThisGame + Game1.stats.DaysPlayed)))); break; case "adventure": OpenLink(() => new ShopMenu(GetAdventureShopStock()), "AdventureGuild"); break; case "hats": OpenLink(new ShopMenu(Utility.getHatStock())); break; case "hospital": OpenLink(new ShopMenu(Utility.getHospitalStock())); break; case "wizard": OpenLink(new ConstructionMenu(true, OnLinkOpened)); break; case "dwarf": OpenLink(new ShopMenu(Utility.getDwarfShopStock())); break; case "krobus": OpenLink(new ShopMenu(((Sewer)Game1.getLocationFromName("Sewer")).getShadowShopStock(), 0, "Krobus")); break; case "qi": OpenLink(new ShopMenu(Utility.getQiShopStock())); break; case "joja": OpenLink(new ShopMenu(Utility.getJojaStock())); break; case "sandy": OpenLink(new ShopMenu(ItemUtils.GetShopStock(false, Unfiltered))); break; case "sauce": OpenLink(new ShopMenu(ItemUtils.GetRecipesStock(Unfiltered))); break; case "bundle": OpenLink(new ShopMenu(ItemUtils.GetJunimoStock())); break; case "artifact": OpenLink(new ShopMenu(ItemUtils.GetMineralsAndArtifactsStock(Unfiltered))); break; case "leah": OpenLink(new ShopMenu(ItemUtils.GetLeahShopStock(Unfiltered), 0, "Leah")); break; } } } }