From f20e82832f5427d484cd4e3b06870bf056084061 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Mon, 15 Apr 2019 12:09:50 +0300 Subject: [PATCH] (04b477ff8) Added: ContextualTutorial texts to EnglishVanilla until replaced with the new tutorial --- .../BarotraumaShared/Source/Map/Hull.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Barotrauma/BarotraumaShared/Source/Map/Hull.cs b/Barotrauma/BarotraumaShared/Source/Map/Hull.cs index b08bbcffe..d2959cc68 100644 --- a/Barotrauma/BarotraumaShared/Source/Map/Hull.cs +++ b/Barotrauma/BarotraumaShared/Source/Map/Hull.cs @@ -299,6 +299,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