From 498ed4cbe8ea9286993466222be4ee0d75dd3379 Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Wed, 14 Jun 2017 17:00:33 -0700 Subject: [PATCH] showSpectatorInDesktop true for now --- scripts/system/spectatorCamera.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/system/spectatorCamera.js b/scripts/system/spectatorCamera.js index e308e252b3..a7f5dbcc79 100644 --- a/scripts/system/spectatorCamera.js +++ b/scripts/system/spectatorCamera.js @@ -194,7 +194,7 @@ } // - // Function Names: addOrRemoveButton() + // Function Name: addOrRemoveButton() // // Relevant Variables: // button: The tablet button. @@ -203,7 +203,7 @@ // showInDesktop: Set to "true" to show the "SPECTATOR" app in desktop mode // // Arguments: - // forceRemove: Set to "true" to force removal of the button, i.e. upon shutdown + // shouldntAdd: Set to "true" if you don't want to add the button, i.e. upon shutdown // isHMDMode: "true" if user is in HMD; false otherwise // // Description: @@ -212,10 +212,10 @@ var button = false; var buttonName = "SPECTATOR"; var tablet = null; - var showSpectatorInDesktop = false; - function addOrRemoveButton(forceRemove, isHMDMode) { + var showSpectatorInDesktop = true; + function addOrRemoveButton(shouldntAdd, isHMDMode) { if (!button) { - if ((isHMDMode || showSpectatorInDesktop) && !forceRemove) { + if ((isHMDMode || showSpectatorInDesktop) && !shouldntAdd) { button = tablet.addButton({ text: buttonName }); @@ -226,7 +226,7 @@ tablet.removeButton(button); button = false; } else { - print("ERROR adding/removing Spectator button!") + print("ERROR adding/removing Spectator button!"); } }