hide 'ehr-host' text setting(hold because ehr is translating everything to korean) (#674)

This commit is contained in:
Limeau authored and GitHub committed 2026-08-13 09:07:47 +02:00
1 parent fef281ee11
commit 98173ff922
3 files changed
+5 -1

No files matched your search

+3
View File
@@ -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);
+1 -1
View File
@@ -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 = $"<color={GetString("HostColor")}>{GetString("HostText")}</color><color={GetString("IconColor")}>{GetString("Icon")}</color><color={GetString("NameColor")}>{name}</color>";
+1
View File
@@ -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",