mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-03 18:39:23 +00:00
17 lines
516 B
C#
17 lines
516 B
C#
using ABI_RC.Core.UI;
|
|
using UnityEngine;
|
|
|
|
namespace ml_drs
|
|
{
|
|
public class DesktopReticleSwitch : MelonLoader.MelonMod
|
|
{
|
|
public override void OnUpdate()
|
|
{
|
|
if(Input.GetKey(KeyCode.LeftControl) && Input.GetKeyDown(KeyCode.R))
|
|
{
|
|
if((CohtmlHud.Instance != null) && (CohtmlHud.Instance.desktopPointer != null))
|
|
CohtmlHud.Instance.desktopPointer.SetActive(!CohtmlHud.Instance.desktopPointer.activeSelf);
|
|
}
|
|
}
|
|
}
|
|
}
|