Added day to time and season narration

master
shoaib11120 2021-12-25 05:57:58 +05:30
parent 329154bea6
commit 20b822a284
1 changed files with 2 additions and 12 deletions

View File

@ -186,19 +186,9 @@ namespace stardew_access
// Narrate time and season // Narrate time and season
if (Equals(e.Button, SButton.Q)) if (Equals(e.Button, SButton.Q))
{ {
string toSpeak = $"Time is {CurrentPlayer.getTimeOfDay()} and season is {CurrentPlayer.getSeason()}"; string toSpeak = $"Time is {CurrentPlayer.getTimeOfDay()} and it is {CurrentPlayer.getDay()} of {CurrentPlayer.getSeason()}";
ScreenReader.say(toSpeak, true); ScreenReader.say(toSpeak, true);
} }
if (Equals(e.Button, SButton.J))
{
Game1.pressActionButton(Game1.input.GetKeyboardState(), Game1.input.GetMouseState(), Game1.input.GetGamePadState());
}
if (Equals(e.Button, SButton.L))
{
Game1.pressUseToolButton();
}
} }
private void SnapMouseToPlayer() private void SnapMouseToPlayer()
@ -397,7 +387,7 @@ namespace stardew_access
toSpeak = Game1.objectInformation[292 + (int)treeType].Split('/')[0]; toSpeak = Game1.objectInformation[292 + (int)treeType].Split('/')[0];
} }
toSpeak += $", {stage} stage"; toSpeak = $"{toSpeak}, {stage} stage";
ScreenReader.sayWithTileQuery(toSpeak, x, y, true); ScreenReader.sayWithTileQuery(toSpeak, x, y, true);
} }