(3fb6030aa) Fixed CustomInterface labels not being translated

This commit is contained in:
Joonas Rikkonen
2019-05-07 16:25:32 +03:00
parent a0fc5abf15
commit 1e1c772d8a
@@ -117,11 +117,11 @@ namespace Barotrauma.Items.Components
{ {
if (uiElements[i] is GUIButton button) if (uiElements[i] is GUIButton button)
{ {
button.Text = labels[i]; button.Text = customInterfaceElementList[i].Label;
} }
else if (uiElements[i] is GUITickBox tickBox) else if (uiElements[i] is GUITickBox tickBox)
{ {
tickBox.Text = labels[i]; tickBox.Text = customInterfaceElementList[i].Label;
} }
} }
} }