mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 06:58:56 +02:00
Particle Emitter 'Show Properties' button now changes to 'Hide Properties' when properties are already visible
This commit is contained in:
parent
4d42dba300
commit
fcdb9b6cbe
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
||||||
// Copyright 2017 High Fidelity, Inc.
|
// Copyright 2017 High Fidelity, Inc.
|
||||||
//
|
//
|
||||||
// Reworked by Menithal on 20/5/2017
|
// Reworked by Menithal on 20/5/2017
|
||||||
|
// Reworked by Daniela Fontes (Mimicry) on 12/18/2017
|
||||||
//
|
//
|
||||||
// Web app side of the App - contains GUI.
|
// 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.
|
// 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;
|
textarea.oninput = textarea.onchange;
|
||||||
|
document.getElementById("show-properties-button").value = "Hide Properties";
|
||||||
} else {
|
} else {
|
||||||
textarea.onchange = function () {};
|
textarea.onchange = function () {};
|
||||||
textarea.oninput = textarea.onchange;
|
textarea.oninput = textarea.onchange;
|
||||||
|
@ -60,6 +62,7 @@
|
||||||
insertZone.parentNode.clientHeight + "px";
|
insertZone.parentNode.clientHeight + "px";
|
||||||
document.getElementById("export-properties-button").setAttribute("disabled", true);
|
document.getElementById("export-properties-button").setAttribute("disabled", true);
|
||||||
document.getElementById("import-properties-button").setAttribute("disabled", true);
|
document.getElementById("import-properties-button").setAttribute("disabled", true);
|
||||||
|
document.getElementById("show-properties-button").value = "Show Properties";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue