1
0
Fork 0

Updated Rendering and Display options dialogs.

This commit is contained in:
stuart 2009-11-22 19:26:06 +00:00
parent 8fad7cff18
commit 1807917d0c
3 changed files with 243 additions and 307 deletions

View file

@ -34,69 +34,26 @@
</checkbox>
<checkbox>
<halign>left</halign>
<label>Enable view popups</label>
<property>/sim/view-name-popup</property>
<binding>
<command>dialog-apply</command>
</binding>
<halign>left</halign>
<label>Show view name popup</label>
<property>/sim/view-name-popup</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Toggle 2D Panel</label>
<binding>
<command>property-toggle</command>
<property>/sim/panel/visibility</property>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Allow 3d cockpit toggle</label>
<property>/sim/allow-toggle-cockpit</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<button>
<halign>center</halign>
<legend>Cycle HUD</legend>
<binding>
<command>nasal</command>
<script>aircraft.HUD.cycle_color()</script>
</binding>
</button>
<button>
<halign>center</halign>
<legend>Configure views</legend>
<binding>
<command>dialog-show</command>
<dialog-name>view</dialog-name>
</binding>
</button>
<button>
<halign>center</halign>
<legend>Save current FOV</legend>
<binding>
<command>nasal</command>
<script>
var nm=getprop("/sim/current-view/view-number");
var vw = getprop("/sim/current-view/field-of-view");
setprop("/sim/current-view/config/default-field-of-view-deg",vw);
setprop("/sim/view["~nm~"]/config/default-field-of-view-deg",vw);
</script>
</binding>
</button>
</group>
<item>
<label>Show 2D Panel</label>
<property>/sim/panel/visibility</property>
<binding>
<command>dialog-apply</command>
</binding>
</item>
</group>
<hrule/>
<group>
<group>
<layout>hbox</layout>
<empty><stretch>true</stretch></empty>

View file

@ -4,6 +4,7 @@
<name>rendering</name>
<modal>false</modal>
<layout>vbox</layout>
<padding>20</padding>
<text>
<label>Rendering Options</label>
@ -12,146 +13,252 @@
<hrule/>
<group>
<layout>vbox</layout>
<halign>center</halign>
<checkbox>
<halign>left</halign>
<label>Sun/Moon horizon effect</label>
<property>/sim/rendering/horizon-effect</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Use Point Sprites for Runway Lights</label>
<property>/sim/rendering/point-sprites</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Enhanced runway lighting</label>
<property>/sim/rendering/enhanced-lighting</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Runway light distance attenuation</label>
<property>/sim/rendering/distance-attenuation</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Specular reflections on objects</label>
<property>/sim/rendering/specular-highlight</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Particles (Smoke, Dust, Spray)</label>
<property>/sim/rendering/particles</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Precipitation</label>
<property>/sim/rendering/precipitation-gui-enable</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Random vegetation</label>
<property>/sim/rendering/random-vegetation</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<button>
<halign>center</halign>
<legend>Configure shader effects </legend>
<binding>
<command>dialog-show</command>
<dialog-name>shader-options</dialog-name>
</binding>
</button>
<!--checkbox>
<halign>left</halign>
<label>Lightning</label>
<property>/sim/rendering/lightning-enable</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox-->
<!--checkbox>
<halign>left</halign>
<label>Bump mapped clouds</label>
<property>/sim/rendering/bump-mapping</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox-->
</group>
<hrule/>
<group>
<padding>8</padding>
<layout>hbox</layout>
<group>
<layout>vbox</layout>
<valign>top</valign>
<halign>left</halign>
<text>
<padding>-6</padding>
<label>Shadows</label>
<color>
<red>0.5</red>
<green>0.5</green>
<blue>0.5</blue>
</color>
<halign>left</halign>
<label>Lighting</label>
</text>
<checkbox>
<halign>left</halign>
<label>Sun/Moon horizon effect</label>
<property>/sim/rendering/horizon-effect</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Use point sprites for runway lights</label>
<property>/sim/rendering/point-sprites</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Enhanced runway lighting</label>
<property>/sim/rendering/enhanced-lighting</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Runway light distance attenuation</label>
<property>/sim/rendering/distance-attenuation</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Specular reflections on objects</label>
<property>/sim/rendering/specular-highlight</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<hrule/>
<text>
<halign>left</halign>
<label>Objects</label>
</text>
<checkbox>
<halign>left</halign>
<label>Particles (Smoke, Dust, Spray)</label>
<property>/sim/rendering/particles</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Precipitation</label>
<property>/sim/rendering/precipitation-gui-enable</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Lightning</label>
<property>/sim/rendering/lightning-enable</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Bump mapped clouds</label>
<property>/sim/rendering/bump-mapping</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Random objects</label>
<property>/sim/rendering/random-objects</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Random vegetation</label>
<property>/sim/rendering/random-vegetation</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
</group>
<vrule/>
<group>
<layout>vbox</layout>
<text>
<halign>left</halign>
<label>Shadows</label>
</text>
<checkbox>
<halign>left</halign>
<label>Enable</label>
<property>/sim/rendering/shadows/enabled</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Debug</label>
<property>/sim/rendering/shadows/debug</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<hrule/>
<text>
<label>3D Clouds</label>
<halign>left</halign>
</text>
<checkbox>
<label>Enable 3D clouds</label>
<halign>left</halign>
<property>/sim/rendering/clouds3d-enable</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<group>
<layout>hbox</layout>
<halign>right</halign>
<text><label>Cloud density</label></text>
<slider>
<min>0</min>
<max>1.0</max>
<property>/sim/rendering/clouds3d-density</property>
<binding>
<command>dialog-apply</command>
</binding>
</slider>
<text>
<label>12345678</label>
<format>%.2f</format>
<live>true</live>
<property>/sim/rendering/clouds3d-density</property>
</text>
</group>
<group>
<layout>hbox</layout>
<halign>right</halign>
<text><label>Cloud visibility range</label></text>
<slider>
<min>100.0</min>
<max>20000.0</max>
<property>/sim/rendering/clouds3d-vis-range</property>
<binding>
<command>dialog-apply</command>
</binding>
</slider>
<text>
<label>12345678</label>
<format>%.fm</format>
<live>true</live>
<property>/sim/rendering/clouds3d-vis-range</property>
</text>
</group>
<hrule/>
<text>
<halign>left</halign>
<label>Shader Effects</label>
</text>
<checkbox>
<halign>left</halign>
<label>Material Shaders</label>
<property>/sim/rendering/shader-effects</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<group>
<layout>vbox</layout>
<padding>10</padding>
<checkbox>
<halign>left</halign>
<label>Enable</label>
<property>/sim/rendering/shadows/enabled</property>
<label>Crop texture</label>
<property>/sim/rendering/crop-shader</property>
<binding>
<command>dialog-apply</command>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Debug</label>
<property>/sim/rendering/shadows/debug</property>
<label>Landmass effects</label>
<property>/sim/rendering/landmass-shader</property>
<binding>
<command>dialog-apply</command>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Water reflection</label>
<property>/sim/rendering/water-shader</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
</group>
@ -161,64 +268,6 @@
<hrule/>
<group>
<padding>8</padding>
<layout>vbox</layout>
<checkbox>
<padding>8</padding>
<halign>left</halign>
<label>Enable 3d clouds</label>
<property>/sim/rendering/clouds3d-enable</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<group>
<layout>hbox</layout>
<halign>right</halign>
<text><label>Cloud density</label></text>
<slider>
<min>0</min>
<max>1.0</max>
<property>/sim/rendering/clouds3d-density</property>
<binding>
<command>dialog-apply</command>
</binding>
</slider>
<text>
<label>12345678</label>
<format>%.2f</format>
<live>true</live>
<property>/sim/rendering/clouds3d-density</property>
</text>
</group>
<group>
<layout>hbox</layout>
<halign>right</halign>
<text><label>Cloud visibility range</label></text>
<slider>
<min>100.0</min>
<max>20000.0</max>
<property>/sim/rendering/clouds3d-vis-range</property>
<binding>
<command>dialog-apply</command>
</binding>
</slider>
<text>
<label>12345678</label>
<format>%.fm</format>
<live>true</live>
<property>/sim/rendering/clouds3d-vis-range</property>
</text>
</group>
</group>
<hrule/>
<group>
<layout>hbox</layout>
<empty><stretch>true</stretch></empty>

View file

@ -1,70 +0,0 @@
<?xml version="1.0"?>
<PropertyList>
<name>shader-options</name>
<modal>false</modal>
<layout>vbox</layout>
<checkbox>
<halign>left</halign>
<label>Enable effects</label>
<property>/sim/rendering/shader-effects</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<hrule/>
<group>
<layout>vbox</layout>
<halign>center</halign>
<group>
<layout>hbox</layout>
<halign>left</halign>
<checkbox>
<halign>left</halign>
<label>Crop texture</label>
<property>/sim/rendering/crop-shader</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Landmass effects</label>
<property>/sim/rendering/landmass-shader</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
</group>
<group>
<layout>hbox</layout>
<halign>left</halign>
<checkbox>
<halign>left</halign>
<label>Water reflection</label>
<property>/sim/rendering/water-shader</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
</group>
</group>
<hrule/>
<button>
<legend>Close</legend>
<default>true</default>
<key>Esc</key>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>dialog-close</command>
</binding>
</button>
</PropertyList>