(d1070d74c) Fixed CustomInterface labels displaying the text tag instead of the actual text when using translatable texts

This commit is contained in:
Joonas Rikkonen
2019-05-03 13:51:58 +03:00
parent da3810b0d4
commit 1218ebb719
4 changed files with 113 additions and 239 deletions
@@ -125,7 +125,7 @@ namespace Barotrauma.Items.Components
for (int i = 0; i < labels.Length; i++)
{
labels[i] = i < newLabels.Length ? newLabels[i] : customInterfaceElementList[i].Label;
customInterfaceElementList[i].Label = labels[i];
customInterfaceElementList[i].Label = TextManager.Get(labels[i], returnNull: true) ?? labels[i];
}
UpdateLabelsProjSpecific();
}