Update MenuPatch.cs

master
Mohammad Shoaib 2021-12-30 20:23:10 +05:30 committed by GitHub
parent cb8a28fa46
commit 7c1838d560
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

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