fix some client shzi"

This commit is contained in:
ntr 2018-12-22 18:29:48 +11:00
parent 42bf2a058a
commit b556fec8e2
3 changed files with 3 additions and 4 deletions

View File

@ -104,8 +104,8 @@ function registerEvents(registry, events, tutorial) {
title: 'LOGIN',
position: 'center',
inputs: [
[USER_INPUT, 'change', null, true], // true to focus
[PASSWORD_INPUT, 'change', null],
[USER_INPUT, 'change', () => true, true], // true to focus
[PASSWORD_INPUT, 'change', () => true],
],
buttons: [
[LOGIN_BUTTON, submitLogin], // true to focus

View File

@ -89,7 +89,7 @@ class Menu extends Phaser.Scene {
Object.keys(this.scene.manager.keys).forEach((key) => {
if (!ACTIVE_SCENES.includes(key)) {
// Remove listeners and scene
this.scene.get(key).cleanUp();
if (this.scene.get(key).cleanUp) this.scene.get(key).cleanUp();
}
});
}

View File

@ -13,7 +13,6 @@ strangle
## SOON
* tutorial
* aoe skills
* keep track of games joined