empty input fields. (You usually call that dialog to enter a new airport.
Use "reset"/Shift-Esc to go to the start airport again.)
This commit is contained in:
parent
0aad05f9a8
commit
cb2f06992f
1 changed files with 35 additions and 20 deletions
|
@ -1,4 +1,5 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<PropertyList>
|
||||
<name>location-on-ground</name>
|
||||
<layout>vbox</layout>
|
||||
|
@ -7,6 +8,18 @@
|
|||
<label>Set New Location</label>
|
||||
</text>
|
||||
|
||||
<hrule><empty/></hrule>
|
||||
|
||||
<nasal>
|
||||
<open>
|
||||
dlg = props.globals.getNode("/sim/gui/dialogs/location-on-ground", 1);
|
||||
apt = dlg.getNode("airport", 1);
|
||||
apt.setValue("");
|
||||
rwy = dlg.getNode("runway", 1);
|
||||
rwy.setValue("");
|
||||
</open>
|
||||
</nasal>
|
||||
|
||||
<group>
|
||||
<layout>table</layout>
|
||||
<halign>center</halign>
|
||||
|
@ -16,7 +29,7 @@
|
|||
</text>
|
||||
<input>
|
||||
<row>0</row><col>1</col>
|
||||
<property>/sim/presets/airport-id</property>
|
||||
<property>/sim/gui/dialogs/location-on-ground/airport</property>
|
||||
</input>
|
||||
<text>
|
||||
<row>1</row><col>0</col>
|
||||
|
@ -24,7 +37,7 @@
|
|||
</text>
|
||||
<input>
|
||||
<row>1</row><col>1</col>
|
||||
<property>/sim/presets/runway</property>
|
||||
<property>/sim/gui/dialogs/location-on-ground/runway</property>
|
||||
</input>
|
||||
</group>
|
||||
|
||||
|
@ -37,9 +50,14 @@
|
|||
<legend>OK</legend>
|
||||
<default>true</default>
|
||||
<equal>true</equal>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
setprop("/sim/presets/airport-id", apt.getValue());
|
||||
setprop("/sim/presets/runway", rwy.getValue());
|
||||
setprop("/sim/presets/longitude-deg", -9999);
|
||||
setprop("/sim/presets/latitude-deg", -9999);
|
||||
setprop("/sim/presets/altitude-ft", -9999);
|
||||
|
@ -50,9 +68,6 @@
|
|||
setprop("/sim/presets/heading-deg", 0);
|
||||
</script>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>presets-commit</command>
|
||||
</binding>
|
||||
|
|
Loading…
Add table
Reference in a new issue