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