1
0
Fork 0
fgdata/gui/dialogs/location-on-ground.xml

77 lines
1.7 KiB
XML

<?xml version="1.0"?>
<PropertyList>
<name>location-on-ground</name>
<layout>vbox</layout>
<text>
<label>Set New Location</label>
</text>
<group>
<layout>table</layout>
<halign>center</halign>
<text>
<row>0</row><col>0</col>
<label>Airport:</label>
</text>
<input>
<row>0</row><col>1</col>
<property>/sim/presets/airport-id</property>
</input>
<text>
<row>1</row><col>0</col>
<label>Runway:</label>
</text>
<input>
<row>1</row><col>1</col>
<property>/sim/presets/runway</property>
</input>
</group>
<group>
<layout>hbox</layout>
<default-padding>10</default-padding>
<empty><stretch>true</stretch></empty>
<button>
<legend>OK</legend>
<default>true</default>
<equal>true</equal>
<binding>
<command>nasal</command>
<script>
setprop("/sim/presets/longitude-deg", -9999);
setprop("/sim/presets/latitude-deg", -9999);
setprop("/sim/presets/altitude-ft", -9999);
setprop("/sim/presets/airspeed-kt", 0);
setprop("/sim/presets/offset-distance", 0);
setprop("/sim/presets/offset-azimuth", 0);
setprop("/sim/presets/glideslope-deg", 0);
setprop("/sim/presets/heading-deg", 0);
</script>
</binding>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>presets-commit</command>
</binding>
<binding>
<command>dialog-close</command>
</binding>
</button>
<empty><stretch>true</stretch></empty>
<button>
<legend>Cancel</legend>
<equal>true</equal>
<key>Esc</key>
<binding>
<command>dialog-close</command>
</binding>
</button>
<empty><stretch>true</stretch></empty>
</group>
</PropertyList>