Andrew Midson:
I have made the 'Select Airport from List' option in FlightGear work (I think) properly. I have some concerns about the solution, which could be broken by changes to plib (if they re-use the value I have assigned to PUCLASS_LIST), but for the moment it seems to work OK. Erik Hofman: A request has been sent to John Fay to include the puList code in the puAux subdirectory of plib so expect some changes for future version of FlightGear.
This commit is contained in:
parent
09be8cb579
commit
54aef2464c
1 changed files with 15 additions and 13 deletions
|
@ -25,25 +25,27 @@
|
|||
<equal>true</equal>
|
||||
<default>true</default>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/sim/presets/longitude-deg</property>
|
||||
<value type="double">-9999</value>
|
||||
<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);
|
||||
setprop("/sim/presets/runway", "");
|
||||
</script>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/sim/presets/latitude-deg</property>
|
||||
<value type="double">-9999</value>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/sim/presets/altitude-ft</property>
|
||||
<value type="double">-9999</value>
|
||||
<command>presets-commit</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>presets-commit</command>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
</button>
|
||||
|
||||
|
|
Loading…
Reference in a new issue