Fixed map not narrating bug
This commit is contained in:
		| @@ -24,7 +24,7 @@ namespace stardew_access.Game | ||||
|                 return; | ||||
|  | ||||
|             previousSlotItem = currentSlotItem; | ||||
|             ScreenReader.say($"{currentSlotItem.Name} Selected", true); | ||||
|             ScreenReader.say($"{currentSlotItem.DisplayName} Selected", true); | ||||
|         }  | ||||
|  | ||||
|         // Narrates current location's name | ||||
| @@ -39,7 +39,7 @@ namespace stardew_access.Game | ||||
|                 return; | ||||
|  | ||||
|             previousLocation = currentLocation; | ||||
|             ScreenReader.say($"{currentLocation.Name} Entered",true); | ||||
|             ScreenReader.say($"{currentLocation.NameOrUniqueName} Entered",true); | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -22,7 +22,7 @@ namespace stardew_access.Patches | ||||
|                 { | ||||
|                     // For Normal Character dialogues | ||||
|                     Dialogue dialogue = __instance.characterDialogue; | ||||
|                     string speakerName = dialogue.speaker.Name; | ||||
|                     string speakerName = dialogue.speaker.displayName; | ||||
|                     List<string> dialogues = dialogue.dialogues; | ||||
|                     int dialogueIndex = dialogue.currentDialogueIndex; | ||||
|                     string toSpeak = $"{speakerName} said, {dialogues[dialogueIndex]}"; | ||||
| @@ -30,7 +30,6 @@ namespace stardew_access.Patches | ||||
|                     if (currentDialogue != toSpeak) | ||||
|                     { | ||||
|                         currentDialogue = toSpeak; | ||||
|                         MainClass.monitor.Log(toSpeak, LogLevel.Info); | ||||
|                         ScreenReader.say(toSpeak, false); | ||||
|                     } | ||||
|                 } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user