[News] Add UIScript visitDiscord

This commit is contained in:
/dev/root 2019-01-07 18:09:48 +01:00
parent 2594f3fdf8
commit 8e69de5083

View File

@ -212,6 +212,11 @@ namespace Components
Utils::OpenUrl(Utils::Cache::GetStaticUrl("/wiki/")); 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_CHANGELOG_TEXT", "Loading...");
Localization::Set("MPUI_MOTD_TEXT", NEWS_MOTD_DEFAULT); Localization::Set("MPUI_MOTD_TEXT", NEWS_MOTD_DEFAULT);