From 5c3211b9ecbd169b944eb59d8d714efe870c08e5 Mon Sep 17 00:00:00 2001
From: haiwwkes <49613070+rhailrake@users.noreply.github.com>
Date: Wed, 13 Nov 2024 06:10:39 +0500
Subject: [PATCH] aaaaaaa (#616)
---
.../Launcher/LauncherConnectingGui.xaml | 292 +++++++++++++-----
.../Launcher/LauncherConnectingGui.xaml.cs | 3 +
Content.Client/Stylesheets/StyleNano.cs | 63 ++++
.../_Sunrise/SunriseCCVars/SunriseCCVars.cs | 11 +-
.../_strings/launcher/launcher-connecting.ftl | 2 +-
5 files changed, 288 insertions(+), 83 deletions(-)
diff --git a/Content.Client/Launcher/LauncherConnectingGui.xaml b/Content.Client/Launcher/LauncherConnectingGui.xaml
index b7745625a06..3bdf160d188 100644
--- a/Content.Client/Launcher/LauncherConnectingGui.xaml
+++ b/Content.Client/Launcher/LauncherConnectingGui.xaml
@@ -5,106 +5,242 @@
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
xmlns:serversHub="clr-namespace:Content.Client._Sunrise.ServersHub">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
-
-
-
-
-
+
-
-
-
-
-
-
-
+
+
+
+
+
-
+
-
+
-
-
+
+
+
+
+
-
-
+
+
-
-
+
+
diff --git a/Content.Client/Launcher/LauncherConnectingGui.xaml.cs b/Content.Client/Launcher/LauncherConnectingGui.xaml.cs
index c28342ff596..b14f78bb598 100644
--- a/Content.Client/Launcher/LauncherConnectingGui.xaml.cs
+++ b/Content.Client/Launcher/LauncherConnectingGui.xaml.cs
@@ -38,6 +38,7 @@ public sealed partial class LauncherConnectingGui : Control
private string _forumLink = ""; // Sunrise-Edit
private string _discordLink = ""; // Sunrise-Edit
+ private string _telegramLink = ""; // Sunrise-Edit
public LauncherConnectingGui(LauncherConnecting state, IRobustRandom random,
IPrototypeManager prototype, IConfigurationManager config, IClipboardManager clipboard,
@@ -67,9 +68,11 @@ public LauncherConnectingGui(LauncherConnecting state, IRobustRandom random,
_cfg.OnValueChanged(SunriseCCVars.BanForumLink, s => _forumLink = s, true); // Sunrise-Edit
_cfg.OnValueChanged(SunriseCCVars.BanDiscordLink, s => _discordLink = s, true); // Sunrise-Edit
+ _cfg.OnValueChanged(SunriseCCVars.BanTelegramLink, s => _telegramLink = s, true); // Sunrise-Edit
Forum.OnPressed += _ => _uri.OpenUri(_forumLink); // Sunrise-Edit
Discord.OnPressed += _ => _uri.OpenUri(_discordLink); // Sunrise-Edit
+ Telegram.OnPressed += _ => _uri.OpenUri(_telegramLink); // Sunrise-Edit
var addr = state.Address;
if (addr != null)
diff --git a/Content.Client/Stylesheets/StyleNano.cs b/Content.Client/Stylesheets/StyleNano.cs
index ccd36c35e82..7f53f15464f 100644
--- a/Content.Client/Stylesheets/StyleNano.cs
+++ b/Content.Client/Stylesheets/StyleNano.cs
@@ -88,6 +88,19 @@ public sealed class StyleNano : StyleBase
public const string StyleClassPopupMessageLarge = "PopupMessageLarge";
public const string StyleClassPopupMessageLargeCaution = "PopupMessageLargeCaution";
+ // Sunrise-Edit
+ public const string StyleClassSocialBox = "SocialBox";
+ public const string StyleClassSocialButton = "SocialButton";
+ public const string StyleClassSocialButtonForum = "SocialButtonForum";
+ public const string StyleClassSocialButtonDiscord = "SocialButtonDiscord";
+ public const string StyleClassSocialButtonTelegram = "SocialButtonTelegram";
+
+ public static readonly Color SocialBoxBackground = Color.FromHex("#1E1E24");
+ public static readonly Color ForumButtonColor = Color.FromHex("#A88B5E");
+ public static readonly Color DiscordButtonColor = Color.FromHex("#5865F2");
+ public static readonly Color TelegramButtonColor = Color.FromHex("#0088cc");
+ // Sunrise-Edit
+
public static readonly Color PanelDark = Color.FromHex("#1E1E22");
public static readonly Color NanoGold = Color.FromHex("#A88B5E");
@@ -1627,6 +1640,56 @@ public StyleNano(IResourceCache resCache) : base(resCache)
BackgroundColor = FancyTreeSelectedRowColor,
}),
+ // Sunrise-Edit
+ Element().Class(StyleClassSocialBox)
+ .Prop(PanelContainer.StylePropertyPanel,
+ new StyleBoxFlat
+ {
+ BackgroundColor = new Color(30, 30, 36),
+ BorderColor = new Color(62, 62, 74),
+ BorderThickness = new Thickness(2),
+ ContentMarginLeftOverride = 10,
+ ContentMarginRightOverride = 10,
+ ContentMarginTopOverride = 5,
+ ContentMarginBottomOverride = 5
+ }),
+
+ Element