1
0
Fork 0

Add climate selection options to set the environment and weather based on climate data. Setting the weather is not yet implemented in the code but eventually it will be.

This commit is contained in:
Erik Hofman 2020-11-09 11:44:08 +01:00
parent 4aff635cdb
commit 7f66257bfb
2 changed files with 37 additions and 2 deletions

View file

@ -283,6 +283,11 @@
</config>
<climate>
<weather-update type="bool" userarchive="y">false</weather-update>
<environment-update type="bool" userarchive="y">false</environment-update>
</climate>
<clouds>
<layer n="0">
<coverage type="string">clear</coverage>

View file

@ -88,15 +88,45 @@
</text>
<group>
<layout>hbox</layout>
<layout>vbox</layout>
<halign>left</halign>
<text>
<label> </label>
<halign>left</halign>
</text>
<group>
<layout>hbox</layout>
<checkbox>
<label> Climate updates weather</label>
<name>climate-update</name>
<property>/environment/climate/weather-update</property>
<live>true</live>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>property-toggle</command>
</binding>
</checkbox>
<checkbox>
<label> Climate updates environment</label>
<name>climate-update</name>
<property>/environment/climate/environment-update</property>
<live>true</live>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>property-toggle</command>
</binding>
</checkbox>
</group>
<checkbox>
<label> Set maximum snow level from METAR</label>
<label> Set maximum snow level from weather</label>
<name>metar-snow</name>
<property>/environment/params/metar-updates-snow-level</property>
<binding>