AHelp tweaks - colored names for admins, window name (#5335)

Co-authored-by: T <tomeno@lulzsec.co.uk>
This commit is contained in:
Tomeno
2021-11-14 20:21:18 +01:00
committed by GitHub
parent 29ce95e274
commit 3f32f9f87c
2 changed files with 12 additions and 3 deletions

View File

@@ -7,6 +7,7 @@ using Content.Client.Administration;
using Content.Shared;
using Robust.Client.Credits;
using Robust.Client.AutoGenerated;
using Robust.Client.Player;
using Robust.Client.UserInterface;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.CustomControls;
@@ -28,6 +29,7 @@ namespace Content.Client.Administration.UI
public partial class BwoinkWindow : SS14Window
{
[Dependency] private readonly IEntitySystemManager _systemManager = default!;
[Dependency] private readonly IPlayerManager _playerManager = default!;
private readonly NetUserId _channelId;
@@ -36,8 +38,9 @@ namespace Content.Client.Administration.UI
RobustXamlLoader.Load(this);
IoCManager.InjectDependencies(this);
Title = title;
_channelId = channelId;
Title = (_playerManager.LocalPlayer?.UserId == _channelId) ? "Admin Message" : title;
SenderLineEdit.OnTextEntered += Input_OnTextEntered;
}
@@ -56,7 +59,7 @@ namespace Content.Client.Administration.UI
public void ReceiveLine(string text)
{
var formatted = new FormattedMessage(1);
formatted.AddText(text);
formatted.AddMarkup(text);
TextOutput.AddMessage(formatted);
}
}