Some fixes
parent
51dd77d9fc
commit
63eecb797e
|
@ -14,8 +14,6 @@ namespace stardew_access.Patches
|
|||
private static bool isRunning = false;
|
||||
private static string currentLetterText = " ";
|
||||
private static string currentDailyQuestText = " ";
|
||||
public static bool isJoinTabSelected = false;
|
||||
public static bool isHostTabSelected = false;
|
||||
|
||||
internal static void CoopMenuPatch(CoopMenu __instance, CoopMenu.Tab ___currentTab)
|
||||
{
|
||||
|
@ -56,8 +54,7 @@ namespace stardew_access.Patches
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
throw;
|
||||
MainClass.monitor.Log($"Unable to narrate Text:\n{e.Message}\n{e.StackTrace}", LogLevel.Error);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -105,8 +102,7 @@ namespace stardew_access.Patches
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
throw;
|
||||
MainClass.monitor.Log($"Unable to narrate Text:\n{e.Message}\n{e.StackTrace}", LogLevel.Error);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -135,12 +131,13 @@ namespace stardew_access.Patches
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
throw;
|
||||
MainClass.monitor.Log($"Unable to narrate Text:\n{e.Message}\n{e.StackTrace}", LogLevel.Error);
|
||||
}
|
||||
}
|
||||
|
||||
internal static void BillboardPatch(Billboard __instance, bool ___dailyQuestBoard)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!___dailyQuestBoard)
|
||||
{
|
||||
|
@ -175,7 +172,7 @@ namespace stardew_access.Patches
|
|||
{
|
||||
// No quests
|
||||
string toSpeak = "No quests for today!";
|
||||
if(currentDailyQuestText != toSpeak)
|
||||
if (currentDailyQuestText != toSpeak)
|
||||
{
|
||||
currentDailyQuestText = toSpeak;
|
||||
ScreenReader.say(toSpeak, true);
|
||||
|
@ -204,6 +201,11 @@ namespace stardew_access.Patches
|
|||
#endregion
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MainClass.monitor.Log($"Unable to narrate Text:\n{e.Message}\n{e.StackTrace}", LogLevel.Error);
|
||||
}
|
||||
}
|
||||
|
||||
internal static void QuestLogPatch(QuestLog __instance, int ___questPage, List<List<IQuest>> ___pages, int ___currentPage, IQuest ____shownQuest, List<string> ____objectiveText)
|
||||
{
|
||||
|
@ -292,7 +294,6 @@ namespace stardew_access.Patches
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
MainClass.monitor.Log($"Unable to narrate Text:\n{e.Message}\n{e.StackTrace}", LogLevel.Error);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"Name": "Stardew Access",
|
||||
"Author": "Mohammad Shoaib",
|
||||
"Version": "1.0.9-beta",
|
||||
"Version": "1.0.10-beta",
|
||||
"Description": "An accessibility mod with screen reader support!",
|
||||
"UniqueID": "shoaib.stardewaccess",
|
||||
"EntryDll": "stardew-access.dll",
|
||||
|
|
Loading…
Reference in New Issue