From 9f82101c7cb914cbdf2fc793b8b62f461e09257e Mon Sep 17 00:00:00 2001 From: curt Date: Sun, 7 Dec 2003 06:08:19 +0000 Subject: [PATCH] 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. --- .../{location.xml => location-in-air.xml} | 2 +- .../{presets.xml => location-on-ground.xml} | 58 +++++-------------- gui/menubar.xml | 12 +++- 3 files changed, 27 insertions(+), 45 deletions(-) rename gui/dialogs/{location.xml => location-in-air.xml} (99%) rename gui/dialogs/{presets.xml => location-on-ground.xml} (70%) diff --git a/gui/dialogs/location.xml b/gui/dialogs/location-in-air.xml similarity index 99% rename from gui/dialogs/location.xml rename to gui/dialogs/location-in-air.xml index 63e5a2b20..357005ba3 100644 --- a/gui/dialogs/location.xml +++ b/gui/dialogs/location-in-air.xml @@ -1,7 +1,7 @@ - location + location-in-air 400 400 diff --git a/gui/dialogs/presets.xml b/gui/dialogs/location-on-ground.xml similarity index 70% rename from gui/dialogs/presets.xml rename to gui/dialogs/location-on-ground.xml index 5dc8d94c8..47301e825 100644 --- a/gui/dialogs/presets.xml +++ b/gui/dialogs/location-on-ground.xml @@ -1,19 +1,19 @@ - presets + location-on-ground 400 - 300 + 400 10 - 270 - + 360 + 10 - 210 + 300 200 25 @@ -22,49 +22,13 @@ 10 - 180 + 270 200 25 /sim/presets/runway - - 10 - 150 - 200 - 25 - - /sim/presets/offset-distance - - - - 10 - 120 - 200 - 25 - - /sim/presets/altitude-ft - - - - 10 - 90 - 200 - 25 - - /sim/presets/glidescope-deg - - - - 10 - 60 - 200 - 25 - - /sim/presets/airspeed-kt - - 10 @@ -84,6 +48,11 @@ /sim/presets/latitude-deg -9999 + + property-assign + /sim/presets/altitude-ft + -9999 + dialog-apply @@ -110,6 +79,11 @@ /sim/presets/latitude-deg -9999 + + property-assign + /sim/presets/altitude-ft + -9999 + dialog-apply diff --git a/gui/menubar.xml b/gui/menubar.xml index 35b70e7d9..8c021b086 100644 --- a/gui/menubar.xml +++ b/gui/menubar.xml @@ -135,10 +135,18 @@ - + dialog-show - location + location-on-ground + + + + + + + dialog-show + location-in-air