Update VK to 0.9.7 and prevent players to move to button positions

This commit is contained in:
Chris 2019-11-26 20:32:12 -05:00
parent f3eaa564e8
commit b309f067c2
3 changed files with 3 additions and 2 deletions

View File

@ -76,6 +76,7 @@ namespace StardewModdingAPI.Mods.VirtualKeyboard
{
if (this.buttonRectangle.Contains(screenPixels.X * Game1.options.zoomLevel, screenPixels.Y * Game1.options.zoomLevel))
{
Toolbar.toolbarPressed = true;
return true;
}
return false;

View File

@ -2,7 +2,6 @@ using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using StardewModdingAPI.Events;
using StardewValley;
using StardewValley.Menus;
@ -55,6 +54,7 @@ namespace StardewModdingAPI.Mods.VirtualKeyboard
if (Game1.activeClickableMenu is IClickableMenu menu)
{
menu.exitThisMenu();
Toolbar.toolbarPressed = true;
}
}
}

View File

@ -1,7 +1,7 @@
{
"Name": "VirtualKeyboard",
"Author": "MartyrPher",
"Version": "0.9.6",
"Version": "0.9.7",
"MinimumApiVersion": "2.10.1",
"Description": "A much needed Virtual Keyboard for SMAPI Android.",
"UniqueID": "VirtualKeyboard",