[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:
parent
d96ae3de43
commit
4e8cafcdb4
|
@ -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: () => {
|
||||
|
|
Loading…
Reference in New Issue