mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
losing it
This commit is contained in:
parent
d15b446960
commit
0b035646d1
4 changed files with 24 additions and 18 deletions
|
@ -91,7 +91,6 @@ internal class HarmonyPatches
|
|||
{
|
||||
QuickMenuHelper helper = __instance.quickMenu.gameObject.AddComponent<QuickMenuHelper>();
|
||||
helper.handAnchor = ____leftVrAnchor.transform;
|
||||
helper.enabled = false;
|
||||
}
|
||||
catch (System.Exception e)
|
||||
{
|
||||
|
@ -106,8 +105,7 @@ internal class HarmonyPatches
|
|||
{
|
||||
try
|
||||
{
|
||||
MainMenuHelper helper = __instance.gameObject.AddComponent<MainMenuHelper>();
|
||||
helper.enabled = false;
|
||||
__instance.gameObject.AddComponent<MainMenuHelper>();
|
||||
}
|
||||
catch (System.Exception e)
|
||||
{
|
||||
|
@ -126,7 +124,7 @@ internal class HarmonyPatches
|
|||
____quickMenuOpen = show;
|
||||
__instance.quickMenu.enabled = true;
|
||||
__instance.quickMenuAnimator.SetBool("Open", show);
|
||||
QuickMenuHelper.Instance.enabled = show;
|
||||
QuickMenuHelper.Instance.MenuIsOpen = show;
|
||||
QuickMenuHelper.Instance.UpdateWorldAnchors(show);
|
||||
//shouldnt run if switching menus on desktop
|
||||
if (!MetaPort.Instance.isUsingVr)
|
||||
|
@ -154,7 +152,7 @@ internal class HarmonyPatches
|
|||
____gameMenuOpen = show;
|
||||
__instance.gameMenuView.enabled = true;
|
||||
__instance.uiMenuAnimator.SetBool("Open", show);
|
||||
MainMenuHelper.Instance.enabled = show;
|
||||
MainMenuHelper.Instance.MenuIsOpen = show;
|
||||
MainMenuHelper.Instance.UpdateWorldAnchors(show);
|
||||
//shouldnt run if switching menus on desktop
|
||||
if (!MetaPort.Instance.isUsingVr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue