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:
|
||||
|
||||
Reference in new issue
Block a user