Пример #1
0
        internal static bool MapPage_receiveLeftClick_Prefix(int x, int y, bool playSound)
        {
            if (ButtonArea.Contains(x, y))
            {
                RSVWorldMap.Open(Game1.activeClickableMenu);
                return(false);
            }

            return(true);
        }
Пример #2
0
 internal static void GameMenu_ChangeTab_PostFix(ref GameMenu __instance, int whichTab, bool playSound = true)
 {
     try
     {
         if (whichTab == GameMenu.mapTab && Game1.currentLocation.Name.StartsWith("Custom_Ridgeside"))
         {
             RSVWorldMap.Open(Game1.activeClickableMenu);
         }
     }
     catch (Exception e)
     {
         Log.Error($"Harmony patch \"{nameof(GameMenu_ChangeTab_PostFix)}\" has encountered an error. \n{e.ToString()}");
     }
 }