|
|
@ -139,10 +139,10 @@ private function VotingHandler.MapVoteGameConfig BuildVotingHandlerConfig( |
|
|
|
GameMode gameMode) |
|
|
|
GameMode gameMode) |
|
|
|
{ |
|
|
|
{ |
|
|
|
local VotingHandler.MapVoteGameConfig result; |
|
|
|
local VotingHandler.MapVoteGameConfig result; |
|
|
|
result.gameClass = _.text.ToString(gameMode.GetGameTypeClass()); |
|
|
|
result.gameClass = _.text.IntoString(gameMode.GetGameTypeClass()); |
|
|
|
result.gameName = _.text.ToColoredString(gameMode.GetTitle()); |
|
|
|
result.gameName = _.text.ToColoredString(gameMode.GetTitle()); |
|
|
|
result.prefix = _.text.ToString(gameMode.GetMapPrefix()); |
|
|
|
result.prefix = _.text.IntoString(gameMode.GetMapPrefix()); |
|
|
|
result.acronym = _.text.ToString(gameMode.GetAcronym()); |
|
|
|
result.acronym = _.text.IntoString(gameMode.GetAcronym()); |
|
|
|
result.mutators = BuildMutatorString(gameMode); |
|
|
|
result.mutators = BuildMutatorString(gameMode); |
|
|
|
result.options = BuildOptionsString(gameMode); |
|
|
|
result.options = BuildOptionsString(gameMode); |
|
|
|
return result; |
|
|
|
return result; |
|
|
@ -159,7 +159,7 @@ private function string BuildMutatorString(GameMode gameMode) |
|
|
|
if (i > 0) { |
|
|
|
if (i > 0) { |
|
|
|
result $= ","; |
|
|
|
result $= ","; |
|
|
|
} |
|
|
|
} |
|
|
|
result $= _.text.ToString(usedMutators[i]); |
|
|
|
result $= _.text.IntoString(usedMutators[i]); |
|
|
|
} |
|
|
|
} |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
@ -174,8 +174,8 @@ private function string BuildOptionsString(GameMode gameMode) |
|
|
|
options = gameMode.GetOptions(); |
|
|
|
options = gameMode.GetOptions(); |
|
|
|
for (iter = options.Iterate(); !iter.HasFinished(); iter.Next()) |
|
|
|
for (iter = options.Iterate(); !iter.HasFinished(); iter.Next()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
nextKey = _.text.ToString(Text(iter.GetKey())); |
|
|
|
nextKey = _.text.IntoString(Text(iter.GetKey())); |
|
|
|
nextValue = _.text.ToString(Text(iter.Get())); |
|
|
|
nextValue = _.text.IntoString(Text(iter.Get())); |
|
|
|
if (optionWasAdded) { |
|
|
|
if (optionWasAdded) { |
|
|
|
result $= "?"; |
|
|
|
result $= "?"; |
|
|
|
} |
|
|
|
} |
|
|
@ -285,7 +285,7 @@ private final function int GetNumericDifficulty(GameMode gameMode) |
|
|
|
{ |
|
|
|
{ |
|
|
|
local int i; |
|
|
|
local int i; |
|
|
|
local string difficulty; |
|
|
|
local string difficulty; |
|
|
|
difficulty = Locs(_.text.ToString(gameMode.GetDifficulty())); |
|
|
|
difficulty = Locs(_.text.IntoString(gameMode.GetDifficulty())); |
|
|
|
for (i = 0; i < default.beginnerSynonyms.length; i += 1) |
|
|
|
for (i = 0; i < default.beginnerSynonyms.length; i += 1) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (IsPrefixOf(difficulty, default.beginnerSynonyms[i])) { |
|
|
|
if (IsPrefixOf(difficulty, default.beginnerSynonyms[i])) { |
|
|
|