1
0
Fork 0
Stuart Buchanan 2017-04-09 22:02:08 +01:00
parent 48768ee9d2
commit 43c77895b1

View file

@ -107,7 +107,7 @@
}
setprop( me.base ~ "/metar-string", normalize_string(getprop("environment/metar/data")) );
gui.findElementByName( me.dlgRoot, "metar-string" ).getNode("legend", 1).setValue(normalize_string(getprop("environment/metar/data")));
gui.findElementByName( me.dlgRoot, "metar-string-input" ).getNode("legend", 1).setValue(normalize_string(getprop("environment/metar/data")));
# fill the METAR source combo box
var combo = gui.findElementByName( me.dlgRoot, "source-selection" );
@ -153,6 +153,7 @@
setprop( "/environment/realwx/enabled", 0 );
setprop( "/environment/config/enabled", 1 );
metar = getprop( me.base ~ "/metar-string" );
setprop("/environment/weather-scenario", scenarioName);
} else {
setprop( "/environment/params/metar-updates-environment", 1 );
setprop( "/environment/realwx/enabled", 0 );
@ -624,7 +625,7 @@
</binding>
<binding>
<command>dialog-update</command>
<object-name>metar-string</object-name>
<object-name>metar-string-input</object-name>
</binding>
</combo>
</group>
@ -657,7 +658,7 @@
<group>
<layout>hbox</layout>
<textbox>
<name>metar-string</name>
<name>metar-string-input</name>
<halign>fill</halign>
<stretch>true</stretch>
<!--
@ -667,7 +668,7 @@
<slider>15</slider>
<editable>true</editable>
<wrap>true</wrap>
<live>true</live>
<!-- <live>true</live> -->
<top-line>0</top-line>
<property>sim/gui/dialogs/metar/metar-string</property>
<enable>
@ -684,7 +685,7 @@
</enable>
<binding>
<command>dialog-apply</command>
<object-name>metar-string</object-name>
<object-name>metar-string-input</object-name>
</binding>
</textbox>
</group>
@ -739,7 +740,7 @@
<equal>true</equal>
<binding>
<command>dialog-apply</command>
<object-name>metar-string</object-name>
<object-name>metar-string-input</object-name>
</binding>
<binding>
<command>nasal</command>
@ -757,7 +758,7 @@
<equal>true</equal>
<binding>
<command>dialog-apply</command>
<object-name>metar-string</object-name>
<object-name>metar-string-input</object-name>
</binding>
<binding>
<command>nasal</command>