From fcdb9b6cbef574ab334012ff0d96ba3387f7a8dd Mon Sep 17 00:00:00 2001 From: Daniela Fontes Date: Mon, 18 Dec 2017 15:21:23 +0000 Subject: [PATCH] Particle Emitter 'Show Properties' button now changes to 'Hide Properties' when properties are already visible --- scripts/system/particle_explorer/particleExplorer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/system/particle_explorer/particleExplorer.js b/scripts/system/particle_explorer/particleExplorer.js index 057bd1dd85..6325050418 100644 --- a/scripts/system/particle_explorer/particleExplorer.js +++ b/scripts/system/particle_explorer/particleExplorer.js @@ -5,6 +5,7 @@ // Copyright 2017 High Fidelity, Inc. // // Reworked by Menithal on 20/5/2017 +// Reworked by Daniela Fontes (Mimicry) on 12/18/2017 // // Web app side of the App - contains GUI. // This is an example of a new, easy way to do two way bindings between dynamically created GUI and in-world entities. @@ -51,6 +52,7 @@ } }; textarea.oninput = textarea.onchange; + document.getElementById("show-properties-button").value = "Hide Properties"; } else { textarea.onchange = function () {}; textarea.oninput = textarea.onchange; @@ -60,6 +62,7 @@ insertZone.parentNode.clientHeight + "px"; document.getElementById("export-properties-button").setAttribute("disabled", true); document.getElementById("import-properties-button").setAttribute("disabled", true); + document.getElementById("show-properties-button").value = "Show Properties"; } } },