[Bug] Restrict Menu Access to Specific Game Modes + Gamepad Start Button in Select-Starter Menu (#2064)

* fix softlock + start run on button menu for gamepad on starter_select

* chop chop even more mode to the menu whitelist
This commit is contained in:
Greenlamp2 2024-06-11 04:18:07 +02:00 committed by GitHub
parent 8d75670a81
commit 725df33600
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 11 deletions

View File

@ -162,20 +162,13 @@ export class UiInputs {
}
case Mode.TITLE:
case Mode.COMMAND:
case Mode.FIGHT:
case Mode.BALL:
case Mode.TARGET_SELECT:
case Mode.SAVE_SLOT:
case Mode.PARTY:
case Mode.SUMMARY:
case Mode.STARTER_SELECT:
case Mode.OPTION_SELECT:
case Mode.MODIFIER_SELECT:
this.scene.ui.setOverlayMode(Mode.MENU);
break;
case Mode.CONFIRM:
case Mode.STARTER_SELECT:
this.buttonTouch();
break;
case Mode.MENU:
case Mode.SETTINGS:
case Mode.ACHIEVEMENTS:
this.scene.ui.revertMode();
this.scene.playSound("select");
break;