From aa584a8f4451a5715c6e79eb499a3ccc5424445b Mon Sep 17 00:00:00 2001 From: XtraCube <72575280+XtraCube@users.noreply.github.com> Date: Sun, 18 May 2025 09:25:26 -0400 Subject: [PATCH] update role notifications to match custom role colors --- MiraAPI/Patches/Options/NotificationPopperPatch.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()), "" ),