(2972c6da9) Add a missing text.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:04:29 +03:00
parent 039d07f693
commit 5def53f7bd
17 changed files with 202 additions and 79 deletions
@@ -18,10 +18,7 @@ namespace Barotrauma
private Hull hull;
private readonly Submarine submarine;
public Submarine Submarine => submarine;
protected bool removed;
private bool removed;
private bool removed;
@@ -109,6 +109,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
@@ -1206,6 +1206,9 @@ namespace Barotrauma
if (FlippedX) element.Add(new XAttribute("flippedx", true));
if (FlippedY) element.Add(new XAttribute("flippedy", true));
if (FlippedX) element.Add(new XAttribute("flippedx", true));
if (FlippedY) element.Add(new XAttribute("flippedy", true));
for (int i = 0; i < Sections.Length; i++)
{
if (Sections[i].damage == 0.0f) continue;