Used a different method to detect if any text box is active or not

This fixes the issue when more than one text boxes are present in a menu
This commit is contained in:
Mohammad Shoaib Khan
2023-02-22 17:45:59 +05:30
parent cf0e46ecdd
commit 8059e09089
5 changed files with 12 additions and 10 deletions

View File

@@ -426,7 +426,7 @@ namespace stardew_access.Patches
___textBox.Selected = false;
}
if (MainClass.isAnyTextBoxActive) return;
if (TextBoxPatch.isAnyTextBoxActive) return;
string toSpeak = "";
int x = Game1.getMouseX(true), y = Game1.getMouseY(true); // Mouse x and y position
@@ -729,6 +729,7 @@ namespace stardew_access.Patches
InventoryUtils.hoveredItemQueryKey = "";
InventoryUtils.prevSlotIndex = -999;
TextBoxPatch.activeTextBoxes = "";
}
#endregion