From 9fee74f5873cd6b6e082f9be3f64873d9eb3ef06 Mon Sep 17 00:00:00 2001 From: NotAKidoS <37721153+NotAKidOnSteam@users.noreply.github.com> Date: Sat, 29 Oct 2022 06:34:11 -0500 Subject: [PATCH] fix hud scale --- DesktopVRSwitch/Main.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/DesktopVRSwitch/Main.cs b/DesktopVRSwitch/Main.cs index 497f2cf..d0f2cd7 100644 --- a/DesktopVRSwitch/Main.cs +++ b/DesktopVRSwitch/Main.cs @@ -16,11 +16,6 @@ using Valve.VR; using HarmonyLib; using Object = UnityEngine.Object; -//Remove VRIK on VR to Desktop -//Remove LookAtIK on Desktop to VR - -//Set Desktop camera to head again...? -//Recenter collision position (in VR it shifts around) //tell the game to change VRMode/DesktopMode for Steam/Discord presence //RichPresence.PopulatePresence(); @@ -61,7 +56,8 @@ public class DesktopVRSwitch : MelonMod MelonCoroutines.Start(AttemptPlatformSwitch()); //how long we wait until we assume an error occured - timedSwitch = Time.time + 10f; + if (m_entryTimedErrorCatch.Value) + timedSwitch = Time.time + 10f; } //catch if coroutine just decided to not finish... which happens? @@ -71,7 +67,7 @@ public class DesktopVRSwitch : MelonMod MelonCoroutines.Start(AttemptPlatformSwitch(true)); } - //correct player position + //correct player position while switching if (isAttemptingSwitch && !MovementSystem.Instance.canMove) { MovementSystem.Instance.TeleportToPosRot(avatarPos, avatarRot, false); @@ -273,6 +269,7 @@ public class DesktopVRSwitch : MelonMod //sets hud position, rotation, and scale based on MetaPort isUsingVr CVRTools.ConfigureHudAffinity(); + CohtmlHud.Instance.gameObject.transform.localScale = new Vector3(1.2f, 1f, 1.2f); } catch (Exception) {