From fad0607bf6c66219f80de893c13fde5497fdd764 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Thu, 20 Oct 2016 11:49:23 -0700 Subject: [PATCH] Remove showing of overlays in away.js --- scripts/system/away.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/scripts/system/away.js b/scripts/system/away.js index f4a1a22bf6..51853a1607 100644 --- a/scripts/system/away.js +++ b/scripts/system/away.js @@ -54,7 +54,6 @@ var AWAY_INTRO = { var isEnabled = true; var wasMuted; // unknonwn? var isAway = false; // we start in the un-away state -var wasOverlaysVisible = Menu.isOptionChecked("Overlays"); var eventMappingName = "io.highfidelity.away"; // goActive on hand controller button events, too. var eventMapping = Controller.newMapping(eventMappingName); var avatarPosition = MyAvatar.position; @@ -178,12 +177,6 @@ function goAway(fromStartup) { playAwayAnimation(); // animation is still seen by others showOverlay(); - // remember the View > Overlays state... - wasOverlaysVisible = Menu.isOptionChecked("Overlays"); - - // show overlays so that people can see the "Away" message - Menu.setIsOptionChecked("Overlays", true); - // tell the Reticle, we want to stop capturing the mouse until we come back Reticle.allowMouseCapture = false; // Allow users to find their way to other applications, our menus, etc. @@ -233,9 +226,6 @@ function goActive() { hideOverlay(); - // restore overlays state to what it was when we went "away" - Menu.setIsOptionChecked("Overlays", wasOverlaysVisible); - // tell the Reticle, we are ready to capture the mouse again and it should be visible Reticle.allowMouseCapture = true; Reticle.visible = true;