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,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)
{

View file

@ -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();

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)

View file

@ -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";

View file

@ -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"
}