From 4a1949d7f00ed4440f6ac7fa678a195483a988d7 Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto <6766154+Zumorica@users.noreply.github.com> Date: Sun, 23 Jan 2022 18:47:10 +0100 Subject: [PATCH] Add simple wiki button to lobby (#6230) --- Content.Client/Info/ServerInfo.cs | 4 ++++ Content.Client/Links/UILinks.cs | 1 + Resources/Locale/en-US/info/server-info.ftl | 1 + 3 files changed, 6 insertions(+) diff --git a/Content.Client/Info/ServerInfo.cs b/Content.Client/Info/ServerInfo.cs index d670a43458..9cdf2b56ef 100644 --- a/Content.Client/Info/ServerInfo.cs +++ b/Content.Client/Info/ServerInfo.cs @@ -40,6 +40,9 @@ namespace Content.Client.Info var websiteButton = new Button {Text = Loc.GetString("server-info-website-button") }; websiteButton.OnPressed += args => uriOpener.OpenUri(UILinks.Website); + var wikiButton = new Button {Text = Loc.GetString("server-info-wiki-button") }; + wikiButton.OnPressed += args => uriOpener.OpenUri(UILinks.Wiki); + var reportButton = new Button { Text = Loc.GetString("server-info-report-button") }; reportButton.OnPressed += args => uriOpener.OpenUri(UILinks.BugReport); @@ -55,6 +58,7 @@ namespace Content.Client.Info buttons.AddChild(rulesButton); buttons.AddChild(discordButton); buttons.AddChild(websiteButton); + buttons.AddChild(wikiButton); buttons.AddChild(reportButton); buttons.AddChild(creditsButton); buttons.AddChild(changelogButton); diff --git a/Content.Client/Links/UILinks.cs b/Content.Client/Links/UILinks.cs index cc85980b0b..c0d8d19d54 100644 --- a/Content.Client/Links/UILinks.cs +++ b/Content.Client/Links/UILinks.cs @@ -8,5 +8,6 @@ public const string Discord = "https://discordapp.com/invite/t2jac3p"; public const string BugReport = "https://github.com/space-wizards/space-station-14/issues/new/choose"; public const string Website = "https://spacestation14.io"; + public const string Wiki = "https://wiki.spacestation14.io"; } } diff --git a/Resources/Locale/en-US/info/server-info.ftl b/Resources/Locale/en-US/info/server-info.ftl index 47741bc754..e406a704b5 100644 --- a/Resources/Locale/en-US/info/server-info.ftl +++ b/Resources/Locale/en-US/info/server-info.ftl @@ -1,5 +1,6 @@ server-info-rules-button = Rules server-info-discord-button = Discord server-info-website-button = Website +server-info-wiki-button = Wiki server-info-report-button = Report Bugs server-info-credits-button = Credits