master
Mohammad Shoaib Khan 2022-08-23 08:58:50 +05:30
parent 52c8b6e3e3
commit 589ec8eff8
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ namespace stardew_access.Patches
{ {
int x = Game1.getMouseX(true), y = Game1.getMouseY(true); // Mouse x and y position int x = Game1.getMouseX(true), y = Game1.getMouseY(true); // Mouse x and y position
bool isPrimaryInfoKeyPressed = MainClass.Config.PrimaryInfoKey.JustPressed(); // For narrating animal details bool isPrimaryInfoKeyPressed = MainClass.Config.PrimaryInfoKey.JustPressed(); // For narrating animal details
bool isEnterPressed = Game1.input.GetKeyboardState().IsKeyDown(Microsoft.Xna.Framework.Input.Keys.Enter); // For escaping/unselecting from the animal name text box bool isEscPressed = Game1.input.GetKeyboardState().IsKeyDown(Microsoft.Xna.Framework.Input.Keys.Escape); // For escaping/unselecting from the animal name text box
string toSpeak = " ", details = " "; string toSpeak = " ", details = " ";
isOnFarm = ___movingAnimal; isOnFarm = ___movingAnimal;
@ -40,7 +40,7 @@ namespace stardew_access.Patches
{ {
toSpeak = ___textBox.Text; toSpeak = ___textBox.Text;
if (isEnterPressed) if (isEscPressed)
{ {
___textBox.Selected = false; ___textBox.Selected = false;
} }