This commit is contained in:
parent
48768ee9d2
commit
43c77895b1
1 changed files with 8 additions and 7 deletions
|
@ -107,7 +107,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
setprop( me.base ~ "/metar-string", normalize_string(getprop("environment/metar/data")) );
|
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
|
# fill the METAR source combo box
|
||||||
var combo = gui.findElementByName( me.dlgRoot, "source-selection" );
|
var combo = gui.findElementByName( me.dlgRoot, "source-selection" );
|
||||||
|
@ -153,6 +153,7 @@
|
||||||
setprop( "/environment/realwx/enabled", 0 );
|
setprop( "/environment/realwx/enabled", 0 );
|
||||||
setprop( "/environment/config/enabled", 1 );
|
setprop( "/environment/config/enabled", 1 );
|
||||||
metar = getprop( me.base ~ "/metar-string" );
|
metar = getprop( me.base ~ "/metar-string" );
|
||||||
|
setprop("/environment/weather-scenario", scenarioName);
|
||||||
} else {
|
} else {
|
||||||
setprop( "/environment/params/metar-updates-environment", 1 );
|
setprop( "/environment/params/metar-updates-environment", 1 );
|
||||||
setprop( "/environment/realwx/enabled", 0 );
|
setprop( "/environment/realwx/enabled", 0 );
|
||||||
|
@ -624,7 +625,7 @@
|
||||||
</binding>
|
</binding>
|
||||||
<binding>
|
<binding>
|
||||||
<command>dialog-update</command>
|
<command>dialog-update</command>
|
||||||
<object-name>metar-string</object-name>
|
<object-name>metar-string-input</object-name>
|
||||||
</binding>
|
</binding>
|
||||||
</combo>
|
</combo>
|
||||||
</group>
|
</group>
|
||||||
|
@ -657,7 +658,7 @@
|
||||||
<group>
|
<group>
|
||||||
<layout>hbox</layout>
|
<layout>hbox</layout>
|
||||||
<textbox>
|
<textbox>
|
||||||
<name>metar-string</name>
|
<name>metar-string-input</name>
|
||||||
<halign>fill</halign>
|
<halign>fill</halign>
|
||||||
<stretch>true</stretch>
|
<stretch>true</stretch>
|
||||||
<!--
|
<!--
|
||||||
|
@ -667,7 +668,7 @@
|
||||||
<slider>15</slider>
|
<slider>15</slider>
|
||||||
<editable>true</editable>
|
<editable>true</editable>
|
||||||
<wrap>true</wrap>
|
<wrap>true</wrap>
|
||||||
<live>true</live>
|
<!-- <live>true</live> -->
|
||||||
<top-line>0</top-line>
|
<top-line>0</top-line>
|
||||||
<property>sim/gui/dialogs/metar/metar-string</property>
|
<property>sim/gui/dialogs/metar/metar-string</property>
|
||||||
<enable>
|
<enable>
|
||||||
|
@ -684,7 +685,7 @@
|
||||||
</enable>
|
</enable>
|
||||||
<binding>
|
<binding>
|
||||||
<command>dialog-apply</command>
|
<command>dialog-apply</command>
|
||||||
<object-name>metar-string</object-name>
|
<object-name>metar-string-input</object-name>
|
||||||
</binding>
|
</binding>
|
||||||
</textbox>
|
</textbox>
|
||||||
</group>
|
</group>
|
||||||
|
@ -739,7 +740,7 @@
|
||||||
<equal>true</equal>
|
<equal>true</equal>
|
||||||
<binding>
|
<binding>
|
||||||
<command>dialog-apply</command>
|
<command>dialog-apply</command>
|
||||||
<object-name>metar-string</object-name>
|
<object-name>metar-string-input</object-name>
|
||||||
</binding>
|
</binding>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
|
@ -757,7 +758,7 @@
|
||||||
<equal>true</equal>
|
<equal>true</equal>
|
||||||
<binding>
|
<binding>
|
||||||
<command>dialog-apply</command>
|
<command>dialog-apply</command>
|
||||||
<object-name>metar-string</object-name>
|
<object-name>metar-string-input</object-name>
|
||||||
</binding>
|
</binding>
|
||||||
<binding>
|
<binding>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
|
|
Loading…
Reference in a new issue