mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
w
This commit is contained in:
parent
0b035646d1
commit
3248dd6335
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue