From 99961d8e6279b6b5a7a6f91f1420886b99733aa8 Mon Sep 17 00:00:00 2001 From: Mohammad Shoaib Date: Sat, 19 Mar 2022 14:03:21 +0530 Subject: [PATCH] Added alt + k to narrate current location name --- stardew-access/ModEntry.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/stardew-access/ModEntry.cs b/stardew-access/ModEntry.cs index 407b417..bda0a42 100644 --- a/stardew-access/ModEntry.cs +++ b/stardew-access/ModEntry.cs @@ -175,12 +175,19 @@ namespace stardew_access } // Narrate Position - if (Equals(e.Button, SButton.K)) + if (Equals(e.Button, SButton.K) && !isLeftAltPressed) { string toSpeak = $"X: {CurrentPlayer.getPositionX()} , Y: {CurrentPlayer.getPositionY()}"; 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 if (Equals(e.Button, SButton.R)) {