Don't disable CohtmlView, only enable it.

Fixed hitching & potential crash when opening menu after a long time of it being closed. Misread the source code when remaking the method, so I assumed the CohtmlView was disabled when closing menu.
This commit is contained in:
NotAKidoS 2023-02-12 04:51:21 -06:00
parent 10f5fa49d7
commit 7cc8dfc6e5
3 changed files with 6 additions and 6 deletions

View file

@ -124,7 +124,7 @@ internal class HarmonyPatches
if (show != ____quickMenuOpen)
{
____quickMenuOpen = show;
__instance.quickMenu.enabled = show;
__instance.quickMenu.enabled = true;
__instance.quickMenuAnimator.SetBool("Open", show);
QuickMenuHelper.Instance.enabled = show;
QuickMenuHelper.Instance.UpdateWorldAnchors(show);
@ -152,7 +152,7 @@ internal class HarmonyPatches
if (show != ____gameMenuOpen)
{
____gameMenuOpen = show;
__instance.gameMenuView.enabled = show;
__instance.gameMenuView.enabled = true;
__instance.uiMenuAnimator.SetBool("Open", show);
MainMenuHelper.Instance.enabled = show;
MainMenuHelper.Instance.UpdateWorldAnchors(show);

View file

@ -25,6 +25,6 @@ using System.Reflection;
namespace NAK.Melons.MenuScalePatch.Properties;
internal static class AssemblyInfoParams
{
public const string Version = "4.2.1";
public const string Version = "4.2.2";
public const string Author = "NotAKidoS";
}

View file

@ -1,7 +1,7 @@
{
"_id": 95,
"name": "MenuScalePatch",
"modversion": "4.2.1",
"modversion": "4.2.2",
"gameversion": "2022r170",
"loaderversion": "0.5.7",
"modtype": "Mod",
@ -16,8 +16,8 @@
"requirements": [
"None"
],
"downloadlink": "https://github.com/NotAKidOnSteam/MenuScalePatch/releases/download/v4.2.1/MenuScalePatch.dll",
"downloadlink": "https://github.com/NotAKidOnSteam/MenuScalePatch/releases/download/v4.2.2/MenuScalePatch.dll",
"sourcelink": "https://github.com/NotAKidOnSteam/MenuScalePatch/",
"changelog": "- Added option for menus to be attached to you in Desktop and VR.\n- Added option to use independent head movement while in a menu.",
"changelog": "- Fixed hitching & potential crash when opening menu after a long time of it being closed.\n- Don't disable CohtmlView, only enable it.'",
"embedcolor": "804221"
}