From 8c046268a8929d3bc2db60d04813627a7e27441e Mon Sep 17 00:00:00 2001 From: NotAKidoS <37721153+NotAKidOnSteam@users.noreply.github.com> Date: Thu, 16 Mar 2023 01:44:07 -0500 Subject: [PATCH] rename mod --- FuckCohtml/{FuckCohtml.cs => FuckMetrics.cs} | 4 ++-- FuckCohtml/HarmonyPatches.cs | 10 +++++----- FuckCohtml/Main.cs | 16 ++++++++-------- FuckCohtml/Properties/AssemblyInfo.cs | 14 +++++++------- FuckCohtml/format.json | 12 ++++++------ 5 files changed, 28 insertions(+), 28 deletions(-) rename FuckCohtml/{FuckCohtml.cs => FuckMetrics.cs} (94%) diff --git a/FuckCohtml/FuckCohtml.cs b/FuckCohtml/FuckMetrics.cs similarity index 94% rename from FuckCohtml/FuckCohtml.cs rename to FuckCohtml/FuckMetrics.cs index 4d944b0..f253ea0 100644 --- a/FuckCohtml/FuckCohtml.cs +++ b/FuckCohtml/FuckMetrics.cs @@ -1,9 +1,9 @@ using ABI_RC.Core.InteractionSystem; using ABI_RC.Core.IO; -namespace NAK.Melons.FuckCohtml +namespace NAK.Melons.FuckMetrics { - public static class FuckCohtml + public static class FuckMetrics { public static void ToggleMetrics(bool disable) { diff --git a/FuckCohtml/HarmonyPatches.cs b/FuckCohtml/HarmonyPatches.cs index 759140e..282c58c 100644 --- a/FuckCohtml/HarmonyPatches.cs +++ b/FuckCohtml/HarmonyPatches.cs @@ -2,7 +2,7 @@ using ABI_RC.Core.Player; using HarmonyLib; -namespace NAK.Melons.FuckCohtml.HarmonyPatches; +namespace NAK.Melons.FuckMetrics.HarmonyPatches; class PlayerSetupPatches { @@ -10,8 +10,8 @@ class PlayerSetupPatches [HarmonyPatch(typeof(PlayerSetup), "Start")] private static void Postfix_PlayerSetup_Start() { - FuckCohtml.ToggleMetrics(FuckCohtmlMod.EntryDisableMetrics.Value); - FuckCohtml.ToggleCoreUpdates(FuckCohtmlMod.EntryDisableCoreUpdates.Value); + FuckMetrics.ToggleMetrics(FuckMetricsMod.EntryDisableMetrics.Value); + FuckMetrics.ToggleCoreUpdates(FuckMetricsMod.EntryDisableCoreUpdates.Value); } } @@ -21,7 +21,7 @@ class CVR_MenuManagerPatches [HarmonyPatch(typeof(CVR_MenuManager), "ToggleQuickMenu", new Type[] { typeof(bool) })] private static void Postfix_CVR_MenuManager_ToggleQuickMenu(bool show) { - if (!FuckCohtmlMod.EntryDisableCoreUpdates.Value) return; + if (!FuckMetricsMod.EntryDisableCoreUpdates.Value) return; if (show) { CVR_MenuManager.Instance.SendCoreUpdate(); @@ -36,7 +36,7 @@ class ViewManagerPatches [HarmonyPatch(typeof(ViewManager), "UiStateToggle", new Type[] { typeof(bool) })] private static void Postfix_ViewManager_UiStateToggle(bool show) { - if (!FuckCohtmlMod.EntryDisableMetrics.Value) return; + if (!FuckMetricsMod.EntryDisableMetrics.Value) return; if (show) { CVR_MenuManager.Instance.SendCoreUpdate(); diff --git a/FuckCohtml/Main.cs b/FuckCohtml/Main.cs index 9237b66..5bd8aec 100644 --- a/FuckCohtml/Main.cs +++ b/FuckCohtml/Main.cs @@ -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 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 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) diff --git a/FuckCohtml/Properties/AssemblyInfo.cs b/FuckCohtml/Properties/AssemblyInfo.cs index 8878400..389282b 100644 --- a/FuckCohtml/Properties/AssemblyInfo.cs +++ b/FuckCohtml/Properties/AssemblyInfo.cs @@ -1,21 +1,21 @@ using MelonLoader; -using NAK.Melons.FuckCohtml.Properties; +using NAK.Melons.FuckMetrics.Properties; using System.Reflection; [assembly: AssemblyVersion(AssemblyInfoParams.Version)] [assembly: AssemblyFileVersion(AssemblyInfoParams.Version)] [assembly: AssemblyInformationalVersion(AssemblyInfoParams.Version)] -[assembly: AssemblyTitle(nameof(NAK.Melons.FuckCohtml))] +[assembly: AssemblyTitle(nameof(NAK.Melons.FuckMetrics))] [assembly: AssemblyCompany(AssemblyInfoParams.Author)] -[assembly: AssemblyProduct(nameof(NAK.Melons.FuckCohtml))] +[assembly: AssemblyProduct(nameof(NAK.Melons.FuckMetrics))] [assembly: MelonInfo( - typeof(NAK.Melons.FuckCohtml.FuckCohtmlMod), - nameof(NAK.Melons.FuckCohtml), + typeof(NAK.Melons.FuckMetrics.FuckMetricsMod), + nameof(NAK.Melons.FuckMetrics), AssemblyInfoParams.Version, AssemblyInfoParams.Author, - downloadLink: "https://github.com/NotAKidOnSteam/FuckCohtml" + downloadLink: "https://github.com/NotAKidOnSteam/FuckMetrics" )] [assembly: MelonGame("Alpha Blend Interactive", "ChilloutVR")] @@ -23,7 +23,7 @@ using System.Reflection; [assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.MONO)] [assembly: HarmonyDontPatchAll] -namespace NAK.Melons.FuckCohtml.Properties; +namespace NAK.Melons.FuckMetrics.Properties; internal static class AssemblyInfoParams { public const string Version = "1.0.1"; diff --git a/FuckCohtml/format.json b/FuckCohtml/format.json index 966411e..54ce3d2 100644 --- a/FuckCohtml/format.json +++ b/FuckCohtml/format.json @@ -1,12 +1,12 @@ { "_id": -1, - "name": "FuckCohtml", - "modversion": "1.0.0", + "name": "FuckMetrics", + "modversion": "1.0.1", "gameversion": "2022r170", "loaderversion": "0.5.7", "modtype": "Mod", "author": "NotAKidoS", - "description": "This mod disables the CohtmlView components on the menus and forces them to render intermittently when closed. This helps to alleviate any hitching and performance issues that may arise, particularly with FPS drops while unmuted in online instances.\n\nPlease view the Github README for more info.", + "description": "This mod disables UpdateMetrics & SendCoreUpdate on the menus while closed. This helps to alleviate any hitching and performance issues that may arise, particularly with FPS drops while unmuted in online instances.\n\nPlease view the Github README for more info.", "searchtags": [ "cohtml", "menus", @@ -17,8 +17,8 @@ "requirements": [ "None" ], - "downloadlink": "https://github.com/NotAKidOnSteam/FuckCohtml/releases/download/v1.0.0/FuckCohtml.dll", - "sourcelink": "https://github.com/NotAKidOnSteam/FuckCohtml/", - "changelog": "- Initial Release", + "downloadlink": "https://github.com/NotAKidOnSteam/FuckMetrics/releases/download/v1.0.1/FuckMetrics.dll", + "sourcelink": "https://github.com/NotAKidOnSteam/FuckMetrics/", + "changelog": "- Initial Release\n- Renamed to FuckMetrics", "embedcolor": "#8ed6fb" } \ No newline at end of file