From baa33f40b3b806abdd31f2567e379b474545994c Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 14 Jan 2019 12:16:22 +0000 Subject: [PATCH] Airport-list: allow filtering by type for helipads Patch by Daniel Wickstrom, requires a corresponding FLightGear change to extend the special search function used by this dialog to add support for a type-prefix. --- gui/dialogs/airports.xml | 51 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 46 insertions(+), 5 deletions(-) diff --git a/gui/dialogs/airports.xml b/gui/dialogs/airports.xml index 26fa2f308..4231206c6 100644 --- a/gui/dialogs/airports.xml +++ b/gui/dialogs/airports.xml @@ -70,6 +70,10 @@ setprop("/sim/gui/dialogs/airports/display-tower", "1"); } + if (getprop("/sim/gui/dialogs/airports/show-helipads") == "") { + setprop("/sim/gui/dialogs/airports/show-helipads", "1"); + } + # Start with the closest airport var airport_id = airportinfo().id; @@ -288,10 +292,6 @@ dialog-apply input - - dialog-update - airport-list -