AHelp tweaks - colored names for admins, window name (#5335)
Co-authored-by: T <tomeno@lulzsec.co.uk>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user