mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 19:55:07 +02:00
Completed the use of radio-buttons to hide disabled sections.
This commit is contained in:
parent
a6f3401d0e
commit
0e76d481a1
2 changed files with 11 additions and 4 deletions
|
@ -508,7 +508,7 @@
|
|||
<label for="property-zone-filter-url">Filter URL</label>
|
||||
<input type="text" id="property-zone-filter-url">
|
||||
</div>
|
||||
<div class="sub-section-header zone-group zone-section keylight-section">
|
||||
<div class="sub-section-header zone-group zone-section">
|
||||
<label>Key Light</label>
|
||||
</div>
|
||||
<form>
|
||||
|
@ -569,7 +569,7 @@
|
|||
<input type="button" id="copy-skybox-url-to-ambient-url" value="Copy URL to Ambient">
|
||||
</div>
|
||||
</fieldset>
|
||||
<div class="sub-section-header zone-group zone-section ambient-section">
|
||||
<div class="sub-section-header zone-group zone-section">
|
||||
<label>Ambient Light</label>
|
||||
</div>
|
||||
<form>
|
||||
|
@ -587,7 +587,7 @@
|
|||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="minor">
|
||||
<legend class="sub-section-header zone-group zone-section haze-section">
|
||||
<legend class="sub-section-header zone-group zone-section">
|
||||
Haze
|
||||
</legend>
|
||||
<form>
|
||||
|
|
|
@ -1104,8 +1104,15 @@ function loaded() {
|
|||
elZoneFilterURL.value = properties.filterURL;
|
||||
|
||||
// Show/hide sections as required
|
||||
showElements(document.getElementsByClassName('skybox-section'),
|
||||
showElements(document.getElementsByClassName('skybox-section'),
|
||||
elZoneSkyboxModeEnabled.checked);
|
||||
showElements(document.getElementsByClassName('keylight-section'),
|
||||
elZoneKeyLightModeEnabled.checked);
|
||||
showElements(document.getElementsByClassName('ambient-section'),
|
||||
elZoneAmbientLightModeEnabled.checked);
|
||||
showElements(document.getElementsByClassName('haze-section'),
|
||||
elZoneHazeModeEnabled.checked);
|
||||
|
||||
} else if (properties.type === "PolyVox") {
|
||||
elVoxelVolumeSizeX.value = properties.voxelVolumeSize.x.toFixed(2);
|
||||
elVoxelVolumeSizeY.value = properties.voxelVolumeSize.y.toFixed(2);
|
||||
|
|
Loading…
Reference in a new issue