Moved letter viewer menu patch to its own class moved npc patch to its own clas moved draw hover text patch to IClickableMenuPatch.cs
22 lines
703 B
C#
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}");
|
|
}
|
|
}
|
|
}
|
|
}
|