mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-13 11:52:18 +02:00
added functionality to Return to Title button before starting a new run
This commit is contained in:
parent
2ab335a3c5
commit
4b452bf3d5
@ -298,6 +298,11 @@ export default class MenuUiHandler extends MessageUiHandler {
|
|||||||
success = true;
|
success = true;
|
||||||
break;
|
break;
|
||||||
case MenuOptions.RETURN_TO_TITLE:
|
case MenuOptions.RETURN_TO_TITLE:
|
||||||
|
if (this.scene.getParty().length === 0) {
|
||||||
|
success = true;
|
||||||
|
this.scene.reset(true);
|
||||||
|
}
|
||||||
|
|
||||||
if (this.scene.currentBattle) {
|
if (this.scene.currentBattle) {
|
||||||
success = true;
|
success = true;
|
||||||
ui.showText(i18next.t("menuUiHandler:losingProgressionWarning"), null, () => {
|
ui.showText(i18next.t("menuUiHandler:losingProgressionWarning"), null, () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user