Added buildlist command
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using StardewModdingAPI;
|
||||
using StardewValley;
|
||||
using StardewValley.Buildings;
|
||||
using StardewValley.Menus;
|
||||
|
||||
namespace stardew_access.Patches
|
||||
@@ -8,6 +9,7 @@ namespace stardew_access.Patches
|
||||
internal class BuildingNAnimalMenuPatches
|
||||
{
|
||||
internal static Vector2[] marked = new Vector2[10];
|
||||
internal static Building[] availableBuildings = new Building[100];
|
||||
internal static string carpenterMenuQuery = "";
|
||||
internal static bool isSayingBlueprintInfo = false;
|
||||
internal static string prevBlueprintInfo = "";
|
||||
|
@@ -25,11 +25,11 @@ namespace stardew_access.Patches
|
||||
#region To narrate previous and next chat messages
|
||||
if (isNextArrowPressed && !isChatRunning)
|
||||
{
|
||||
_ = CycleThroughChatMessages(true, ___messages);
|
||||
CycleThroughChatMessages(true, ___messages);
|
||||
}
|
||||
else if (isPrevArrowPressed && !isChatRunning)
|
||||
{
|
||||
_ = CycleThroughChatMessages(false, ___messages);
|
||||
CycleThroughChatMessages(false, ___messages);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -52,10 +52,9 @@ namespace stardew_access.Patches
|
||||
}
|
||||
}
|
||||
|
||||
private static async Task CycleThroughChatMessages(bool increase, List<ChatMessage> ___messages)
|
||||
private static async void CycleThroughChatMessages(bool increase, List<ChatMessage> ___messages)
|
||||
{
|
||||
isChatRunning = true;
|
||||
await Task.Delay(200);
|
||||
string toSpeak = " ";
|
||||
if (increase)
|
||||
{
|
||||
@@ -79,6 +78,7 @@ namespace stardew_access.Patches
|
||||
});
|
||||
|
||||
MainClass.screenReader.Say(toSpeak, true);
|
||||
await Task.Delay(200);
|
||||
isChatRunning = false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user