1
0
Fork 0

Local Weather: auto-enable 3D clouds and disable the checkbox.

This commit is contained in:
Michael Danilov 2021-08-18 23:58:55 +02:00
parent d363c35f4a
commit c9709e2a62
2 changed files with 8 additions and 1 deletions

View file

@ -1098,7 +1098,12 @@
<checkbox> <checkbox>
<halign>left</halign> <halign>left</halign>
<label>3D clouds</label> <enable>
<not>
<property>/nasal/local_weather/enabled</property>
</not>
</enable>
<label>3D clouds (required by Detailed Weather)</label>
<name>3d-clouds</name> <name>3d-clouds</name>
<property>/sim/rendering/clouds3d-enable</property> <property>/sim/rendering/clouds3d-enable</property>
<binding> <binding>

View file

@ -174,6 +174,8 @@
# If Local Weather is enabled, re-initialize with updated # If Local Weather is enabled, re-initialize with updated
# initial tile and tile selection. # initial tile and tile selection.
setprop("/nasal/local_weather/enabled", "true"); setprop("/nasal/local_weather/enabled", "true");
# Local Weather requires 3D clouds.
setprop("/sim/rendering/clouds3d-enable", "true");
# Re-initialize local weather. # Re-initialize local weather.
settimer( func {local_weather.set_tile();}, 0.2); settimer( func {local_weather.set_tile();}, 0.2);