From 8e69de5083ea778699e878a77b06cc6ff3213886 Mon Sep 17 00:00:00 2001 From: /dev/root Date: Mon, 7 Jan 2019 18:09:48 +0100 Subject: [PATCH] [News] Add UIScript visitDiscord --- src/Components/Modules/News.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Components/Modules/News.cpp b/src/Components/Modules/News.cpp index 0e2a0b1b..49468e43 100644 --- a/src/Components/Modules/News.cpp +++ b/src/Components/Modules/News.cpp @@ -212,6 +212,11 @@ namespace Components Utils::OpenUrl(Utils::Cache::GetStaticUrl("/wiki/")); }); + UIScript::Add("visitDiscord", [](UIScript::Token) + { + Utils::OpenUrl("https://discord.gg/dtQNP4N"); + }); + Localization::Set("MPUI_CHANGELOG_TEXT", "Loading..."); Localization::Set("MPUI_MOTD_TEXT", NEWS_MOTD_DEFAULT);