rename mod

This commit is contained in:
NotAKidoS 2023-03-16 01:44:07 -05:00
parent b3418ec799
commit 8c046268a8
5 changed files with 28 additions and 28 deletions

View file

@ -1,34 +0,0 @@
using ABI_RC.Core.InteractionSystem;
using ABI_RC.Core.IO;
namespace NAK.Melons.FuckCohtml
{
public static class FuckCohtml
{
public static void ToggleMetrics(bool disable)
{
var job = SchedulerSystem.Instance.activeJobs.FirstOrDefault(pair => pair.Job.Method.Name == "UpdateMetrics").Job;
if (!disable && job == null)
{
SchedulerSystem.AddJob(new SchedulerSystem.Job(ViewManager.Instance.UpdateMetrics), 0f, 0.5f, -1);
}
else if (disable && job != null)
{
SchedulerSystem.RemoveJob(job);
}
}
public static void ToggleCoreUpdates(bool disable)
{
var job = SchedulerSystem.Instance.activeJobs.FirstOrDefault(pair => pair.Job.Method.Name == "SendCoreUpdate").Job;
if (!disable && job == null)
{
SchedulerSystem.AddJob(new SchedulerSystem.Job(CVR_MenuManager.Instance.SendCoreUpdate), 0f, 0.1f, -1);
}
else if (disable && job != null)
{
SchedulerSystem.RemoveJob(job);
}
}
}
}