(ac9d10462) Take entity scale and flipping into account when dragging

This commit is contained in:
Joonas Rikkonen
2019-04-16 17:13:34 +03:00
parent 9dc29965f6
commit 2b11c79a4c
6 changed files with 58 additions and 70 deletions
@@ -185,6 +185,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