(3dc4135ce) v0.9.5.1

This commit is contained in:
Regalis
2019-11-21 18:22:25 +01:00
parent b39922a074
commit 5c95c53118
287 changed files with 12655 additions and 5048 deletions
@@ -18,7 +18,9 @@ namespace Barotrauma.Networking
public const int MaxMessagesPerPacket = 10;
public const float SpeakRange = 2000.0f;
private static readonly string dateTimeFormatLongTimePattern = System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.ShortTimePattern;
public static Color[] MessageColor =
{
new Color(190, 198, 205), //default
@@ -66,6 +68,11 @@ namespace Barotrauma.Networking
get { return MessageColor[(int)Type]; }
}
public static string GetTimeStamp()
{
return $"[{DateTime.Now.ToString(dateTimeFormatLongTimePattern)}] ";
}
public string TextWithSender
{
get