Skip to content

Commit

Permalink
Merge branch 'beta' into stats_refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
xsn34kzx authored Sep 3, 2024
2 parents f54df49 + 672bc77 commit 6feefb3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 19 deletions.
11 changes: 1 addition & 10 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,6 @@ body {
}
}

#links {
width: 90%;
text-align: center;
position: fixed;
bottom: 0;
display: flex;
justify-content: space-around;
}

#app {
display: flex;
justify-content: center;
Expand Down Expand Up @@ -93,7 +84,7 @@ input:-internal-autofill-selected {

@media (orientation: landscape) {
#touchControls {
--controls-size: 20vh;
--controls-size: 20vh;
--text-shadow-size: 1.3vh;
--small-button-offset: 4vh;
}
Expand Down
8 changes: 0 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
</style>
<link rel="stylesheet" type="text/css" href="./index.css" />
<link rel="manifest" href="./manifest.webmanifest">
<script type="text/javascript" src="https://app.termly.io/resource-blocker/c5dbfa2f-9723-4c0f-a84b-2895124e851f?autoBlock=on"></script>
<script>
if ("serviceWorker" in navigator) {
window.addEventListener("load", function () {
Expand Down Expand Up @@ -144,13 +143,6 @@

</div>
</div>
<div id="tnc-links">
<a href="#" class="termly-display-preferences" style="display: none;" target="_blank" rel="noreferrer noopener">Consent Preferences</a>
<a href="https://app.termly.io/policy-viewer/policy.html?policyUUID=bc96778b-3f04-4d25-bafc-0deba53e8bec" target="_blank" rel="noreferrer noopener">Privacy Policy</a>
<a href="https://app.termly.io/policy-viewer/policy.html?policyUUID=8b523c05-7ec2-4646-9534-5bd61b386e2a" target="_blank" rel="noreferrer noopener">Cookie Disclaimer</a>
<a href="https://app.termly.io/policy-viewer/policy.html?policyUUID=b01e092a-9721-477f-8356-45576702ff9e" target="_blank" rel="noreferrer noopener">Terms & Conditions</a>
<a href="https://app.termly.io/policy-viewer/policy.html?policyUUID=3b5d1928-3f5b-4ee1-b8df-2d6c276b0bcc" target="_blank" rel="noreferrer noopener">Acceptable Use Policy</a>
</div>
<script type="module" src="./src/main.ts"></script>
<script src="./src/touch-controls.ts" type="module"></script>
<script src="./src/debug.js" type="module"></script>
Expand Down
1 change: 1 addition & 0 deletions src/locales/en/menu-ui-handler.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"linkGoogle": "Link Google",
"unlinkGoogle": "Unlink Google",
"cancel": "Cancel",
"donate": "Donate",
"losingProgressionWarning": "You will lose any progress since the beginning of the battle. Proceed?",
"noEggs": "You are not hatching\nany eggs at the moment!"
}
12 changes: 11 additions & 1 deletion src/ui/menu-ui-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ let 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";
const donateUrl = "https://github.com/sponsors/patapancakes";

export default class MenuUiHandler extends MessageUiHandler {
private readonly textPadding = 8;
Expand Down Expand Up @@ -369,7 +370,16 @@ export default class MenuUiHandler extends MessageUiHandler {
return true;
},
keepOpen: true
}];
},
{
label: i18next.t("menuUiHandler:donate"),
handler: () => {
window.open(donateUrl, "_blank")?.focus();
return true;
},
keepOpen: true
}
];
if (!bypassLogin && loggedInUser?.hasAdminRole) {
communityOptions.push({
label: "Admin",
Expand Down

0 comments on commit 6feefb3

Please sign in to comment.