Skip to content

Commit

Permalink
pressing t only controls helment overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
BarthPaleologue committed Aug 26, 2023
1 parent bcf59e1 commit 92554bd
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/ts/controller/spaceEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

Expand Down

0 comments on commit 92554bd

Please sign in to comment.