(84bcafc68) Added "text picker menu" to ItemMsgs, replace """ with a quotation mark in texts
This commit is contained in:
@@ -190,7 +190,7 @@ namespace Barotrauma.Items.Components
|
|||||||
get { return name; }
|
get { return name; }
|
||||||
}
|
}
|
||||||
|
|
||||||
[Editable, Serialize("", true)]
|
[Editable, Serialize("", true, translationTextTag: "ItemMsg")]
|
||||||
public string Msg
|
public string Msg
|
||||||
{
|
{
|
||||||
get;
|
get;
|
||||||
|
|||||||
@@ -204,6 +204,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
|
public override Rectangle Rect
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ namespace Barotrauma
|
|||||||
text = text.Replace("&", "&");
|
text = text.Replace("&", "&");
|
||||||
text = text.Replace("<", "<");
|
text = text.Replace("<", "<");
|
||||||
text = text.Replace(">", ">");
|
text = text.Replace(">", ">");
|
||||||
|
text = text.Replace(""", "\"");
|
||||||
infoList.Add(text);
|
infoList.Add(text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user