Merge branch 'master' of github.com:stardew-access/stardew-access

master
shoaib11120 2021-12-31 20:16:56 +05:30
commit dc12fe99c8
1 changed files with 1 additions and 3 deletions

View File

@ -23,15 +23,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)