From ac87003d0aabf8135bd7647238ab21f652954c72 Mon Sep 17 00:00:00 2001 From: Atony <75191600+AtonyGit@users.noreply.github.com> Date: Tue, 12 May 2026 21:46:01 -0500 Subject: [PATCH] Fix color not applying on game mode name --- MiraAPI/Patches/GameModes/HudPatches.cs | 3 ++- MiraAPI/Patches/Options/LobbyViewPanePatches.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MiraAPI/Patches/GameModes/HudPatches.cs b/MiraAPI/Patches/GameModes/HudPatches.cs index 8ca96a3..5ffa4fb 100644 --- a/MiraAPI/Patches/GameModes/HudPatches.cs +++ b/MiraAPI/Patches/GameModes/HudPatches.cs @@ -1,5 +1,6 @@ using HarmonyLib; using MiraAPI.GameModes; +using Reactor.Utilities.Extensions; using TMPro; using UnityEngine; @@ -33,7 +34,7 @@ internal static class HudPatches gmText.SetActive(false); modelText.SetActive(false); _text = gmTextClone.GetComponent(); - _text.text = CustomGameModeManager.ActiveMode?.Name ?? "Classic"; + _text.text = CustomGameModeManager.ActiveMode != null ? $"{CustomGameModeManager.ActiveMode.Name}" : "Classic"; } private static TextMeshPro? _text; diff --git a/MiraAPI/Patches/Options/LobbyViewPanePatches.cs b/MiraAPI/Patches/Options/LobbyViewPanePatches.cs index 0ad86f0..94f510a 100644 --- a/MiraAPI/Patches/Options/LobbyViewPanePatches.cs +++ b/MiraAPI/Patches/Options/LobbyViewPanePatches.cs @@ -354,7 +354,7 @@ public static class LobbyViewPanePatches if (viewSettingsInfoPanel.titleText.text.Contains("Game Mode")) { viewSettingsInfoPanel.titleText.text = TranslationController.Instance.GetString( - data.Title, $"{CustomGameModeManager.ActiveMode}" + data.Title, CustomGameModeManager.ActiveMode != null ? $"{CustomGameModeManager.ActiveMode.Name}" : "Classic" ); } }