Merge pull request #380 from isaisstillalive/patch-2

Close-shop-and-stats key mapping doesn't seem to exist
This commit is contained in:
tobspr 2020-07-04 16:34:35 +02:00 committed by GitHub
commit eeed8dd991
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 2 deletions

View File

@ -197,7 +197,7 @@ export class HUDShop extends BaseHUDPart {
this.keyActionMapper = new KeyActionMapper(this.root, this.inputReciever);
this.keyActionMapper.getBinding(KEYMAPPINGS.general.back).add(this.close, this);
this.keyActionMapper.getBinding(KEYMAPPINGS.ingame.keybindingsOverlay.pipette).add(this.close, this);
this.keyActionMapper.getBinding(KEYMAPPINGS.ingame.menuClose).add(this.close, this);
this.keyActionMapper.getBinding(KEYMAPPINGS.ingame.menuOpenShop).add(this.close, this);
this.close();

View File

@ -81,7 +81,7 @@ export class HUDStatistics extends BaseHUDPart {
this.keyActionMapper = new KeyActionMapper(this.root, this.inputReciever);
this.keyActionMapper.getBinding(KEYMAPPINGS.general.back).add(this.close, this);
this.keyActionMapper.getBinding(KEYMAPPINGS.ingame.keybindingsOverlay.pipette).add(this.close, this);
this.keyActionMapper.getBinding(KEYMAPPINGS.ingame.menuClose).add(this.close, this);
this.keyActionMapper.getBinding(KEYMAPPINGS.ingame.menuOpenStats).add(this.close, this);
/** @type {Object.<string, HUDShapeStatisticsHandle>} */

View File

@ -20,6 +20,7 @@ export const KEYMAPPINGS = {
ingame: {
menuOpenShop: { keyCode: key("F") },
menuOpenStats: { keyCode: key("G") },
menuClose: { keyCode: key("Q") },
toggleHud: { keyCode: 113 }, // F2
exportScreenshot: { keyCode: 114 }, // F3PS

View File

@ -796,6 +796,7 @@ keybindings:
menuOpenShop: Upgrades
menuOpenStats: Statistics
menuClose: Close Menu
toggleHud: Toggle HUD
toggleFPSInfo: Toggle FPS and Debug Info

View File

@ -760,6 +760,7 @@ keybindings:
menuOpenShop: アップグレード
menuOpenStats: 統計情報
menuClose: メニューを閉じる
toggleHud: HUD切り替え
toggleFPSInfo: FPS、デバッグ情報表示切り替え