From 47ac20134b5ff6ae54a962930224074753d3130d Mon Sep 17 00:00:00 2001 From: Robert Long Date: Wed, 27 Jan 2021 12:18:07 -0800 Subject: [PATCH 1/2] Add ability to hide UI with tilde from anywhere --- src/systems/ui-hotkeys.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/systems/ui-hotkeys.js b/src/systems/ui-hotkeys.js index 31e732bc83..d1877d5488 100644 --- a/src/systems/ui-hotkeys.js +++ b/src/systems/ui-hotkeys.js @@ -60,9 +60,7 @@ AFRAME.registerSystem("ui-hotkeys", { } if (this.userinput.get(paths.actions.toggleUI)) { - if (this.el.sceneEl.is("entered")) { - this.el.emit("action_toggle_ui"); - } + this.el.emit("action_toggle_ui"); } }, From 26722265d081db1c98b704f845cc652640b1eb0e Mon Sep 17 00:00:00 2001 From: Robert Long Date: Wed, 27 Jan 2021 12:18:58 -0800 Subject: [PATCH 2/2] Re-enable the spectate button regardless of enable_lobby_ghosts --- src/react-components/ui-root.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/react-components/ui-root.js b/src/react-components/ui-root.js index 5fd9269940..ed7716aad3 100644 --- a/src/react-components/ui-root.js +++ b/src/react-components/ui-root.js @@ -809,9 +809,7 @@ class UIRoot extends Component { }} showEnterOnDevice={!this.state.waitingOnAudio && !this.props.entryDisallowed && !isMobileVR} onEnterOnDevice={() => this.attemptLink()} - showSpectate={ - !this.state.waitingOnAudio && !this.props.entryDisallowed && configs.feature("enable_lobby_ghosts") - } + showSpectate={!this.state.waitingOnAudio && !this.props.entryDisallowed} onSpectate={() => this.setState({ watching: true })} showOptions={this.props.hubChannel.canOrWillIfCreator("update_hub")} onOptions={() => {