mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Added blend angle and altitude reference base.
This commit is contained in:
parent
414cae8df7
commit
e15699192d
2 changed files with 22 additions and 8 deletions
|
@ -558,9 +558,12 @@
|
||||||
</div>
|
</div>
|
||||||
<fieldset class="zone-group zone-section haze-section property gen fstuple">
|
<fieldset class="zone-group zone-section haze-section property gen fstuple">
|
||||||
<div class="tuple">
|
<div class="tuple">
|
||||||
<div><label>Range <span class="unit">m</span></label><input type="number" id="property-zone-haze-range" min="5" max="10000" step="5"></div>
|
<div><label>Range<span class="unit">m</span></label><input type="number" id="property-zone-haze-range" min="5" max="10000" step="5"></div>
|
||||||
<div><label>Altitude <span class="unit">m</span></label><input type="number" id="property-zone-haze-altitude" min="10" max="5000" step="10"></div>
|
<div><label>Background Blend</label><input type="number" id="property-zone-haze-background-blend" min="0.0" max="1.0" step="0.01"></div>
|
||||||
<div><label>Background Blend </label><input type="number" id="property-zone-haze-background-blend" min="0.0" max="1.0" step="0.01"></div>
|
</div>
|
||||||
|
<div class="tuple">
|
||||||
|
<div><label>Altitude<span class="unit">m</span></label><input type="number" id="property-zone-haze-altitude" min="10" max="5000" step="10"></div>
|
||||||
|
<div><label>Base<span class="unit">m</span></label><input type="number" id="property-zone-haze-altitude-base" min="-1000" max="1000" step="10"></div>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="zone-group zone-section haze-section property rgb fstuple">
|
<fieldset class="zone-group zone-section haze-section property rgb fstuple">
|
||||||
|
@ -587,7 +590,12 @@
|
||||||
<label for="property-zone-haze-blend-out-color-blue">Blue:</label></div>
|
<label for="property-zone-haze-blend-out-color-blue">Blue:</label></div>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</fieldset>
|
<fieldset class="zone-group zone-section haze-section property gen fstuple">
|
||||||
|
<div class="tuple">
|
||||||
|
<div><label>Blend Angle<span class="unit">deg</span></label><input type="number" id="property-zone-haze-blend-angle" min="0" max="180" step="1"></div>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
</fieldset>
|
||||||
<fieldset class="minor">
|
<fieldset class="minor">
|
||||||
<legend class="sub-section-header zone-group zone-section stage-section">
|
<legend class="sub-section-header zone-group zone-section stage-section">
|
||||||
Stage
|
Stage
|
||||||
|
|
|
@ -669,8 +669,10 @@ function loaded() {
|
||||||
var elZoneHazeBlendOutColorGreen = document.getElementById("property-zone-haze-blend-out-color-green");
|
var elZoneHazeBlendOutColorGreen = document.getElementById("property-zone-haze-blend-out-color-green");
|
||||||
var elZoneHazeBlendOutColorBlue = document.getElementById("property-zone-haze-blend-out-color-blue");
|
var elZoneHazeBlendOutColorBlue = document.getElementById("property-zone-haze-blend-out-color-blue");
|
||||||
var elZoneHazeBackgroundBlend = document.getElementById("property-zone-haze-background-blend");
|
var elZoneHazeBackgroundBlend = document.getElementById("property-zone-haze-background-blend");
|
||||||
|
var elZoneHazeLightBlendAngle = document.getElementById("property-zone-haze-blend-angle");
|
||||||
|
|
||||||
var elZoneHazeAltitude = document.getElementById("property-zone-haze-altitude");
|
var elZoneHazeAltitude = document.getElementById("property-zone-haze-altitude");
|
||||||
|
var elZoneHazeBaseRef = document.getElementById("property-zone-haze-altitude-base");
|
||||||
|
|
||||||
var elZoneStageLatitude = document.getElementById("property-zone-stage-latitude");
|
var elZoneStageLatitude = document.getElementById("property-zone-stage-latitude");
|
||||||
var elZoneStageLongitude = document.getElementById("property-zone-stage-longitude");
|
var elZoneStageLongitude = document.getElementById("property-zone-stage-longitude");
|
||||||
|
@ -1031,10 +1033,12 @@ function loaded() {
|
||||||
elZoneHazeBlendOutColorRed.value = properties.haze.hazeBlendOutColor.red;
|
elZoneHazeBlendOutColorRed.value = properties.haze.hazeBlendOutColor.red;
|
||||||
elZoneHazeBlendOutColorGreen.value = properties.haze.hazeBlendOutColor.green;
|
elZoneHazeBlendOutColorGreen.value = properties.haze.hazeBlendOutColor.green;
|
||||||
elZoneHazeBlendOutColorBlue.value = properties.haze.hazeBlendOutColor.blue;
|
elZoneHazeBlendOutColorBlue.value = properties.haze.hazeBlendOutColor.blue;
|
||||||
|
elZoneHazeLightBlendAngle.value = properties.haze.hazeLightBlendAngle.toFixed(0);
|
||||||
elZoneHazeBackgroundBlend.value = properties.haze.hazeBackgroundBlend.toFixed(2);
|
|
||||||
|
|
||||||
elZoneHazeAltitude.value = properties.haze.hazeAltitude.toFixed(0);
|
elZoneHazeAltitude.value = properties.haze.hazeAltitude.toFixed(0);
|
||||||
|
elZoneHazeBaseRef.value = properties.haze.hazeBaseRef.toFixed(0);
|
||||||
|
|
||||||
|
elZoneHazeBackgroundBlend.value = properties.haze.hazeBackgroundBlend.toFixed(2);
|
||||||
|
|
||||||
elZoneStageLatitude.value = properties.stage.latitude.toFixed(2);
|
elZoneStageLatitude.value = properties.stage.latitude.toFixed(2);
|
||||||
elZoneStageLongitude.value = properties.stage.longitude.toFixed(2);
|
elZoneStageLongitude.value = properties.stage.longitude.toFixed(2);
|
||||||
|
@ -1483,10 +1487,12 @@ function loaded() {
|
||||||
elZoneHazeBlendOutColorRed.addEventListener('change', zoneHazeBlendOutColorChangeFunction);
|
elZoneHazeBlendOutColorRed.addEventListener('change', zoneHazeBlendOutColorChangeFunction);
|
||||||
elZoneHazeBlendOutColorGreen.addEventListener('change', zoneHazeBlendOutColorChangeFunction);
|
elZoneHazeBlendOutColorGreen.addEventListener('change', zoneHazeBlendOutColorChangeFunction);
|
||||||
elZoneHazeBlendOutColorBlue.addEventListener('change', zoneHazeBlendOutColorChangeFunction);
|
elZoneHazeBlendOutColorBlue.addEventListener('change', zoneHazeBlendOutColorChangeFunction);
|
||||||
|
elZoneHazeLightBlendAngle.addEventListener('change', createEmitGroupNumberPropertyUpdateFunction('haze', 'hazeLightBlendAngle'));
|
||||||
elZoneHazeBackgroundBlend.addEventListener('change', createEmitGroupNumberPropertyUpdateFunction('haze', 'hazeBackgroundBlend'));
|
|
||||||
|
|
||||||
elZoneHazeAltitude.addEventListener('change', createEmitGroupNumberPropertyUpdateFunction('haze', 'hazeAltitude'));
|
elZoneHazeAltitude.addEventListener('change', createEmitGroupNumberPropertyUpdateFunction('haze', 'hazeAltitude'));
|
||||||
|
elZoneHazeBaseRef.addEventListener('change', createEmitGroupNumberPropertyUpdateFunction('haze', 'hazeBaseRef'));
|
||||||
|
|
||||||
|
elZoneHazeBackgroundBlend.addEventListener('change', createEmitGroupNumberPropertyUpdateFunction('haze', 'hazeBackgroundBlend'));
|
||||||
|
|
||||||
elZoneStageLatitude.addEventListener('change', createEmitGroupNumberPropertyUpdateFunction('stage', 'latitude'));
|
elZoneStageLatitude.addEventListener('change', createEmitGroupNumberPropertyUpdateFunction('stage', 'latitude'));
|
||||||
elZoneStageLongitude.addEventListener('change', createEmitGroupNumberPropertyUpdateFunction('stage', 'longitude'));
|
elZoneStageLongitude.addEventListener('change', createEmitGroupNumberPropertyUpdateFunction('stage', 'longitude'));
|
||||||
|
|
Loading…
Reference in a new issue