diff --git a/gui/dialogs/location-on-ground.xml b/gui/dialogs/location-on-ground.xml
index 45c836314..6ef505ca0 100644
--- a/gui/dialogs/location-on-ground.xml
+++ b/gui/dialogs/location-on-ground.xml
@@ -32,15 +32,16 @@
var dlg = props.globals.getNode("/sim/gui/dialogs/location-on-ground", 1);
var apt = dlg.getNode("airport", 1);
- apt.setValue("");
+ apt.setValue(getprop("/sim/presets/airport-id"));
var rwy = dlg.getNode("runway", 1);
rwy.setValue("");
var parkpos = dlg.getNode("parkpos", 1);
parkpos.setValue("");
var mode = {
- runway: dlg.getNode("use_runway", 1),
- parkpos: dlg.getNode("use_parkpos", 1)
+ runway: dlg.getNode("use_runway", 1),
+ bestrunway: dlg.getNode("use_best_runway", 1),
+ parkpos: dlg.getNode("use_parkpos", 1)
};
var set_radio = func(m) {
@@ -78,6 +79,8 @@
gui.dialog_update("location-on-ground");
}
+
+ updateRunways();
@@ -106,6 +109,33 @@
1
0
+ /sim/gui/dialogs/location-on-ground/use_best_runway
+ true
+
+ nasal
+
+
+
+
+
+ 1
1
+ right
+
+
+ /sim/gui/dialogs/location-on-ground/use_best_runway
+
+
+
+ 1
2
+ right
+
+
+ /sim/gui/dialogs/location-on-ground/use_best_runway
+
+
+
+
+ 2
0
/sim/gui/dialogs/location-on-ground/use_runway
true
@@ -115,14 +145,17 @@
- 1
1
+ 2
1
right
+
+ /sim/gui/dialogs/location-on-ground/use_runway
+
-
+
runway
- 1
2
+ 2
2
85
/sim/gui/dialogs/location-on-ground/use_runway
@@ -137,7 +170,7 @@
- 2
0
+ 3
0
/sim/gui/dialogs/location-on-ground/use_parkpos
true
@@ -147,13 +180,16 @@
- 2
1
+ 3
1
right
+
+ /sim/gui/dialogs/location-on-ground/use_parkpos
+
- 2
2
+ 3
2
/sim/gui/dialogs/location-on-ground/use_parkpos
@@ -179,7 +215,10 @@
nasal