(73c1e1df5) Made legacy items translatable, added aliases to legacy items to prevent them from breaking when using a language other than English (legacy items are searched for based on name, so we need to have the English name as an alias)

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:07:51 +03:00
parent db4e3a6725
commit 8354c808d4
11 changed files with 238 additions and 257 deletions
@@ -474,6 +474,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