From 92554bd6f9aa0726de15f2997c92d42f202e86cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barth=C3=A9lemy?= <31370477+BarthPaleologue@users.noreply.github.com> Date: Sun, 27 Aug 2023 01:08:43 +0200 Subject: [PATCH] pressing t only controls helment overlay --- src/ts/controller/spaceEngine.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/ts/controller/spaceEngine.ts b/src/ts/controller/spaceEngine.ts index f3ce49c78..491dba26c 100644 --- a/src/ts/controller/spaceEngine.ts +++ b/src/ts/controller/spaceEngine.ts @@ -113,13 +113,7 @@ export class SpaceEngine { if (e.key === "t") { if (this.getActiveScene() === this.starSystemScene) { - if (this.bodyEditor.getVisibility() === EditorVisibility.NAVBAR && this.helmetOverlay.isVisible()) { - this.bodyEditor.setVisibility(EditorVisibility.HIDDEN); - this.helmetOverlay.setVisibility(false); - } else if (this.bodyEditor.getVisibility() === EditorVisibility.HIDDEN && !this.helmetOverlay.isVisible()) { - this.bodyEditor.setVisibility(EditorVisibility.NAVBAR); - this.helmetOverlay.setVisibility(true); - } + this.helmetOverlay.setVisibility(!this.helmetOverlay.isVisible()); } }