Dialogues now interrupt

master
shoaib11120 2021-12-25 12:56:33 +05:30
parent 83b53fe9a9
commit 17d8c0d561
1 changed files with 4 additions and 3 deletions

View File

@ -30,7 +30,7 @@ namespace stardew_access.Patches
if (currentDialogue != toSpeak) if (currentDialogue != toSpeak)
{ {
currentDialogue = toSpeak; currentDialogue = toSpeak;
ScreenReader.say(toSpeak, false); ScreenReader.say(toSpeak, true);
} }
} }
else if (__instance.isQuestion || __instance.responses.Count > 0) else if (__instance.isQuestion || __instance.responses.Count > 0)
@ -41,13 +41,14 @@ namespace stardew_access.Patches
if (currentDialogue != __instance.getCurrentString()) { if (currentDialogue != __instance.getCurrentString()) {
toSpeak = __instance.getCurrentString(); toSpeak = __instance.getCurrentString();
currentDialogue = toSpeak; currentDialogue = toSpeak;
ScreenReader.sayWithChecker(toSpeak, true);
} }
for (int i = 0; i < __instance.responses.Count; i++) for (int i = 0; i < __instance.responses.Count; i++)
{ {
if (i == __instance.selectedResponse) if (i == __instance.selectedResponse)
{ {
toSpeak += $" \t\n Selected response: {__instance.responses[i].responseText}"; toSpeak = $" \t\n Selected response: {__instance.responses[i].responseText}";
} }
} }
@ -59,7 +60,7 @@ namespace stardew_access.Patches
if (currentDialogue != __instance.getCurrentString()) if (currentDialogue != __instance.getCurrentString())
{ {
currentDialogue = __instance.getCurrentString(); currentDialogue = __instance.getCurrentString();
ScreenReader.say(__instance.getCurrentString(), false); ScreenReader.say(__instance.getCurrentString(), true);
} }
} }
} }