-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCatUI.cs
27 lines (22 loc) · 899 Bytes
/
CatUI.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.Threading.Tasks;
using ABI_RC.Core.InteractionSystem;
using Harmony;
using MelonLoader;
namespace CatUI
{
public class CatUI : MelonMod
{
private static Harmony.HarmonyInstance _instance = new Harmony.HarmonyInstance(Guid.NewGuid().ToString());
private static void CatUIPatch(bool __0)
{
CatUIMain.CatUIPanel.gameObject.SetActive(__0);
}
public override void OnApplicationStart()
{
_instance.Patch(typeof(CVR_MenuManager).GetMethod(nameof(CVR_MenuManager.ToggleQuickMenu)), typeof(CatUI).GetMethod("CatUIPatch", System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.NonPublic).ToNewHarmonyMethod());
MelonCoroutines.Start(CatUIMain.InitializeCatUI());
}
//Examples are in CatUIMain.cs just scroll down
}
}