mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 22:39:22 +00:00
[CVRGizmos] cleanup & new gizmos
This commit is contained in:
parent
6f24bd6ff3
commit
e512c9dd70
21 changed files with 724 additions and 565 deletions
|
@ -2,7 +2,7 @@
|
|||
using MelonLoader;
|
||||
using System.Collections;
|
||||
|
||||
namespace CVRGizmos;
|
||||
namespace NAK.CVRGizmos;
|
||||
|
||||
public class CVRGizmos : MelonMod
|
||||
{
|
||||
|
@ -17,6 +17,8 @@ public class CVRGizmos : MelonMod
|
|||
|
||||
public override void OnInitializeMelon()
|
||||
{
|
||||
EntryEnabled.OnEntryValueChangedUntyped.Subscribe(CVRGizmosEnabled);
|
||||
EntryLocalOnly.OnEntryValueChangedUntyped.Subscribe(CVRGizmosLocalOnly);
|
||||
MelonLoader.MelonCoroutines.Start(WaitForLocalPlayer());
|
||||
}
|
||||
|
||||
|
@ -28,13 +30,13 @@ public class CVRGizmos : MelonMod
|
|||
PlayerSetup.Instance.gameObject.AddComponent<CVRGizmoManager>();
|
||||
}
|
||||
|
||||
public void CVRGizmosEnabled()
|
||||
public void CVRGizmosEnabled(object arg1, object arg2)
|
||||
{
|
||||
if (!CVRGizmoManager.Instance) return;
|
||||
CVRGizmoManager.Instance.EnableGizmos(EntryEnabled.Value);
|
||||
}
|
||||
|
||||
public void CVRGizmosLocalOnly()
|
||||
public void CVRGizmosLocalOnly(object arg1, object arg2)
|
||||
{
|
||||
if (!CVRGizmoManager.Instance) return;
|
||||
CVRGizmoManager.Instance.g_localOnly = EntryLocalOnly.Value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue