1
0
Fork 0

added a separate "effects" dialog, may need tweaking still

Added an option in the View Options to shut off the view name popup
This commit is contained in:
sydadams 2009-10-08 02:19:37 +00:00
parent 1f345e1cda
commit a2a0534aab
4 changed files with 225 additions and 122 deletions

View file

@ -113,86 +113,6 @@
<command>dialog-apply</command> <command>dialog-apply</command>
</binding> </binding>
</checkbox> </checkbox>
<checkbox>
<halign>left</halign>
<label>Random vegetation</label>
<property>/sim/rendering/random-vegetation</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
</group>
<hrule/>
<group>
<padding>8</padding>
<layout>vbox</layout>
<text>
<padding>-6</padding>
<halign>left</halign>
<label>3D Clouds</label>
<color>
<red>0.5</red>
<green>0.5</green>
<blue>0.5</blue>
</color>
</text>
<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> </group>
<hrule/> <hrule/>
@ -241,48 +161,7 @@
<hrule/> <hrule/>
<group> <group>
<padding>8</padding>
<layout>hbox</layout>
<group>
<layout>vbox</layout>
<valign>top</valign>
<halign>left</halign>
<text>
<padding>-6</padding>
<label>Shaders</label>
<color>
<red>0.5</red>
<green>0.5</green>
<blue>0.5</blue>
</color>
</text>
</group>
<group>
<layout>vbox</layout>
<group>
<layout>hbox</layout>
<checkbox>
<halign>left</halign>
<label>Enable</label>
<property>/sim/rendering/shader-effects</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Experimental effects</label>
<property>/sim/rendering/shader-experimental</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
</group>
</group>
</group>
<group>
<layout>hbox</layout> <layout>hbox</layout>
<empty><stretch>true</stretch></empty> <empty><stretch>true</stretch></empty>

View file

@ -0,0 +1,205 @@
<?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/>
<!--
<button>
<halign>left</halign>
<legend>Terrain</legend>
<binding>
<command>dialog-show</command>
<dialog-name>terrain-shaders</dialog-name>
</binding>
</button>
<button>
<halign>left</halign>
<legend>Atmosphere</legend>
<binding>
<command>dialog-show</command>
<dialog-name>atmosphere-shaders</dialog-name>
</binding>
</button>
<button>
<halign>left</halign>
<legend>Water</legend>
<binding>
<command>dialog-show</command>
<dialog-name>water-shaders</dialog-name>
</binding>
</button>
<button>
<halign>left</halign>
<legend>AI models</legend>
<binding>
<command>dialog-show</command>
<dialog-name>ai-shaders</dialog-name>
</binding>
</button>
<button>
<legend>Close</legend>
<default>true</default>
<key>Esc</key>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>dialog-close</command>
</binding>
</button>
-->
<text>
<label>Terrain Effects</label>
</text>
<group>
<layout>vbox</layout>
<halign>center</halign>
<checkbox>
<halign>left</halign>
<label>Random vegetation</label>
<property>/sim/rendering/random-vegetation</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<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>
<hrule/>
<text>
<label>Atmosphere Effects</label>
</text>
<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/>
<text>
<label>Water Effects</label>
</text>
<group>
<layout>vbox</layout>
<halign>center</halign>
<checkbox>
<halign>left</halign>
<label>Light reflection</label>
<property>/sim/rendering/water-shader</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
</group>
<hrule/>
<text>
<label>Model Effects</label>
</text>
<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>

View file

@ -11,6 +11,17 @@
<hrule/> <hrule/>
<checkbox>
<halign>left</halign>
<label>Enable view name popup</label>
<property>/sim/view-name-popup</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<hrule/>
<nasal> <nasal>
<open> <open>
var group = cmdarg().getNode("group"); var group = cmdarg().getNode("group");

View file

@ -116,6 +116,14 @@
</binding> </binding>
</item> </item>
<item>
<label>Effects</label>
<binding>
<command>dialog-show</command>
<dialog-name>shader-options</dialog-name>
</binding>
</item>
<item> <item>
<label>Cockpit View Options</label> <label>Cockpit View Options</label>
<binding> <binding>