prevent opening the menu on confirm dialog + fix config error message on crash (#1278)
This commit is contained in:
parent
79af115278
commit
c86a51ba89
|
@ -123,10 +123,10 @@ export class UiInputs {
|
|||
case Mode.PARTY:
|
||||
case Mode.SUMMARY:
|
||||
case Mode.STARTER_SELECT:
|
||||
case Mode.CONFIRM:
|
||||
case Mode.OPTION_SELECT:
|
||||
this.scene.ui.setOverlayMode(Mode.MENU);
|
||||
break;
|
||||
case Mode.CONFIRM:
|
||||
case Mode.MENU:
|
||||
case Mode.SETTINGS:
|
||||
case Mode.ACHIEVEMENTS:
|
||||
|
|
|
@ -171,8 +171,8 @@ export default abstract class AbstractOptionSelectUiHandler extends UiHandler {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
const option = this.config.options[this.cursor + (this.scrollCursor - (this.scrollCursor ? 1 : 0))];
|
||||
if (option.handler()) {
|
||||
const option = this.config?.options[this.cursor + (this.scrollCursor - (this.scrollCursor ? 1 : 0))];
|
||||
if (option?.handler()) {
|
||||
if (!option.keepOpen) {
|
||||
this.clear();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue