diff --git a/src/Patches/Client/ClientPatch.cs b/src/Patches/Client/ClientPatch.cs index 31b9c4b..ec91cb7 100644 --- a/src/Patches/Client/ClientPatch.cs +++ b/src/Patches/Client/ClientPatch.cs @@ -15,11 +15,21 @@ namespace BetterAmongUs.Patches.Client; [HarmonyPatch] internal static class ClientPatch { + private static GameObject? friendsButton; + internal static void Unpatch() + { + if (friendsButton != null) + { + friendsButton.SetSpriteColors(Color.white); + } + } + [HarmonyPatch(typeof(AccountTab), nameof(AccountTab.Awake))] [HarmonyPostfix] private static void AccountTab_Awake_Postfix(AccountTab __instance) { // Apply custom UI colors to the friends button + friendsButton = __instance.signInStatusComponent.friendsButton; __instance.signInStatusComponent.friendsButton.SetUIColors(); } diff --git a/src/Patches/Client/OptionsMenuBehaviourPatch.cs b/src/Patches/Client/OptionsMenuBehaviourPatch.cs index 39dce96..c41cc2b 100644 --- a/src/Patches/Client/OptionsMenuBehaviourPatch.cs +++ b/src/Patches/Client/OptionsMenuBehaviourPatch.cs @@ -88,6 +88,7 @@ internal static class OptionsMenuBehaviourPatch // Clean up BAU mod components and return to vanilla Among Us ConsoleManager.DetachConsole(); BetterNotificationManager.Detach(); + ClientPatch.Unpatch(); Harmony.UnpatchAll(); ModManager.Instance.ModStamp.gameObject.SetActive(false); SceneChanger.ChangeScene("MainMenu");