(1dd58d3ff) CustomInterface editor shows each label/signal as a separate textbox (w/ text picker option)

This commit is contained in:
Joonas Rikkonen
2019-04-15 12:10:05 +03:00
parent f20e82832f
commit 8290c577d8
6 changed files with 107 additions and 38 deletions
@@ -318,6 +318,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