From a8fd92d2bfb7a4aa268f00e3fdad33190db23251 Mon Sep 17 00:00:00 2001 From: howard-stearns Date: Tue, 16 Aug 2016 12:35:49 -0700 Subject: [PATCH] Hide reticle during snapshot --- scripts/system/snapshot.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/system/snapshot.js b/scripts/system/snapshot.js index 39bcc7fe90..795e469c83 100644 --- a/scripts/system/snapshot.js +++ b/scripts/system/snapshot.js @@ -9,7 +9,7 @@ // var SNAPSHOT_DELAY = 500; // 500ms var toolBar = Toolbars.getToolbar("com.highfidelity.interface.toolbar.system"); -var resetOverlays; +var resetOverlays, recticleVisible; var button = toolBar.addButton({ objectName: "snapshot", imageURL: Script.resolvePath("assets/images/tools/snap.svg"), @@ -57,6 +57,8 @@ function snapshotShared(success) { function onClicked() { // update button states resetOverlays = Menu.isOptionChecked("Overlays"); + reticleVisible = Reticle.visible; + Reticle.visible = false; Window.snapshotTaken.connect(resetButtons); button.writeProperty("buttonState", 0); @@ -84,6 +86,7 @@ function resetButtons(path, notify) { } // show hud toolBar.writeProperty("visible", true); + Reticle.visible = reticleVisible; // update button states button.writeProperty("buttonState", 1);