mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Merge pull request #380 from isaisstillalive/patch-2
Close-shop-and-stats key mapping doesn't seem to exist
This commit is contained in:
commit
eeed8dd991
@ -197,7 +197,7 @@ export class HUDShop extends BaseHUDPart {
|
|||||||
this.keyActionMapper = new KeyActionMapper(this.root, this.inputReciever);
|
this.keyActionMapper = new KeyActionMapper(this.root, this.inputReciever);
|
||||||
|
|
||||||
this.keyActionMapper.getBinding(KEYMAPPINGS.general.back).add(this.close, this);
|
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.keyActionMapper.getBinding(KEYMAPPINGS.ingame.menuOpenShop).add(this.close, this);
|
||||||
|
|
||||||
this.close();
|
this.close();
|
||||||
|
@ -81,7 +81,7 @@ export class HUDStatistics extends BaseHUDPart {
|
|||||||
this.keyActionMapper = new KeyActionMapper(this.root, this.inputReciever);
|
this.keyActionMapper = new KeyActionMapper(this.root, this.inputReciever);
|
||||||
|
|
||||||
this.keyActionMapper.getBinding(KEYMAPPINGS.general.back).add(this.close, this);
|
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);
|
this.keyActionMapper.getBinding(KEYMAPPINGS.ingame.menuOpenStats).add(this.close, this);
|
||||||
|
|
||||||
/** @type {Object.<string, HUDShapeStatisticsHandle>} */
|
/** @type {Object.<string, HUDShapeStatisticsHandle>} */
|
||||||
|
@ -20,6 +20,7 @@ export const KEYMAPPINGS = {
|
|||||||
ingame: {
|
ingame: {
|
||||||
menuOpenShop: { keyCode: key("F") },
|
menuOpenShop: { keyCode: key("F") },
|
||||||
menuOpenStats: { keyCode: key("G") },
|
menuOpenStats: { keyCode: key("G") },
|
||||||
|
menuClose: { keyCode: key("Q") },
|
||||||
|
|
||||||
toggleHud: { keyCode: 113 }, // F2
|
toggleHud: { keyCode: 113 }, // F2
|
||||||
exportScreenshot: { keyCode: 114 }, // F3PS
|
exportScreenshot: { keyCode: 114 }, // F3PS
|
||||||
|
@ -796,6 +796,7 @@ keybindings:
|
|||||||
|
|
||||||
menuOpenShop: Upgrades
|
menuOpenShop: Upgrades
|
||||||
menuOpenStats: Statistics
|
menuOpenStats: Statistics
|
||||||
|
menuClose: Close Menu
|
||||||
|
|
||||||
toggleHud: Toggle HUD
|
toggleHud: Toggle HUD
|
||||||
toggleFPSInfo: Toggle FPS and Debug Info
|
toggleFPSInfo: Toggle FPS and Debug Info
|
||||||
|
@ -760,6 +760,7 @@ keybindings:
|
|||||||
|
|
||||||
menuOpenShop: アップグレード
|
menuOpenShop: アップグレード
|
||||||
menuOpenStats: 統計情報
|
menuOpenStats: 統計情報
|
||||||
|
menuClose: メニューを閉じる
|
||||||
|
|
||||||
toggleHud: HUD切り替え
|
toggleHud: HUD切り替え
|
||||||
toggleFPSInfo: FPS、デバッグ情報表示切り替え
|
toggleFPSInfo: FPS、デバッグ情報表示切り替え
|
||||||
|
Loading…
Reference in New Issue
Block a user