1
0
Fork 0
fgdata/gui/dialogs/clouds.xml
fredb b41afb94c6 Stuart Buchanan :
Attached is yet another 3D clouds patch, to fix the following:
1) The 3D clouds were not modified by the cloud coverage, due to some problems with osg::Switch
2) METAR changes to cloud coverage were not obeyed.
3) Making changes via the Cloud dialog had no effect unless 3D clouds were toggled.
4) Cloud cover was too sparse.
5) 3D Stratus clouds caused performance issues on some hardware (fixed by removing 3D stratus from cloudlayers.xml - it will now be a 2D layer).
2008-12-19 07:42:29 +00:00

328 lines
5.4 KiB
XML

<?xml version="1.0"?>
<PropertyList>
<!-- Control the weather -->
<name>clouds</name>
<width>600</width>
<height>280</height>
<modal>false</modal>
<text>
<x>10</x>
<y>250</y>
<label>Weather: Clouds</label>
</text>
<!-- Header Row -->
<group>
<x>0</x>
<y>210</y>
<text>
<x>10</x>
<y>0</y>
<label>Layer</label>
</text>
<text>
<x>75</x>
<y>0</y>
<label>Elevation (ft)</label>
</text>
<text>
<x>225</x>
<y>0</y>
<label>Coverage</label>
</text>
<text>
<x>450</x>
<y>0</y>
<label>Thickness (ft)</label>
</text>
</group>
<!-- Data Rows -->
<group>
<x>0</x>
<y>180</y>
<text>
<x>10</x>
<y>0</y>
<label>4</label>
</text>
<input>
<x>75</x>
<y>0</y>
<width>125</width>
<height>25</height>
<property>/environment/clouds/layer[4]/elevation-ft</property>
</input>
<combo>
<x>225</x>
<y>0</y>
<width>200</width>
<height>25</height>
<property>/environment/clouds/layer[4]/coverage</property>
<value>clear</value>
<value>few</value>
<value>scattered</value>
<value>broken</value>
<value>overcast</value>
<value>cirrus</value>
</combo>
<input>
<x>450</x>
<y>0</y>
<width>125</width>
<height>25</height>
<property>/environment/clouds/layer[4]/thickness-ft</property>
</input>
</group>
<group>
<x>0</x>
<y>150</y>
<text>
<x>10</x>
<y>0</y>
<label>3</label>
</text>
<input>
<x>75</x>
<y>0</y>
<width>125</width>
<height>25</height>
<property>/environment/clouds/layer[3]/elevation-ft</property>
</input>
<combo>
<x>225</x>
<y>0</y>
<width>200</width>
<height>25</height>
<property>/environment/clouds/layer[3]/coverage</property>
<value>clear</value>
<value>few</value>
<value>scattered</value>
<value>broken</value>
<value>overcast</value>
<value>cirrus</value>
</combo>
<input>
<x>450</x>
<y>0</y>
<width>125</width>
<height>25</height>
<property>/environment/clouds/layer[3]/thickness-ft</property>
</input>
</group>
<group>
<x>0</x>
<y>120</y>
<text>
<x>10</x>
<y>0</y>
<label>2</label>
</text>
<input>
<x>75</x>
<y>0</y>
<width>125</width>
<height>25</height>
<property>/environment/clouds/layer[2]/elevation-ft</property>
</input>
<combo>
<x>225</x>
<y>0</y>
<width>200</width>
<height>25</height>
<property>/environment/clouds/layer[2]/coverage</property>
<value>clear</value>
<value>few</value>
<value>scattered</value>
<value>broken</value>
<value>overcast</value>
<value>cirrus</value>
</combo>
<input>
<x>450</x>
<y>0</y>
<width>125</width>
<height>25</height>
<property>/environment/clouds/layer[2]/thickness-ft</property>
</input>
</group>
<group>
<x>0</x>
<y>90</y>
<text>
<x>10</x>
<y>0</y>
<label>1</label>
</text>
<input>
<x>75</x>
<y>0</y>
<width>125</width>
<height>25</height>
<property>/environment/clouds/layer[1]/elevation-ft</property>
</input>
<combo>
<x>225</x>
<y>0</y>
<width>200</width>
<height>25</height>
<property>/environment/clouds/layer[1]/coverage</property>
<value>clear</value>
<value>few</value>
<value>scattered</value>
<value>broken</value>
<value>overcast</value>
<value>cirrus</value>
</combo>
<input>
<x>450</x>
<y>0</y>
<width>125</width>
<height>25</height>
<property>/environment/clouds/layer[1]/thickness-ft</property>
</input>
</group>
<group>
<x>0</x>
<y>60</y>
<text>
<x>10</x>
<y>0</y>
<label>0</label>
</text>
<input>
<x>75</x>
<y>0</y>
<width>125</width>
<height>25</height>
<property>/environment/clouds/layer[0]/elevation-ft</property>
</input>
<combo>
<x>225</x>
<y>0</y>
<width>200</width>
<height>25</height>
<property>/environment/clouds/layer[0]/coverage</property>
<value>clear</value>
<value>few</value>
<value>scattered</value>
<value>broken</value>
<value>overcast</value>
<value>cirrus</value>
</combo>
<input>
<x>450</x>
<y>0</y>
<width>125</width>
<height>25</height>
<property>/environment/clouds/layer[0]/thickness-ft</property>
</input>
</group>
<!-- Button Box -->
<group>
<x>105</x>
<y>10</y>
<button>
<x>0</x>
<y>0</y>
<legend>OK</legend>
<default>true</default>
<equal>true</equal>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>nasal</command>
<script>
setprop("/environment/rebuild-layers", getprop("/environment/rebuild-layers")+1);
</script>
</binding>
<binding>
<command>dialog-close</command>
</binding>
</button>
<button>
<x>100</x>
<y>0</y>
<legend>Apply</legend>
<equal>true</equal>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>nasal</command>
<script>
setprop("/environment/rebuild-layers", getprop("/environment/rebuild-layers")+1);
</script>
</binding>
</button>
<button>
<x>200</x>
<y>0</y>
<legend>Reset</legend>
<equal>true</equal>
<binding>
<command>dialog-update</command>
</binding>
</button>
<button>
<x>300</x>
<y>0</y>
<legend>Cancel</legend>
<equal>true</equal>
<key>Esc</key>
<binding>
<command>dialog-close</command>
</binding>
</button>
</group>
</PropertyList>