Update MenuPatch.cs
parent
cb8a28fa46
commit
7c1838d560
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue