Set lobby bool display values to start uppercase

This commit is contained in:
Curtis Shmyr
2020-10-12 13:34:31 -06:00
committed by abcdefg30
parent c0cbca26ea
commit 5eadd26f66

View File

@@ -548,8 +548,8 @@ namespace OpenRA.Traits
{ {
static readonly Dictionary<string, string> BoolValues = new Dictionary<string, string>() static readonly Dictionary<string, string> BoolValues = new Dictionary<string, string>()
{ {
{ true.ToString(), "enabled" }, { true.ToString(), "Enabled" },
{ false.ToString(), "disabled" } { false.ToString(), "Disabled" }
}; };
public LobbyBooleanOption(string id, string name, string description, bool visible, int displayorder, bool defaultValue, bool locked) public LobbyBooleanOption(string id, string name, string description, bool visible, int displayorder, bool defaultValue, bool locked)
@@ -557,7 +557,7 @@ namespace OpenRA.Traits
public override string ValueChangedMessage(string playerName, string newValue) public override string ValueChangedMessage(string playerName, string newValue)
{ {
return playerName + " " + BoolValues[newValue] + " " + Name + "."; return playerName + " " + BoolValues[newValue].ToLowerInvariant() + " " + Name + ".";
} }
} }