(12cfc8a35) Fixed doctor tutorial attempting to find the Doctor job based on the name instead of identifier

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:45:02 +03:00
parent 3b5ae37a1a
commit 08ade4a262
10 changed files with 122 additions and 319 deletions
@@ -436,6 +436,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