(bf7a77e38) Fixed monster names not being translated when hovered over

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:59:03 +03:00
parent 86ddfb73d5
commit 61c5f52441
10 changed files with 201 additions and 30 deletions
@@ -81,6 +81,27 @@ namespace Barotrauma
public readonly List<Gap> ConnectedGaps = new List<Gap>();
public readonly List<Gap> ConnectedGaps = new List<Gap>();
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 string DisplayName
{
get;
private set;
}
private string roomName;
[Editable, Serialize("", true, translationTextTag: "RoomName.")]
public string RoomName