Changes to autoplay mode
This commit is contained in:
1 parent
8bacb9bc84
commit
4ec91695f7
6 files changed
+128
-77
No files matched your search
@@ -90,12 +90,18 @@ export default class ModifierSelectUiHandler extends AwaitableUiHandler {
|
||||
|
||||
if (keyCode === keyCodes.Z) {
|
||||
success = true;
|
||||
if (this.onActionInput)
|
||||
this.onActionInput(this.cursor);
|
||||
if (this.onActionInput) {
|
||||
const originalOnActionInput = this.onActionInput;
|
||||
this.onActionInput = null;
|
||||
originalOnActionInput(this.cursor);
|
||||
}
|
||||
} else if (keyCode === keyCodes.X) {
|
||||
success = true;
|
||||
if (this.onActionInput)
|
||||
this.onActionInput(-1);
|
||||
if (this.onActionInput) {
|
||||
const originalOnActionInput = this.onActionInput;
|
||||
this.onActionInput = null;
|
||||
originalOnActionInput(-1);
|
||||
}
|
||||
} else {
|
||||
switch (keyCode) {
|
||||
case keyCodes.LEFT:
|
||||
|
||||
+1
-1
@@ -119,7 +119,7 @@ export default class UI extends Phaser.GameObjects.Container {
|
||||
this.getHandler().show(args);
|
||||
resolve();
|
||||
};
|
||||
if (transitionModes.indexOf(this.mode) > -1 || transitionModes.indexOf(mode) > -1) {
|
||||
if ((transitionModes.indexOf(this.mode) > -1 || transitionModes.indexOf(mode) > -1) && !(this.scene as BattleScene).auto) {
|
||||
this.transitioning = true;
|
||||
this.overlay.setAlpha(0);
|
||||
this.overlay.setVisible(true);
|
||||
|
||||
Reference in new issue
Block a user