Close battle map menu with escape
This commit is contained in:
@@ -3176,6 +3176,12 @@ export class BattleScene extends Phaser.Scene {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.mapMenuObjects.length > 0) {
|
||||
soundDirector.playSelect();
|
||||
this.hideMapMenu();
|
||||
return;
|
||||
}
|
||||
|
||||
this.cancelAttackTargeting();
|
||||
});
|
||||
this.input.keyboard?.on('keydown-SPACE', (event: KeyboardEvent) => {
|
||||
|
||||
Reference in New Issue
Block a user