diff --git a/MiraAPI/Patches/Options/NotificationPopperPatch.cs b/MiraAPI/Patches/Options/NotificationPopperPatch.cs index 02efe2b..e6d394a 100644 --- a/MiraAPI/Patches/Options/NotificationPopperPatch.cs +++ b/MiraAPI/Patches/Options/NotificationPopperPatch.cs @@ -2,6 +2,8 @@ using HarmonyLib; using Il2CppSystem; using MiraAPI.Roles; +using UnityEngine; +using Object = Il2CppSystem.Object; namespace MiraAPI.Patches.Options; @@ -23,15 +25,13 @@ public static class NotificationPopperPatch return true; } - var text = teamType == RoleTeamTypes.Crewmate - ? Palette.CrewmateSettingChangeText.ToTextColor() - : Palette.ImpostorRed.ToTextColor(); + var textColor = customRole.OptionsMenuColor.ToTextColor(); var item = TranslationController.Instance.GetString( StringNames.LobbyChangeSettingNotificationRole, string.Concat( "", - text, + textColor, TranslationController.Instance.GetString(key, Array.Empty()), "" ),