mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 23:09:22 +00:00
[DesktopVRSwitch] More fixes for 2023r171.
This commit is contained in:
parent
9f01f8e6a7
commit
3d6b1f75a4
17 changed files with 67 additions and 62 deletions
|
@ -21,10 +21,14 @@ public class CohtmlHudTracker : VRModeTracker
|
|||
DesktopVRSwitch.Logger.Msg("Configuring new hud affinity for CohtmlHud.");
|
||||
|
||||
CohtmlHud.Instance.gameObject.transform.parent = Utils.GetPlayerCameraObject(args.IsUsingVr).transform;
|
||||
|
||||
// This handles rotation and position
|
||||
CVRTools.ConfigureHudAffinity();
|
||||
CohtmlHud.Instance.gameObject.transform.localScale = new Vector3(1.2f, 1f, 1.2f);
|
||||
|
||||
CohtmlHud.Instance.markMenuAsReady();
|
||||
// required to set menu vr mode (why is it offset in js?)
|
||||
CohtmlHud.uiCoreGameData.isVr = args.IsUsingVr;
|
||||
if (CohtmlHud.Instance._isReady)
|
||||
CohtmlHud.Instance.hudView.View.TriggerEvent("updateCoreGameVars", CohtmlHud.uiCoreGameData);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue