From: Repo <47093363+Titian3@users.noreply.github.com> Date: Tue, 20 Aug 2024 21:31:09 +0000 (+1200) Subject: Copy button for ban/disconnect reason (#30760) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=93497e484fd9eb97dc353d3afdc8977037f56764;p=space-station-14.git Copy button for ban/disconnect reason (#30760) * Copy button for connection messages on failed connections and ban hit attempts * loc * better sepperation layout * consistent styling. * Fix loc var name * Reconnect button back. * Move clipboard dependency out to the params. * open buttons so they look a bit better. --- diff --git a/Content.Client/Launcher/LauncherConnecting.cs b/Content.Client/Launcher/LauncherConnecting.cs index 29b241ae5d..33d31cc52d 100644 --- a/Content.Client/Launcher/LauncherConnecting.cs +++ b/Content.Client/Launcher/LauncherConnecting.cs @@ -19,6 +19,7 @@ namespace Content.Client.Launcher [Dependency] private readonly IRobustRandom _random = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly IConfigurationManager _cfg = default!; + [Dependency] private readonly IClipboardManager _clipboard = default!; private LauncherConnectingGui? _control; @@ -58,7 +59,7 @@ namespace Content.Client.Launcher protected override void Startup() { - _control = new LauncherConnectingGui(this, _random, _prototypeManager, _cfg); + _control = new LauncherConnectingGui(this, _random, _prototypeManager, _cfg, _clipboard); _userInterfaceManager.StateRoot.AddChild(_control); diff --git a/Content.Client/Launcher/LauncherConnectingGui.xaml b/Content.Client/Launcher/LauncherConnectingGui.xaml index 3734fa5b3a..2cb349d4e7 100644 --- a/Content.Client/Launcher/LauncherConnectingGui.xaml +++ b/Content.Client/Launcher/LauncherConnectingGui.xaml @@ -18,21 +18,38 @@ - + -