mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 00:52:47 +02:00
Merge branch 'beta' into lint-fix
This commit is contained in:
commit
6c68eb36a6
39
.github/pull_request_template.md
vendored
39
.github/pull_request_template.md
vendored
@ -2,25 +2,28 @@
|
|||||||
<!-- Feel free to look at other PRs for examples -->
|
<!-- Feel free to look at other PRs for examples -->
|
||||||
<!--
|
<!--
|
||||||
Make sure the title includes categorization (choose the one that best fits):
|
Make sure the title includes categorization (choose the one that best fits):
|
||||||
- [Bug]: If the PR is primarily a bug fix
|
- [Bug]: If the PR is primarily a bug fix
|
||||||
- [Move]: If a move has new or changed functionality
|
- [Move]: If a move has new or changed functionality
|
||||||
- [Ability]: If an ability has new or changed functionality
|
- [Ability]: If an ability has new or changed functionality
|
||||||
- [Item]: For new or modified items
|
- [Item]: For new or modified items
|
||||||
- [Mystery]: For new or modified Mystery Encounters
|
- [Mystery]: For new or modified Mystery Encounters
|
||||||
- [Test]: If the PR is primarily adding or modifying tests
|
- [Test]: If the PR is primarily adding or modifying tests
|
||||||
- [UI/UX]: If the PR is changing UI/UX elements
|
- [UI/UX]: If the PR is changing UI/UX elements
|
||||||
- [Audio]: If the PR is adding or changing music/sfx
|
- [Audio]: If the PR is adding or changing music/sfx
|
||||||
- [Sprite]: If the PR is adding or changing sprites
|
- [Sprite]: If the PR is adding or changing sprites
|
||||||
- [Balance]: If the PR is related to game balance
|
- [Balance]: If the PR is related to game balance
|
||||||
- [Challenge]: If the PR is adding or modifying challenges
|
- [Challenge]: If the PR is adding or modifying challenges
|
||||||
- [Refactor]: If the PR is primarily rewriting existing code
|
- [Refactor]: If the PR is primarily rewriting existing code
|
||||||
- [Docs]: If the PR is just adding or modifying documentation (such as tsdocs/code comments)
|
- [Dev]: If the PR is primarily changing something pertaining to development (lefthook hooks, linter rules, etc.)
|
||||||
- [GitHub]: For changes to GitHub workflows/templates/etc
|
- [i18n]: If the PR is primarily adding/changing locale keys or key usage (may come with an associated locales PR)
|
||||||
- [Misc]: If no other category fits the PR
|
- [Docs]: If the PR is adding or modifying documentation (such as tsdocs/code comments)
|
||||||
|
- [GitHub]: For changes to GitHub workflows/templates/etc
|
||||||
|
- [Misc]: If no other category fits the PR
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Make sure that this PR is not overlapping with someone else's work
|
Make sure that this PR is not overlapping with someone else's work
|
||||||
Please try to keep the PR self-contained (and small)
|
Please try to keep the PR self-contained (and small!)
|
||||||
-->
|
-->
|
||||||
|
|
||||||
## What are the changes the user will see?
|
## What are the changes the user will see?
|
||||||
@ -66,11 +69,11 @@ Do the reviewers need to do something special in order to test your changes?
|
|||||||
- [ ] Have I provided a clear explanation of the changes?
|
- [ ] Have I provided a clear explanation of the changes?
|
||||||
- [ ] Have I tested the changes manually?
|
- [ ] Have I tested the changes manually?
|
||||||
- [ ] Are all unit tests still passing? (`npm run test:silent`)
|
- [ ] Are all unit tests still passing? (`npm run test:silent`)
|
||||||
- [ ] Have I created new automated tests (`npm run create-test`) or updated existing tests related to the PR's changes?
|
- [ ] Have I created new automated tests (`npm run test:create`) or updated existing tests related to the PR's changes?
|
||||||
- [ ] Have I provided screenshots/videos of the changes (if applicable)?
|
- [ ] Have I provided screenshots/videos of the changes (if applicable)?
|
||||||
- [ ] Have I made sure that any UI change works for both UI themes (default and legacy)?
|
- [ ] Have I made sure that any UI change works for both UI themes (default and legacy)?
|
||||||
|
|
||||||
Are there any localization additions or changes? If so:
|
Are there any localization additions or changes? If so:
|
||||||
- [ ] Has a locales PR been created on the [locales](https://github.com/pagefaultgames/pokerogue-locales) repo?
|
- [ ] Has a locales PR been created on the [locales](https://github.com/pagefaultgames/pokerogue-locales) repo?
|
||||||
- [ ] If so, please leave a link to it here: `_____`
|
- [ ] If so, please leave a link to it here:
|
||||||
- [ ] Has the translation team been contacted for proofreading/translation?
|
- [ ] Has the translation team been contacted for proofreading/translation?
|
||||||
|
@ -126,6 +126,11 @@ export default abstract class AbstractControlSettingsUiHandler extends UiHandler
|
|||||||
);
|
);
|
||||||
this.actionsBg.setOrigin(0, 0);
|
this.actionsBg.setOrigin(0, 0);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If there isn't enough space to fit all the icons and texts, there will be an overlap
|
||||||
|
* This currently doesn't happen, but it's something to keep in mind.
|
||||||
|
*/
|
||||||
|
|
||||||
const iconAction = globalScene.add.sprite(0, 0, "keyboard");
|
const iconAction = globalScene.add.sprite(0, 0, "keyboard");
|
||||||
iconAction.setOrigin(0, -0.1);
|
iconAction.setOrigin(0, -0.1);
|
||||||
iconAction.setPositionRelative(this.actionsBg, this.navigationContainer.width - 32, 4);
|
iconAction.setPositionRelative(this.actionsBg, this.navigationContainer.width - 32, 4);
|
||||||
@ -137,7 +142,7 @@ export default abstract class AbstractControlSettingsUiHandler extends UiHandler
|
|||||||
|
|
||||||
const iconCancel = globalScene.add.sprite(0, 0, "keyboard");
|
const iconCancel = globalScene.add.sprite(0, 0, "keyboard");
|
||||||
iconCancel.setOrigin(0, -0.1);
|
iconCancel.setOrigin(0, -0.1);
|
||||||
iconCancel.setPositionRelative(this.actionsBg, this.navigationContainer.width - 100, 4);
|
iconCancel.setPositionRelative(this.actionsBg, actionText.x - 28, 4);
|
||||||
this.navigationIcons["BUTTON_CANCEL"] = iconCancel;
|
this.navigationIcons["BUTTON_CANCEL"] = iconCancel;
|
||||||
|
|
||||||
const cancelText = addTextObject(0, 0, i18next.t("settings:back"), TextStyle.SETTINGS_LABEL);
|
const cancelText = addTextObject(0, 0, i18next.t("settings:back"), TextStyle.SETTINGS_LABEL);
|
||||||
@ -146,7 +151,7 @@ export default abstract class AbstractControlSettingsUiHandler extends UiHandler
|
|||||||
|
|
||||||
const iconReset = globalScene.add.sprite(0, 0, "keyboard");
|
const iconReset = globalScene.add.sprite(0, 0, "keyboard");
|
||||||
iconReset.setOrigin(0, -0.1);
|
iconReset.setOrigin(0, -0.1);
|
||||||
iconReset.setPositionRelative(this.actionsBg, this.navigationContainer.width - 180, 4);
|
iconReset.setPositionRelative(this.actionsBg, cancelText.x - 28, 4);
|
||||||
this.navigationIcons["BUTTON_HOME"] = iconReset;
|
this.navigationIcons["BUTTON_HOME"] = iconReset;
|
||||||
|
|
||||||
const resetText = addTextObject(0, 0, i18next.t("settings:reset"), TextStyle.SETTINGS_LABEL);
|
const resetText = addTextObject(0, 0, i18next.t("settings:reset"), TextStyle.SETTINGS_LABEL);
|
||||||
|
@ -94,7 +94,7 @@ export default class AbstractSettingsUiHandler extends MessageUiHandler {
|
|||||||
|
|
||||||
const iconCancel = globalScene.add.sprite(0, 0, "keyboard");
|
const iconCancel = globalScene.add.sprite(0, 0, "keyboard");
|
||||||
iconCancel.setOrigin(0, -0.1);
|
iconCancel.setOrigin(0, -0.1);
|
||||||
iconCancel.setPositionRelative(actionsBg, this.navigationContainer.width - 100, 4);
|
iconCancel.setPositionRelative(actionsBg, actionText.x - 28, 4);
|
||||||
this.navigationIcons["BUTTON_CANCEL"] = iconCancel;
|
this.navigationIcons["BUTTON_CANCEL"] = iconCancel;
|
||||||
|
|
||||||
const cancelText = addTextObject(0, 0, i18next.t("settings:back"), TextStyle.SETTINGS_LABEL);
|
const cancelText = addTextObject(0, 0, i18next.t("settings:back"), TextStyle.SETTINGS_LABEL);
|
||||||
|
Loading…
Reference in New Issue
Block a user