From 96c3a0edbd5455b6709320b14d9efa1091608fda Mon Sep 17 00:00:00 2001 From: Philip Rosedale Date: Tue, 9 Dec 2014 17:39:05 -0800 Subject: [PATCH] option to suppress lobby text for now, defaults to true --- examples/lobby.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/lobby.js b/examples/lobby.js index 9e454eccc9..4ab2841c0e 100644 --- a/examples/lobby.js +++ b/examples/lobby.js @@ -15,6 +15,7 @@ var panelWall = false; var orbShell = false; var reticle = false; var descriptionText = false; +var showText = false; // used for formating the description text, in meters var textWidth = 4; @@ -312,7 +313,7 @@ function handleLookAt(pickRay) { var actionLocation = locations[panelIndex]; if (actionLocation.description == "") { - Overlays.editOverlay(descriptionText, { text: actionLocation.name, visible: true }); + Overlays.editOverlay(descriptionText, { text: actionLocation.name, visible: showText }); } else { // handle line wrapping var allWords = actionLocation.description.split(" "); @@ -344,7 +345,7 @@ function handleLookAt(pickRay) { } } formatedDescription += currentGoodLine; - Overlays.editOverlay(descriptionText, { text: formatedDescription, visible: true }); + Overlays.editOverlay(descriptionText, { text: formatedDescription, visible: showText }); } } else { Overlays.editOverlay(descriptionText, { text: "", visible: false });