airports vbox true hbox 1 1 var id = ""; var node = props.globals.getNode("/sim/gui/dialogs/airports", 1); if (node.getNode("list") == nil) node.getNode("list", 1).setValue(""); node = node.getNode("list"); var listbox = func { id = pop(split(" ", node.getValue())); id = substr(id, 1, size(id) - 2); # strip parentheses } var apply = func { setprop("/sim/presets/airport-id", id); setprop("/sim/presets/longitude-deg", -9999); setprop("/sim/presets/latitude-deg", -9999); setprop("/sim/presets/altitude-ft", -9999); setprop("/sim/presets/airspeed-kt", 0); setprop("/sim/presets/offset-distance-nm", 0); setprop("/sim/presets/offset-azimuth-deg", 0); setprop("/sim/presets/glideslope-deg", 0); setprop("/sim/presets/heading-deg", 0); setprop("/sim/presets/runway", ""); setprop("/sim/presets/parkpos", ""); } airport-list 440 360 fill fill true /sim/gui/dialogs/airports/list dialog-apply airport-list nasal hbox 4 60 input 280 fill true /sim/gui/dialogs/airports/list dialog-apply input dialog-update airport-list hbox 10 true true true