unfucked 1,2,3 keys
This commit is contained in:
parent
a748e4710b
commit
e77a948745
4
client/src/scenes/menu.cryps.list.js
Normal file → Executable file
4
client/src/scenes/menu.cryps.list.js
Normal file → Executable file
@ -64,7 +64,7 @@ class MenuCrypList extends Phaser.Scene {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (KEY_MAP[i]) {
|
if (KEY_MAP[i]) {
|
||||||
this.input.keyboard.on(KEY_MAP[i], selectFn, this);
|
this.input.keyboard.on(KEY_MAP[i], () => this.game.events.emit('CRYP_ACTIVE', cryp), this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* const crypSelect = this.add
|
/* const crypSelect = this.add
|
||||||
@ -84,7 +84,7 @@ class MenuCrypList extends Phaser.Scene {
|
|||||||
.setInteractive()
|
.setInteractive()
|
||||||
.setOrigin(0)
|
.setOrigin(0)
|
||||||
.on('pointerdown', selectFn);
|
.on('pointerdown', selectFn);
|
||||||
|
|
||||||
crypInteract.itemSelect = () => {
|
crypInteract.itemSelect = () => {
|
||||||
crypInteract.setFillStyle(COLOURS.SELECT);
|
crypInteract.setFillStyle(COLOURS.SELECT);
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user