Added alt + k to narrate current location name

master
Mohammad Shoaib 2022-03-19 14:03:21 +05:30
parent 18a671d97a
commit 99961d8e62
1 changed files with 8 additions and 1 deletions

View File

@ -175,12 +175,19 @@ namespace stardew_access
} }
// Narrate Position // Narrate Position
if (Equals(e.Button, SButton.K)) if (Equals(e.Button, SButton.K) && !isLeftAltPressed)
{ {
string toSpeak = $"X: {CurrentPlayer.getPositionX()} , Y: {CurrentPlayer.getPositionY()}"; string toSpeak = $"X: {CurrentPlayer.getPositionX()} , Y: {CurrentPlayer.getPositionY()}";
MainClass.GetScreenReader().Say(toSpeak, true); MainClass.GetScreenReader().Say(toSpeak, true);
} }
// Narrate Current Location
if (Equals(e.Button, SButton.K) && isLeftAltPressed)
{
string toSpeak = $"{Game1.currentLocation.Name}";
MainClass.GetScreenReader().Say(toSpeak, true);
}
// Narrate money at hand // Narrate money at hand
if (Equals(e.Button, SButton.R)) if (Equals(e.Button, SButton.R))
{ {