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,19 +1,19 @@
using MelonLoader;
namespace NAK.Melons.FuckCohtml;
namespace NAK.Melons.FuckMetrics;
public class FuckCohtmlMod : MelonMod
public class FuckMetricsMod : MelonMod
{
public static MelonLogger.Instance Logger;
public const string SettingsCategory = "FuckCohtml";
public static readonly MelonPreferences_Category CategoryFuckCohtml = MelonPreferences.CreateCategory(SettingsCategory);
public const string SettingsCategory = "FuckMetrics";
public static readonly MelonPreferences_Category CategoryFuckMetrics = MelonPreferences.CreateCategory(SettingsCategory);
public static readonly MelonPreferences_Entry<bool> EntryDisableMetrics =
CategoryFuckCohtml.CreateEntry("Disable Metrics", true, description: "Disables menu metrics (FPS & Ping). Updates once on menu open if disabled.");
CategoryFuckMetrics.CreateEntry("Disable Metrics", true, description: "Disables menu metrics (FPS & Ping). Updates once on menu open if disabled.");
public static readonly MelonPreferences_Entry<bool> EntryDisableCoreUpdates =
CategoryFuckCohtml.CreateEntry("Disable Core Updates", true, description: "Disables menu core updates (Gamerule Icons & Debug Status). Updates once on menu open if disabled.");
CategoryFuckMetrics.CreateEntry("Disable Core Updates", true, description: "Disables menu core updates (Gamerule Icons & Debug Status). Updates once on menu open if disabled.");
public override void OnInitializeMelon()
{
@ -27,12 +27,12 @@ public class FuckCohtmlMod : MelonMod
private void OnDisableMetrics(object arg1, object arg2)
{
FuckCohtml.ToggleMetrics(EntryDisableMetrics.Value);
FuckMetrics.ToggleMetrics(EntryDisableMetrics.Value);
}
private void OnDisableCoreUpdates(object arg1, object arg2)
{
FuckCohtml.ToggleCoreUpdates(EntryDisableCoreUpdates.Value);
FuckMetrics.ToggleCoreUpdates(EntryDisableCoreUpdates.Value);
}
private void ApplyPatches(Type type)