diff --git a/gui/dialogs/location-on-ground.xml b/gui/dialogs/location-on-ground.xml
index e5e7294f0..6255aa66f 100644
--- a/gui/dialogs/location-on-ground.xml
+++ b/gui/dialogs/location-on-ground.xml
@@ -63,24 +63,33 @@
}
var runways = dlg.getNode("available-runways", 1);
-
- var updateRunways = func {
+ var parking = dlg.getNode("available-parking", 1);
+
+ var updateAirport = func {
var icao = dlg.getNode("airport").getValue();
runways.removeChildren("value");
-
+ parking.removeChildren("value");
+
var apt = airportinfo(icao);
- if (apt != nil) {
- var i=0;
- foreach (var rwy; keys(apt.runways)) {
- runways.getNode("value[" ~ i ~ "]", 1).setValue(rwy);
- i += 1;
- }
+ if (apt == nil) {
+ return;
+ }
+
+ var i=0;
+ foreach (var rwy; keys(apt.runways)) {
+ runways.getNode("value[" ~ i ~ "]", 1).setValue(rwy);
+ i += 1;
}
+ foreach (var park; apt.parking()) {
+ parking.getNode("value[" ~ i ~ "]", 1).setValue(park);
+ i += 1;
+ }
+
gui.dialog_update("location-on-ground");
}
- updateRunways();
+ updateAirport();
@@ -103,7 +112,9 @@
nasal
-
+
@@ -187,14 +198,22 @@
/sim/gui/dialogs/location-on-ground/use_parkpos
-
-
+
+
+ parking
3
2
+ 85
/sim/gui/dialogs/location-on-ground/use_parkpos
/sim/gui/dialogs/location-on-ground/parkpos
-
+ false
+ sim/gui/dialogs/location-on-ground/available-parking
+
+ dialog-apply
+ parking
+
+