mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:24:07 +02:00
hide hyperlink property for web entities
This commit is contained in:
parent
3321265ae7
commit
c469fc6a29
1 changed files with 16 additions and 7 deletions
|
@ -308,6 +308,11 @@
|
|||
allSections.push(elWebSections);
|
||||
var elWebSourceURL = document.getElementById("property-web-source-url");
|
||||
|
||||
|
||||
var elHyperlinkHref = document.getElementById("property-hyperlink-href");
|
||||
var elHyperlinkDescription = document.getElementById("property-hyperlink-description");
|
||||
var elHyperlinkSections = document.querySelectorAll(".hyperlink-section");
|
||||
|
||||
var elParticleSections = document.querySelectorAll(".particle-section");
|
||||
allSections.push(elParticleSections);
|
||||
var elParticleIsEmitting = document.getElementById("property-particle-is-emitting");
|
||||
|
@ -370,9 +375,6 @@
|
|||
var elYTextureURL = document.getElementById("property-y-texture-url");
|
||||
var elZTextureURL = document.getElementById("property-z-texture-url");
|
||||
|
||||
var elHyperlinkHref = document.getElementById("property-hyperlink-href");
|
||||
var elHyperlinkDescription = document.getElementById("property-hyperlink-description");
|
||||
|
||||
var elPreviewCameraButton = document.getElementById("preview-camera-button");
|
||||
|
||||
if (window.EventBridge !== undefined) {
|
||||
|
@ -492,8 +494,12 @@
|
|||
for (var j = 0; j < allSections[i].length; j++) {
|
||||
allSections[i][j].style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
for (var i = 0; i < elHyperlinkSections.length; i++) {
|
||||
elHyperlinkSections[i].style.display = 'block';
|
||||
}
|
||||
|
||||
|
||||
if (properties.type == "Box" || properties.type == "Sphere" || properties.type == "ParticleEffect") {
|
||||
elColorSection.style.display = 'block';
|
||||
elColorRed.value = properties.color.red;
|
||||
|
@ -526,6 +532,9 @@
|
|||
for (var i = 0; i < elWebSections.length; i++) {
|
||||
elWebSections[i].style.display = 'block';
|
||||
}
|
||||
for (var i = 0; i < elHyperlinkSections.length; i++) {
|
||||
elHyperlinkSections[i].style.display = 'none';
|
||||
}
|
||||
|
||||
elWebSourceURL.value = properties.sourceUrl;
|
||||
} else if (properties.type == "Text") {
|
||||
|
@ -1158,17 +1167,17 @@
|
|||
</div>
|
||||
|
||||
|
||||
<div class="section-header">
|
||||
<div class="section-header hyperlink-section">
|
||||
<label>Hyperlink</label>
|
||||
</div>
|
||||
|
||||
<div class="property">
|
||||
<div class="hyperlink-section property">
|
||||
<div class="label">Href - Hifi://address</div>
|
||||
<div class="value">
|
||||
<input id="property-hyperlink-href" class="url">
|
||||
</div>
|
||||
</div>
|
||||
<div class="property">
|
||||
<div class="hyperlink-section property">
|
||||
<div class="label">Description</div>
|
||||
<div class="value">
|
||||
<input id="property-hyperlink-description" class="url">
|
||||
|
|
Loading…
Reference in a new issue