From 98173ff922ad9c1c2a59d58a173a2f6188622aa6 Mon Sep 17 00:00:00 2001 From: Limeau <148590907+Limeau@users.noreply.github.com> Date: Thu, 13 Aug 2026 00:07:47 -0700 Subject: [PATCH] hide 'ehr-host' text setting(hold because ehr is translating everything to korean) (#674) --- Modules/OptionHolder.cs | 3 +++ Modules/Utils.cs | 2 +- Resources/Lang/en_US.json | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Modules/OptionHolder.cs b/Modules/OptionHolder.cs index cbb0db9ec..a2e412016 100644 --- a/Modules/OptionHolder.cs +++ b/Modules/OptionHolder.cs @@ -780,6 +780,7 @@ public static class Options public static OptionItem AutoDisplayKillLog; public static OptionItem AutoDisplayLastResult; private static OptionItem SuffixMode; + public static OptionItem HideHostText; public static OptionItem HideGameSettings; public static OptionItem FormatNameMode; public static OptionItem DisableEmojiName; @@ -1773,6 +1774,8 @@ public static class Options SuffixMode = new StringOptionItem(19324, "SuffixMode", SuffixModes, 0, TabGroup.SystemSettings, true) .SetHeader(true); + HideHostText = new BooleanOptionItem(19331, "HideHostText", false, TabGroup.SystemSettings, true) + .SetColor(new Color(0, 0, 255)); HideGameSettings = new BooleanOptionItem(19450, "HideGameSettings", false, TabGroup.SystemSettings); DIYGameSettings = new BooleanOptionItem(19471, "DIYGameSettings", false, TabGroup.SystemSettings); diff --git a/Modules/Utils.cs b/Modules/Utils.cs index a43bd910b..bcc5db7d6 100644 --- a/Modules/Utils.cs +++ b/Modules/Utils.cs @@ -2520,7 +2520,7 @@ public static class Utils { if (!GameStates.IsLobby) return false; - if (player.AmOwner) + if (player.AmOwner && !Options.HideHostText.GetBool()) { if (GameStates.IsOnlineGame || GameStates.IsLocalGame) name = $"{GetString("HostText")}{GetString("Icon")}{name}"; diff --git a/Resources/Lang/en_US.json b/Resources/Lang/en_US.json index a2dbe4ae8..ce6636bbe 100644 --- a/Resources/Lang/en_US.json +++ b/Resources/Lang/en_US.json @@ -8754,6 +8754,7 @@ "SuffixModeText.AutoHost": "Auto-hosting", "SuffixModeText.DoNotKillMe": "Don't kill me", "SuffixModeText.NoAndroidPlz": "No phones please", + "HideHostText": "Hide 'EHR-Host' Text", "HideGameSettings": "Hide Game Settings", "DIYGameSettings": "Enable only custom /n messages", "PlayerCanSetColor": "Players can use the /color command",