(bad03a33d) Don't translate language names to the current display language in the settings menu (should be translated to the target language instead)

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:44:31 +03:00
parent 7ae2b2f387
commit 96b2d953d2
14 changed files with 277 additions and 663 deletions
@@ -778,6 +778,25 @@ namespace Barotrauma
}
}
public string DisplayName
{
get;
private set;
}
private string roomName;
[Editable, Serialize("", true, translationTextTag: "RoomName.")]
public string RoomName
{
get { return roomName; }
set
{
if (roomName == value) { return; }
roomName = value;
DisplayName = TextManager.Get(roomName, returnNull: true) ?? roomName;
}
}
public override Rectangle Rect
{
get