[Virtual]
public partial class ChatBox : UIWidget
{
+ [Dependency] private readonly IEntityManager _entManager = default!;
+ [Dependency] private readonly ILogManager _log = default!;
+
+ private readonly ISawmill _sawmill;
private readonly ChatUIController _controller;
- private readonly IEntityManager _entManager;
public bool Main { get; set; }
public ChatBox()
{
RobustXamlLoader.Load(this);
- _entManager = IoCManager.Resolve<IEntityManager>();
+ _sawmill = _log.GetSawmill("chat");
ChatInput.Input.OnTextEntered += OnTextEntered;
ChatInput.Input.OnKeyBindDown += OnInputKeyBindDown;
private void OnMessageAdded(ChatMessage msg)
{
- Logger.DebugS("chat", $"{msg.Channel}: {msg.Message}");
+ _sawmill.Debug($"{msg.Channel}: {msg.Message}");
if (!ChatInput.FilterButton.Popup.IsActive(msg.Channel))
{
return;