Always show ahelp relay message when the relay is enabled (#14931)

This commit is contained in:
DrSmugleaf
2023-03-28 14:27:21 -07:00
committed by GitHub
parent f9a347be21
commit ed45440256
6 changed files with 76 additions and 20 deletions

View File

@@ -1,7 +1,9 @@
<BoxContainer
xmlns="https://spacestation14.io"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Orientation="Vertical"
HorizontalExpand="true">
HorizontalExpand="True">
<OutputPanel Name="TextOutput" VerticalExpand="true" />
<HistoryLineEdit Name="SenderLineEdit" />
<RichTextLabel Name="RelayedToDiscordLabel" Access="Public" Visible="False" />
</BoxContainer>

View File

@@ -3,7 +3,6 @@ using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.XAML;
using Robust.Shared.Utility;
using Content.Client.Administration.UI.CustomControls;
namespace Content.Client.Administration.UI.Bwoink
{
@@ -18,6 +17,13 @@ namespace Content.Client.Administration.UI.Bwoink
public BwoinkPanel(Action<string> messageSender)
{
RobustXamlLoader.Load(this);
var msg = new FormattedMessage();
msg.PushColor(Color.LightGray);
msg.AddText(Loc.GetString("bwoink-system-messages-being-relayed-to-discord"));
msg.Pop();
RelayedToDiscordLabel.SetMessage(msg);
_messageSender = messageSender;
OnVisibilityChanged += c =>