Files
stardew-access/stardew-access/Patches/GameMenuPatches/CollectionsPagePatch.cs
Mohammad Shoaib Khan 8523026ed0 Improved and organised code for dialogue box patch
Moved letter viewer menu patch to its own class
moved npc patch to its own clas
moved draw hover text patch to IClickableMenuPatch.cs
2023-03-08 12:06:46 +05:30

22 lines
703 B
C#

namespace stardew_access.Patches
{
internal class CollectionsPagePatch
{
internal static void DrawPatch(StardewValley.Menus.CollectionsPage __instance)
{
try
{
int x = StardewValley.Game1.getMousePosition().X, y = StardewValley.Game1.getMousePosition().Y;
if (__instance.letterviewerSubMenu != null)
{
LetterViwerMenuPatch.narrateLetterContent(__instance.letterviewerSubMenu);
}
}
catch (System.Exception e)
{
MainClass.ErrorLog($"Unable to narrate Text:\n{e.Message}\n{e.StackTrace}");
}
}
}
}