diff --git a/Reactor/Patches/ReactorPingTracker.cs b/Reactor/Patches/ReactorPingTracker.cs index d117cbd..470111f 100644 --- a/Reactor/Patches/ReactorPingTracker.cs +++ b/Reactor/Patches/ReactorPingTracker.cs @@ -9,10 +9,10 @@ namespace Reactor.Patches; /// public static class ReactorPingTracker { - private readonly struct ModIdentifier(string modName, string version, bool isDevBuild, Func? shouldShow) + private readonly struct ModIdentifier(string modName, string version, Func? shouldShow, bool isDevBuild) { private static string NormalColor => !AmongUsClient.Instance.IsGameStarted ? "#fff" : "#fff7"; - private static string DevColor => !AmongUsClient.Instance.IsGameStarted ? "#f00" : "#f007"; + private static string DevColor => !AmongUsClient.Instance.IsGameStarted ? "#f00" : "#f447"; public string ModName => modName; public string Text => $"{ModName} {version}"; @@ -27,9 +27,9 @@ private readonly struct ModIdentifier(string modName, string version, bool isDev /// /// The user-friendly name of the mod. Can contain spaces or special characters. /// The version of the mod. - /// If this version is a development or beta version. If true, it will display the mod in red in the PingTracker. /// This function will be called every frame to determine if the mod should be displayed or not. This function should return false if your mod is currently disabled or has no effect on gameplay at the time. If you want the mod to be displayed at all times, you can set this parameter to null to avoid delegate calls. - public static void RegisterMod(string modName, string version, bool isDevOrBetaBuild, Func? shouldShow) + /// If this version is a development or beta version. If true, it will display the mod in red in the PingTracker. + public static void RegisterMod(string modName, string version, Func? shouldShow, bool isDevOrBetaBuild = false) { if (modName.Length + version.Length > 60) { @@ -49,7 +49,7 @@ public static void RegisterMod(string modName, string version, bool isDevOrBetaB return; } - _modIdentifiers.Add(new ModIdentifier(modName, version, isDevOrBetaBuild, shouldShow)); + _modIdentifiers.Add(new ModIdentifier(modName, version, shouldShow, isDevOrBetaBuild)); _modIdentifiers.Sort((a, b) => string.Compare(a.ModName, b.ModName, StringComparison.Ordinal));