[Community] Add Reddit link to menu UI (#2338)

* feat: Add Reddit link to menu UI

Added a new menu option for Reddit with a corresponding handler to open the Reddit page in a new tab. This enhances the user experience by providing easy access to the Pokerogue subreddit.

* feat: Update wiki URL in menu UI

The wiki URL in the menu UI has been updated to "https://wiki.pokerogue.net/start" to provide a more specific starting point for users.
This commit is contained in:
Frederico Santos 2024-06-17 15:57:20 +01:00 committed by GitHub
parent d96ae3de43
commit 4e8cafcdb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 1 deletions

View File

@ -24,9 +24,10 @@ export enum MenuOptions {
LOG_OUT
}
const wikiUrl = "https://wiki.pokerogue.net";
const wikiUrl = "https://wiki.pokerogue.net/start";
const discordUrl = "https://discord.gg/uWpTfdKG49";
const githubUrl = "https://github.com/pagefaultgames/pokerogue";
const redditUrl = "https://www.reddit.com/r/pokerogue";
export default class MenuUiHandler extends MessageUiHandler {
private menuContainer: Phaser.GameObjects.Container;
@ -211,6 +212,14 @@ export default class MenuUiHandler extends MessageUiHandler {
},
keepOpen: true
},
{
label: "Reddit",
handler: () => {
window.open(redditUrl, "_blank").focus();
return true;
},
keepOpen: true
},
{
label: i18next.t("menuUiHandler:cancel"),
handler: () => {