Hover text spam fix
parent
eb0e3c162c
commit
674dc8ab00
|
@ -257,7 +257,7 @@ namespace stardew_access
|
|||
{
|
||||
if (!manuallyTriggered && prevTile != gt)
|
||||
{
|
||||
ScreenReader.prevText = " ";
|
||||
ScreenReader.prevTextTile = " ";
|
||||
}
|
||||
|
||||
Dictionary<Vector2, Netcode.NetRef<TerrainFeature>> terrainFeature = Game1.currentLocation.terrainFeatures.FieldDict;
|
||||
|
|
|
@ -84,8 +84,9 @@ namespace stardew_access.Patches
|
|||
ScreenReader.sayWithChecker(toSpeak, true);
|
||||
}
|
||||
}
|
||||
else
|
||||
else if(Game1.activeClickableMenu is DialogueBox)
|
||||
{
|
||||
MainClass.monitor.Log("hereasad ", LogLevel.Debug);
|
||||
// Basic dialogues like `No mails in the mail box`
|
||||
if (currentDialogue != __instance.getCurrentString())
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ namespace stardew_access
|
|||
internal class ScreenReader
|
||||
{
|
||||
public static IAccessibleOutput? screenReader = null;
|
||||
internal static string prevText = "";
|
||||
internal static string prevText = "", prevTextTile = " ";
|
||||
|
||||
public static void initializeScreenReader()
|
||||
{
|
||||
|
@ -81,9 +81,9 @@ namespace stardew_access
|
|||
|
||||
string query = $"{text} x:{x} y:{y}";
|
||||
|
||||
if (prevText != query)
|
||||
if (prevTextTile != query)
|
||||
{
|
||||
prevText = query;
|
||||
prevTextTile = query;
|
||||
screenReader.Speak(text, interrupt);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"Name": "Stardew Access",
|
||||
"Author": "Mohammad Shoaib",
|
||||
"Version": "1.0.8-beta",
|
||||
"Version": "1.0.9-beta",
|
||||
"Description": "An accessibility mod with screen reader support!",
|
||||
"UniqueID": "shoaib.stardewaccess",
|
||||
"EntryDll": "stardew-access.dll",
|
||||
|
|
Loading…
Reference in New Issue