Update MenuPatch.cs

This commit is contained in:
Mohammad Shoaib
2021-12-30 20:23:10 +05:30
committed by GitHub
parent cb8a28fa46
commit 7c1838d560

View File

@@ -22,15 +22,13 @@ namespace stardew_access.Patches
{ {
int x = Game1.getMousePosition(true).X, y = Game1.getMousePosition(true).Y; int x = Game1.getMousePosition(true).X, y = Game1.getMousePosition(true).Y;
ScreenReader.sayWithMenuChecker(___message, true);
if(__instance.okButton.containsPoint(x, y)) if(__instance.okButton.containsPoint(x, y))
{ {
ScreenReader.sayWithMenuChecker("Ok Button", false); ScreenReader.sayWithMenuChecker("Ok Button", false);
} else if (__instance.cancelButton.containsPoint(x, y)) } else if (__instance.cancelButton.containsPoint(x, y))
{ {
ScreenReader.sayWithMenuChecker("Cancel Button", false); ScreenReader.sayWithMenuChecker("Cancel Button", false);
} else
{
ScreenReader.sayWithMenuChecker(___message, true);
} }
} }
catch (Exception e) catch (Exception e)