Fix global chat history buffer timestamps.

This commit is contained in:
Paul Chote
2017-09-24 20:51:40 +01:00
committed by reaperrr
parent 9aaf800bca
commit fa8ab19dfd
3 changed files with 3 additions and 4 deletions

View File

@@ -542,7 +542,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
return address;
}
public static void SetupChatLine(ContainerWidget template, Color c, string from, string text)
public static void SetupChatLine(ContainerWidget template, Color c, DateTime time, string from, string text)
{
var nameLabel = template.Get<LabelWidget>("NAME");
var timeLabel = template.Get<LabelWidget>("TIME");
@@ -552,7 +552,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var font = Game.Renderer.Fonts[nameLabel.Font];
var nameSize = font.Measure(from);
var time = DateTime.Now;
timeLabel.GetText = () => "{0:D2}:{1:D2}".F(time.Hour, time.Minute);
nameLabel.GetColor = () => c;