(7163b300e) Added: Way for capitalizing / lowercasing replaced variables depending on the position in the sentence & some implementations
This commit is contained in:
@@ -119,11 +119,9 @@ namespace Barotrauma
|
||||
if ((int)newLevel > (int)prevLevel)
|
||||
{
|
||||
GUI.AddMessage(
|
||||
TextManager.Get("SkillIncreased")
|
||||
.Replace("[name]", Name)
|
||||
.Replace("[skillname]", TextManager.Get("SkillName." + skillIdentifier))
|
||||
.Replace("[newlevel]", ((int)newLevel).ToString()),
|
||||
Color.Green);
|
||||
TextManager.GetWithVariables("SkillIncreased", new string[3] { "[name]", "[skillname]", "[newlevel]" },
|
||||
new string[3] { Name, TextManager.Get("SkillName." + skillIdentifier), ((int)newLevel).ToString() },
|
||||
new bool[3] { false, true, false }), Color.Green);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user