From: c4llv07e Date: Fri, 22 Nov 2024 15:38:41 +0000 (+0000) Subject: Add telegram to the server info-links (#33459) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=646d41d3a7824168053349ce6159bac5acec2eb9;p=space-station-14.git Add telegram to the server info-links (#33459) --- diff --git a/Content.Client/Info/LinkBanner.cs b/Content.Client/Info/LinkBanner.cs index a30aa41376..7366a8f856 100644 --- a/Content.Client/Info/LinkBanner.cs +++ b/Content.Client/Info/LinkBanner.cs @@ -34,6 +34,7 @@ namespace Content.Client.Info AddInfoButton("server-info-website-button", CCVars.InfoLinksWebsite); AddInfoButton("server-info-wiki-button", CCVars.InfoLinksWiki); AddInfoButton("server-info-forum-button", CCVars.InfoLinksForum); + AddInfoButton("server-info-telegram-button", CCVars.InfoLinksTelegram); var guidebookController = UserInterfaceManager.GetUIController(); var guidebookButton = new Button() { Text = Loc.GetString("server-info-guidebook-button") }; diff --git a/Content.Server/ServerInfo/ServerInfoManager.cs b/Content.Server/ServerInfo/ServerInfoManager.cs index d2e35e9663..673a33a941 100644 --- a/Content.Server/ServerInfo/ServerInfoManager.cs +++ b/Content.Server/ServerInfo/ServerInfoManager.cs @@ -13,11 +13,12 @@ public sealed class ServerInfoManager private static readonly (CVarDef cVar, string icon, string name)[] Vars = { // @formatter:off - (CCVars.InfoLinksDiscord, "discord", "info-link-discord"), - (CCVars.InfoLinksForum, "forum", "info-link-forum"), - (CCVars.InfoLinksGithub, "github", "info-link-github"), - (CCVars.InfoLinksWebsite, "web", "info-link-website"), - (CCVars.InfoLinksWiki, "wiki", "info-link-wiki") + (CCVars.InfoLinksDiscord, "discord", "info-link-discord"), + (CCVars.InfoLinksForum, "forum", "info-link-forum"), + (CCVars.InfoLinksGithub, "github", "info-link-github"), + (CCVars.InfoLinksWebsite, "web", "info-link-website"), + (CCVars.InfoLinksWiki, "wiki", "info-link-wiki"), + (CCVars.InfoLinksTelegram, "telegram", "info-link-telegram") // @formatter:on }; diff --git a/Content.Shared/CCVar/CCVars.Game.Infolinks.cs b/Content.Shared/CCVar/CCVars.Game.Infolinks.cs index fa8332b497..5544953a0d 100644 --- a/Content.Shared/CCVar/CCVars.Game.Infolinks.cs +++ b/Content.Shared/CCVar/CCVars.Game.Infolinks.cs @@ -51,4 +51,10 @@ public sealed partial class CCVars /// public static readonly CVarDef InfoLinksAppeal = CVarDef.Create("infolinks.appeal", "", CVar.SERVER | CVar.REPLICATED); + + /// + /// Link to Telegram channel to show in the launcher. + /// + public static readonly CVarDef InfoLinksTelegram = + CVarDef.Create("infolinks.telegram", "", CVar.SERVER | CVar.REPLICATED); } diff --git a/Resources/Locale/en-US/info/server-info.ftl b/Resources/Locale/en-US/info/server-info.ftl index 3039f4cb17..ff183d80ef 100644 --- a/Resources/Locale/en-US/info/server-info.ftl +++ b/Resources/Locale/en-US/info/server-info.ftl @@ -4,5 +4,6 @@ server-info-discord-button = Discord server-info-website-button = Website server-info-wiki-button = Wiki server-info-forum-button = Forum +server-info-telegram-button = Telegram server-info-report-button = Report Bugs server-info-credits-button = Credits diff --git a/Resources/Locale/en-US/server-info/info-links.ftl b/Resources/Locale/en-US/server-info/info-links.ftl index 0f8f9eb7d9..51b6b51ecb 100644 --- a/Resources/Locale/en-US/server-info/info-links.ftl +++ b/Resources/Locale/en-US/server-info/info-links.ftl @@ -5,3 +5,4 @@ info-link-forum = Forum info-link-github = GitHub info-link-website = Website info-link-wiki = Wiki +info-link-telegram = Telegram