Update the set aircraft location dialog box.
Make a new set location (on ground) dialog box which knows how to set up the /sim/presets/ properties correctly for a new ground position. For now leave the previous all-in-one dialog box for in-air resets. However this really needs some more work to make sure the /sim/presets properties get set correctly.
This commit is contained in:
parent
5ed2c89605
commit
9f82101c7c
3 changed files with 27 additions and 45 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
|
|
||||||
<PropertyList>
|
<PropertyList>
|
||||||
<name>location</name>
|
<name>location-in-air</name>
|
||||||
<width>400</width>
|
<width>400</width>
|
||||||
<height>400</height>
|
<height>400</height>
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
|
|
||||||
<PropertyList>
|
<PropertyList>
|
||||||
<name>presets</name>
|
<name>location-on-ground</name>
|
||||||
<width>400</width>
|
<width>400</width>
|
||||||
<height>300</height>
|
<height>400</height>
|
||||||
|
|
||||||
<text>
|
<text>
|
||||||
<x>10</x>
|
<x>10</x>
|
||||||
<y>270</y>
|
<y>360</y>
|
||||||
<label>Set New Position</label>
|
<label>Set New Location</label>
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
<input>
|
<input>
|
||||||
<x>10</x>
|
<x>10</x>
|
||||||
<y>210</y>
|
<y>300</y>
|
||||||
<width>200</width>
|
<width>200</width>
|
||||||
<height>25</height>
|
<height>25</height>
|
||||||
<label>Airport</label>
|
<label>Airport</label>
|
||||||
|
@ -22,49 +22,13 @@
|
||||||
|
|
||||||
<input>
|
<input>
|
||||||
<x>10</x>
|
<x>10</x>
|
||||||
<y>180</y>
|
<y>270</y>
|
||||||
<width>200</width>
|
<width>200</width>
|
||||||
<height>25</height>
|
<height>25</height>
|
||||||
<label>Runway</label>
|
<label>Runway</label>
|
||||||
<property>/sim/presets/runway</property>
|
<property>/sim/presets/runway</property>
|
||||||
</input>
|
</input>
|
||||||
|
|
||||||
<input>
|
|
||||||
<x>10</x>
|
|
||||||
<y>150</y>
|
|
||||||
<width>200</width>
|
|
||||||
<height>25</height>
|
|
||||||
<label>Distance (mi)</label>
|
|
||||||
<property>/sim/presets/offset-distance</property>
|
|
||||||
</input>
|
|
||||||
|
|
||||||
<input>
|
|
||||||
<x>10</x>
|
|
||||||
<y>120</y>
|
|
||||||
<width>200</width>
|
|
||||||
<height>25</height>
|
|
||||||
<label>Altitude (ft)</label>
|
|
||||||
<property>/sim/presets/altitude-ft</property>
|
|
||||||
</input>
|
|
||||||
|
|
||||||
<input>
|
|
||||||
<x>10</x>
|
|
||||||
<y>90</y>
|
|
||||||
<width>200</width>
|
|
||||||
<height>25</height>
|
|
||||||
<label>Glidepath (deg)</label>
|
|
||||||
<property>/sim/presets/glidescope-deg</property>
|
|
||||||
</input>
|
|
||||||
|
|
||||||
<input>
|
|
||||||
<x>10</x>
|
|
||||||
<y>60</y>
|
|
||||||
<width>200</width>
|
|
||||||
<height>25</height>
|
|
||||||
<label>Airspeed (kt)</label>
|
|
||||||
<property>/sim/presets/airspeed-kt</property>
|
|
||||||
</input>
|
|
||||||
|
|
||||||
<!-- Button Box -->
|
<!-- Button Box -->
|
||||||
<group>
|
<group>
|
||||||
<x>10</x>
|
<x>10</x>
|
||||||
|
@ -84,6 +48,11 @@
|
||||||
<property>/sim/presets/latitude-deg</property>
|
<property>/sim/presets/latitude-deg</property>
|
||||||
<value type="double">-9999</value>
|
<value type="double">-9999</value>
|
||||||
</binding>
|
</binding>
|
||||||
|
<binding>
|
||||||
|
<command>property-assign</command>
|
||||||
|
<property>/sim/presets/altitude-ft</property>
|
||||||
|
<value type="double">-9999</value>
|
||||||
|
</binding>
|
||||||
<binding>
|
<binding>
|
||||||
<command>dialog-apply</command>
|
<command>dialog-apply</command>
|
||||||
</binding>
|
</binding>
|
||||||
|
@ -110,6 +79,11 @@
|
||||||
<property>/sim/presets/latitude-deg</property>
|
<property>/sim/presets/latitude-deg</property>
|
||||||
<value type="double">-9999</value>
|
<value type="double">-9999</value>
|
||||||
</binding>
|
</binding>
|
||||||
|
<binding>
|
||||||
|
<command>property-assign</command>
|
||||||
|
<property>/sim/presets/altitude-ft</property>
|
||||||
|
<value type="double">-9999</value>
|
||||||
|
</binding>
|
||||||
<binding>
|
<binding>
|
||||||
<command>dialog-apply</command>
|
<command>dialog-apply</command>
|
||||||
</binding>
|
</binding>
|
|
@ -135,10 +135,18 @@
|
||||||
<label>Location</label>
|
<label>Location</label>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<label>Aircraft Location</label>
|
<label>Position Aircraft (on ground)</label>
|
||||||
<binding>
|
<binding>
|
||||||
<command>dialog-show</command>
|
<command>dialog-show</command>
|
||||||
<dialog-name>location</dialog-name>
|
<dialog-name>location-on-ground</dialog-name>
|
||||||
|
</binding>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<label>Position Aircraft (in air)</label>
|
||||||
|
<binding>
|
||||||
|
<command>dialog-show</command>
|
||||||
|
<dialog-name>location-in-air</dialog-name>
|
||||||
</binding>
|
</binding>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue