mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
hide 'ehr-host' text setting(hold because ehr is translating everything to korean) (#674)
This commit is contained in:
1 parent
fef281ee11
commit
98173ff922
3 files changed
+5
-1
No files matched your search
@@ -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
@@ -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>";
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user