diff --git a/gui/dialogs/atc-freq-display.xml b/gui/dialogs/atc-freq-display.xml index e4f7fdf6d..09cbce77b 100644 --- a/gui/dialogs/atc-freq-display.xml +++ b/gui/dialogs/atc-freq-display.xml @@ -1,5 +1,33 @@ + + + + + atc-freq-display vbox diff --git a/gui/dialogs/atc-freq-search.xml b/gui/dialogs/atc-freq-search.xml index 3b64f0a6c..9645dc6b4 100644 --- a/gui/dialogs/atc-freq-search.xml +++ b/gui/dialogs/atc-freq-search.xml @@ -1,12 +1,37 @@ + + + 0) { + forindex (var i; apts) { + var target = self.getNode("group").getChild("button", i, 1); + props.copy(textgroup, target); + target.getNode("legend").setValue(apts[i].id); + target.getNode("binding/value").setValue(apts[i].id); + target.getNode("enabled").setValue(1); + } + props.dump(target); + } else { + self.getNode("text/enabled").setValue(1); + } + ]]> + + atc-freq-search vbox - + - @@ -17,8 +42,13 @@ false ICAO - ATC-freq-display - ICAO + property-assign + /sim/atc/freq-airport + ICAO + + + dialog-show + atc-freq-display dialog-close @@ -53,14 +83,20 @@ true - true - diff --git a/gui/menubar.xml b/gui/menubar.xml index ffce2c1b5..e3f4b8304 100644 --- a/gui/menubar.xml +++ b/gui/menubar.xml @@ -592,7 +592,8 @@ atc-in-range - ATC-freq-search + dialog-show + atc-freq-search