From 3248dd6335152f342a45d39db1973bb2a9f99fc1 Mon Sep 17 00:00:00 2001 From: NotAKidoS <37721153+NotAKidOnSteam@users.noreply.github.com> Date: Wed, 15 Feb 2023 05:26:18 -0600 Subject: [PATCH] w --- MenuScalePatch/HarmonyPatches.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MenuScalePatch/HarmonyPatches.cs b/MenuScalePatch/HarmonyPatches.cs index ac38eb2..f8cac64 100644 --- a/MenuScalePatch/HarmonyPatches.cs +++ b/MenuScalePatch/HarmonyPatches.cs @@ -129,7 +129,7 @@ internal class HarmonyPatches //shouldnt run if switching menus on desktop if (!MetaPort.Instance.isUsingVr) { - if (!show && MainMenuHelper.Instance.enabled) + if (!show && MainMenuHelper.Instance.MenuIsOpen) { return false; } @@ -144,7 +144,7 @@ internal class HarmonyPatches //hook menu open/close [HarmonyPrefix] [HarmonyPatch(typeof(ViewManager), "UiStateToggle", new Type[] { typeof(bool) })] - private static bool Postfix_ViewManager_UiStateToggle(bool show, ref ViewManager __instance, ref bool ____gameMenuOpen) + private static bool Prefix_ViewManager_UiStateToggle(bool show, ref ViewManager __instance, ref bool ____gameMenuOpen) { if (MainMenuHelper.Instance == null) return true; if (show != ____gameMenuOpen) @@ -157,7 +157,7 @@ internal class HarmonyPatches //shouldnt run if switching menus on desktop if (!MetaPort.Instance.isUsingVr) { - if (!show && QuickMenuHelper.Instance.enabled) + if (!show && QuickMenuHelper.Instance.MenuIsOpen) { return false; }