The technology for round time just isn't there yet

Add clock date to displayed logs
I'm sorry moony
This commit is contained in:
DrSmugleaf
2021-11-22 21:19:07 +01:00
parent 7de23c935b
commit 37e7da0e42
2 changed files with 4 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ public class AdminLogLabel : RichTextLabel
Log = log; Log = log;
Separator = separator; Separator = separator;
SetMessage(log.Message); SetMessage($"{log.Date:HH:mm:ss}: {log.Message}");
OnVisibilityChanged += VisibilityChanged; OnVisibilityChanged += VisibilityChanged;
} }

View File

@@ -26,6 +26,7 @@ public sealed class AdminLogsEui : BaseEui
private readonly ISawmill _sawmill; private readonly ISawmill _sawmill;
private readonly AdminLogSystem _logSystem; private readonly AdminLogSystem _logSystem;
private readonly GameTicker _gameTicker;
private int _clientBatchSize; private int _clientBatchSize;
private bool _isLoading = true; private bool _isLoading = true;
@@ -42,6 +43,8 @@ public sealed class AdminLogsEui : BaseEui
_configuration.OnValueChanged(CCVars.AdminLogsClientBatchSize, ClientBatchSizeChanged, true); _configuration.OnValueChanged(CCVars.AdminLogsClientBatchSize, ClientBatchSizeChanged, true);
_logSystem = EntitySystem.Get<AdminLogSystem>(); _logSystem = EntitySystem.Get<AdminLogSystem>();
_gameTicker = EntitySystem.Get<GameTicker>();
_filter = new LogFilter _filter = new LogFilter
{ {
CancellationToken = _logSendCancellation.Token, CancellationToken = _logSendCancellation.Token,