From b309f067c2150291b6d09c0a96524d58a46f6ac3 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 26 Nov 2019 20:32:12 -0500 Subject: [PATCH] Update VK to 0.9.7 and prevent players to move to button positions --- src/SMAPI.Mods.VirtualKeyboard/KeyButton.cs | 1 + src/SMAPI.Mods.VirtualKeyboard/VirtualToggle.cs | 2 +- src/SMAPI.Mods.VirtualKeyboard/manifest.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SMAPI.Mods.VirtualKeyboard/KeyButton.cs b/src/SMAPI.Mods.VirtualKeyboard/KeyButton.cs index e68e880b..9eabec59 100644 --- a/src/SMAPI.Mods.VirtualKeyboard/KeyButton.cs +++ b/src/SMAPI.Mods.VirtualKeyboard/KeyButton.cs @@ -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; diff --git a/src/SMAPI.Mods.VirtualKeyboard/VirtualToggle.cs b/src/SMAPI.Mods.VirtualKeyboard/VirtualToggle.cs index e6809c58..ee6da9d3 100644 --- a/src/SMAPI.Mods.VirtualKeyboard/VirtualToggle.cs +++ b/src/SMAPI.Mods.VirtualKeyboard/VirtualToggle.cs @@ -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; } } } diff --git a/src/SMAPI.Mods.VirtualKeyboard/manifest.json b/src/SMAPI.Mods.VirtualKeyboard/manifest.json index ffd121a6..f55c27c9 100644 --- a/src/SMAPI.Mods.VirtualKeyboard/manifest.json +++ b/src/SMAPI.Mods.VirtualKeyboard/manifest.json @@ -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",