(45bac6725) Sort texts in the translatable text picker alphabetically

This commit is contained in:
Joonas Rikkonen
2019-05-07 13:18:56 +03:00
parent 5619323cee
commit a76c3909b9

View File

@@ -927,6 +927,7 @@ namespace Barotrauma
textTag = textTag.ToLowerInvariant();
var tagTextPairs = TextManager.GetAllTagTextPairs();
tagTextPairs.Sort((t1, t2) => { return t1.Value.CompareTo(t2.Value); });
foreach (KeyValuePair<string, string> tagTextPair in tagTextPairs)
{
if (!tagTextPair.Key.StartsWith(textTag)) { continue; }