Added `j` and `l` for cycling through items in new game menu

master
shoaib11120 2021-12-14 22:51:38 +05:30
parent 7c8bd816ce
commit 3d48a37f87
2 changed files with 5 additions and 3 deletions

View File

@ -7,7 +7,6 @@ using StardewValley.Menus;
using Microsoft.Xna.Framework.Graphics;
using stardew_access.Patches;
using AutoHotkey.Interop;
using Microsoft.Xna.Framework;
namespace stardew_access
{

View File

@ -345,11 +345,14 @@ namespace stardew_access.Patches
bool isNextArrowPressed = Game1.input.GetKeyboardState().IsKeyDown(Microsoft.Xna.Framework.Input.Keys.Right);
bool isPrevArrowPressed = Game1.input.GetKeyboardState().IsKeyDown(Microsoft.Xna.Framework.Input.Keys.Left);
if (isNextArrowPressed && !isRunning)
bool isLPressed = Game1.input.GetKeyboardState().IsKeyDown(Microsoft.Xna.Framework.Input.Keys.L);
bool isJPressed = Game1.input.GetKeyboardState().IsKeyDown(Microsoft.Xna.Framework.Input.Keys.J);
if ((isNextArrowPressed || isLPressed ) && !isRunning)
{
_ = CycleThroughItems(true, ___nameBox, ___farmnameBox, ___favThingBox, ___skipIntroButton, ___okButton, ___backButton);
}
else if (isPrevArrowPressed && !isRunning)
else if ((isPrevArrowPressed || isJPressed) && !isRunning)
{
_ = CycleThroughItems(false, ___nameBox, ___farmnameBox, ___favThingBox, ___skipIntroButton, ___okButton, ___backButton);
}