From ed068bef821b79f5c8fc9e82b5d13d2f541177a2 Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Tue, 7 Aug 2012 21:27:29 +0100 Subject: [PATCH] Unification of Weather UI. --- Environment/environment.xml | 10 +- gui/dialogs/local_weather_tiles.xml | 1188 +++++++------ gui/dialogs/weather.xml | 2408 +++++---------------------- gui/menubar.xml | 12 +- 4 files changed, 1042 insertions(+), 2576 deletions(-) diff --git a/Environment/environment.xml b/Environment/environment.xml index dd6a4a33d..6e3a8c38b 100644 --- a/Environment/environment.xml +++ b/Environment/environment.xml @@ -17,25 +17,24 @@ --> - - Disabled - METAR weather generation is disabled. Use the above controls to setup your weather. - Live data Fetch live weather data for your nearest airport from noaa.gov. You need a working internet connection. All the controls in this dialog are computed automatically, once a valid METAR is received. + live Manual input - Enter your favorite METAR weather in the textbox below. A valid METAR syntax is required. + Enter your favorite METAR weather in the textbox above. A valid METAR syntax is required. + manual Fair weather XXXX 012345Z 15003KT 12SM SCT041 FEW200 20/08 Q1015 NOSIG A lovely day for trip to your favorite 100$ hamburger airfield + High-pressure-core Thunderstorm @@ -45,6 +44,7 @@ Be prepared for reduction of visibility in showers and strong gusts near thunderstorms + Thunderstorms Stormy Monday diff --git a/gui/dialogs/local_weather_tiles.xml b/gui/dialogs/local_weather_tiles.xml index a9c5bc0ef..2db727b86 100644 --- a/gui/dialogs/local_weather_tiles.xml +++ b/gui/dialogs/local_weather_tiles.xml @@ -1,636 +1,598 @@ + local-weather + false + false + vbox + 3 - + + + hbox + 1 - local_weather_tiles - 470 - 410 - false + + true + + + + - - 5 - 380 - - + + true + + + - - 10 - 355 - 280 - 25 - true - /local-weather/tmp/tile-type - High-pressure-core - High-pressure - High-pressure-border - Low-pressure-border - Low-pressure - Low-pressure-core - Cold-sector - Warm-sector - Coldfront - Warmfront - Tropical - Thunderstorms - Test tile - - dialog-apply - - - + + + vbox + + + left + + + + + table + + + 0 + 0 + right + + - - 300 - 355 - - + + 0 + 1 + left + 150 + true + /local-weather/tmp/tile-management + single tile + repeat tile + realistic weather + METAR + + dialog-apply + + + + + + 1 + 0 + right + + + + 1 + 1 + left + /local-weather/tmp/tile-alt-offset-ft + + + + 2 + 0 + right + + - - 390 - 355 - 50 - 25 - /local-weather/tmp/tile-alt-offset-ft - + + 2 + 1 + left + /local-weather/config/temperature-offset-degc + + + 3 + 0 + left + + /local-weather/config/debug-output-flag + + dialog-apply + + - - 5 - 320 - - + + 3 + 1 + left + + /local-weather/config/detailed-terrain-interaction-flag + + dialog-apply + + - - 67 - 320 - 40 - 25 - /local-weather/tmp/tile-orientation-deg - + + 3 + 2 + left + + /local-weather/config/realistic-visibility-flag + + dialog-apply + + - - 105 - 320 - - + + 4 + 1 + left + + /local-weather/config/presampling-flag + + dialog-apply + + + + + + + + left + + + + + vbox + + + hbox + + + true + - - 125 - 320 - 30 - 25 - /local-weather/tmp/windspeed-kt - + + + - + + 50 + /local-weather/tmp/tile-orientation-deg + + + + + + + + 30 + /local-weather/tmp/windspeed-kt + + + + + + + + + true + + + + + + table + + + 0 + 0 + right + + + + + 0 + 1 + fill + 0.0 + 2.0 + /local-weather/tmp/gust-frequency-hz + + dialog-apply + + + + + 0 + 2 + + left + %.1f + /local-weather/tmp/gust-frequency-hz + true + + + + 1 + 0 + right + + + + + 1 + 1 + fill + 0.0 + 1.5 + /local-weather/tmp/gust-relative-strength + + dialog-apply + + + + + 1 + 2 + left + + %.1f + /local-weather/tmp/gust-relative-strength + true + + + + 2 + 0 + right + + + + + 2 + 1 + fill + 0.0 + 45.0 + /local-weather/tmp/gust-angular-variation-deg + + dialog-apply + + + + + 2 + 2 + left + + %.1f + /local-weather/tmp/gust-angular-variation-deg + true + + + + 3 + 0 + right + + + + + 3 + 1 + fill + true + /local-weather/config/wind-model + constant + constant in tile + aloft interpolated + aloft waypoints + + + dialog-apply + + + + + + + + + left + + + + + table + + + 0 + 0 + left + + /local-weather/config/generate-thermal-lift-flag + + dialog-apply + + + + + 0 + 1 + right + + /local-weather/config/generate-thermal-lift-flag + + + + + + 0 + 2 + 0.3 + 1.5 + /local-weather/config/thermal-properties + + /local-weather/config/generate-thermal-lift-flag + + + dialog-apply + + + + + 0 + 3 + left + + /local-weather/config/generate-thermal-lift-flag + + + + + + 1 + 0 + right + + + + + 1 + 1 + + + + + 1 + 2 + 0.1 + 1.0 + /local-weather/config/ground-haze-factor + + dialog-apply + + + + + 1 + 3 + left + + + + + 2 + 0 + right + + + + + 2 + 1 + right + + + + + 2 + 2 + 0.0 + 1.0 + /environment/air-pollution-norm + + dialog-apply + + + + + 2 + 3 + left + + + + + 3 + 0 + right + + + + + 3 + 1 + right + + + + + 3 + 2 + 9.90348 + 12.429216196 + /local-weather/config/aux-max-vis-range-m + + dialog-apply + + + + + 3 + 3 + left + + + + + 3 + 4 + left + + %.fm + true + /local-weather/config/max-vis-range-m + + + + + + + vbox + + + left + + + + + table + center + + + 0 + 1 + left + + + + + 0 + 2 + right + + + + + 1 + 0 + right + + + + + 1 + 1 + 2 + fill + 0.5 + 2.0 + /local-weather/config/large-scale-persistence + + dialog-apply + + + + + 2 + 0 + right + + + + + 2 + 1 + 2 + fill + 0.0 + 1.0 + /local-weather/config/small-scale-persistence + + dialog-apply + + + + + - - 157 - 320 - - - - - - - 225 - 320 - 50 - 20 - 0.0 - 2.0 - /local-weather/tmp/gust-frequency-hz - - dialog-apply - - - - - - - 275 - 320 - - - - - - 333 - 320 - 50 - 20 - 0.0 - 1.5 - /local-weather/tmp/gust-relative-strength - - dialog-apply - - - - - 380 - 320 - - - - - - 410 - 320 - 50 - 20 - 0.0 - 45.0 - /local-weather/tmp/gust-angular-variation-deg - - dialog-apply - - - - - - - - 5 - 290 - - - - - - 150 - 290 - 140 - 25 - true - /local-weather/config/wind-model - constant - constant in tile - aloft interpolated - aloft waypoints - - - dialog-apply - - - - - - 300 - 290 - - - - - - - 390 - 290 - 50 - 25 - /local-weather/config/temperature-offset-degc - - - - - 5 - 260 - - - - - 150 - 260 - 140 - 25 - true - /local-weather/tmp/tile-management - single tile - repeat tile - realistic weather - METAR - - dialog-apply - - - - - - 10 - 230 - 15 - 15 - - /local-weather/config/debug-output-flag - - dialog-apply - - - - - - - - - - - 150 - 230 - 15 - 15 - - /local-weather/config/detailed-terrain-interaction-flag - - dialog-apply - - - - - 290 - 230 - 15 - 15 - - /local-weather/config/realistic-visibility-flag - - dialog-apply - - - - - 10 - 205 - 15 - 15 - - /local-weather/config/generate-thermal-lift-flag - - dialog-apply - - - - - 150 - 205 - 15 - 15 - - /local-weather/config/presampling-flag - - dialog-apply - - - - - - 5 - 175 - - - - - 160 - 175 - - - - - 230 - 175 - 90 - 20 - 0.3 - 1.5 - /local-weather/config/thermal-properties - - dialog-apply - - - - - 330 - 175 - - - - - - 5 - 150 - - - - - 160 - 150 - - - - - 230 - 150 - 90 - 20 - 0.1 - 1.0 - /local-weather/config/ground-haze-factor - - dialog-apply - - - - - 330 - 150 - - - - - 5 - 125 - - - - - 160 - 125 - - - - - 230 - 125 - 90 - 20 - 0.0 - 1.0 - /environment/air-pollution-norm - - dialog-apply - - - - - 330 - 125 - - - - - - 5 - 100 - - - - - 160 - 100 - - - - - 230 - 100 - 90 - 20 - 9.90348 - 12.429216196 - /local-weather/config/aux-max-vis-range-m - - dialog-apply - - - - - 330 - 100 - - - - - - 380 - 100 - - %.fm - true - /local-weather/config/max-vis-range-m - - - - - 5 - 75 - - - - - - 15 - 45 - - - - - 78 - 60 - - - - - 60 - 45 - 100 - 20 - 0.5 - 2.0 - /local-weather/config/large-scale-persistence - - dialog-apply - - - - - 165 - 45 - - - - - - 205 - 45 - - - - - 257 - 60 - - - - - 250 - 45 - 100 - 20 - 0.0 - 1.0 - /local-weather/config/small-scale-persistence - - dialog-apply - - - - - 355 - 45 - - - - - - 10 - 10 - - - - - - - - - - - - - - - + + + + hbox + + + true + + + + + + + + + + + + true + + diff --git a/gui/dialogs/weather.xml b/gui/dialogs/weather.xml index 81155653f..1af7bb11a 100644 --- a/gui/dialogs/weather.xml +++ b/gui/dialogs/weather.xml @@ -1,6 +1,245 @@ + + + + + weather @@ -19,7 +258,7 @@ - + @@ -41,1754 +280,185 @@ - hbox - 0 - - + vbox + + + left + + + - vbox + hbox + true - vbox - 1 - - - - hbox - - - - /sim/gui/dialogs/weather-scenario/state - - - - true - - - - - hbox - - table - - - - 0 - 1 - - /sim/gui/dialogs/weather-scenario/state - - - - - - 0 - 2 - 80 - - /sim/gui/dialogs/weather-scenario/state - - - - - - 0 - 3 - - /sim/gui/dialogs/weather-scenario/state - - - - - - - - 1 - 1 - true - /environment/clouds/layer[4]/elevation-ft - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 1 - 2 - 100 - true - /environment/clouds/layer[4]/coverage - clear - few - scattered - broken - overcast - cirrus - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 1 - 3 - true - /environment/clouds/layer[4]/thickness-ft - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - - - - 2 - 1 - true - /environment/clouds/layer[3]/elevation-ft - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 2 - 2 - 100 - true - /environment/clouds/layer[3]/coverage - clear - few - scattered - broken - overcast - cirrus - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 2 - 3 - true - /environment/clouds/layer[3]/thickness-ft - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - - - - 3 - 1 - true - /environment/clouds/layer[2]/elevation-ft - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 3 - 2 - 100 - true - /environment/clouds/layer[2]/coverage - clear - few - scattered - broken - overcast - cirrus - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 3 - 3 - true - /environment/clouds/layer[2]/thickness-ft - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - - - - 4 - 1 - true - /environment/clouds/layer[1]/elevation-ft - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 4 - 2 - 100 - true - /environment/clouds/layer[1]/coverage - clear - few - scattered - broken - overcast - cirrus - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 4 - 3 - true - /environment/clouds/layer[1]/thickness-ft - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - - - - 5 - 1 - true - /environment/clouds/layer[0]/elevation-ft - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 5 - 2 - 100 - true - false - /environment/clouds/layer[0]/coverage - clear - few - scattered - broken - overcast - cirrus - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 5 - 3 - true - /environment/clouds/layer[0]/thickness-ft - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - - true - - - - - - - - vbox - 1 - - - hbox - - - - /sim/gui/dialogs/weather-scenario/state - - - - true - - - - - vbox + table + + 0 + 0 + left + simple-weather + sim/gui/dialogs/metar/mode/global-weather + true + + + property-assign + sim/gui/dialogs/metar/mode/global-weather + 1 + + + property-assign + sim/gui/dialogs/metar/mode/local-weather + 0 + + + property-assign + sim/gui/dialogs/metar/mode/manual-weather + 0 + + + nasal + + + + + + 1 + 0 + left + simple-weather + sim/gui/dialogs/metar/mode/local-weather + true + + + property-assign + sim/gui/dialogs/metar/mode/local-weather + 1 + + + property-assign + sim/gui/dialogs/metar/mode/global-weather + 0 + + + property-assign + sim/gui/dialogs/metar/mode/manual-weather + 0 + + + nasal + + + + + - - 0 - 1 - true - fill - /environment/rain-norm - - dialog-apply - - true - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 1 - 0 - - left - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 1 - 1 - fill - /environment/snow-norm - true - 30 - - dialog-apply - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - - 0 - 3 - - - /sim/gui/dialogs/weather-scenario/state - - - - - pressure-sea-level-inhg - 1 - 3 - 50 - /environment/config/boundary/entry[0]/pressure-sea-level-inhg - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - true - - dialog-apply - pressure-sea-level-inhg - - - - - - 2 - 0 - - - /sim/rendering/shaders/quality-level - - /sim/rendering/shaders/crop - /sim/rendering/shaders/landmass - /sim/rendering/shaders/transition - /sim/rendering/shaders/urban - - - - - - - snow-level - 2 - 1 - - - /sim/rendering/shaders/quality-level - - /sim/rendering/shaders/crop - /sim/rendering/shaders/landmass - /sim/rendering/shaders/transition - /sim/rendering/shaders/urban - - - - -425.0 - 5000.0 - true - /environment/snow-level-m - - dialog-apply - snow-level - - - - - 2 - 2 - - - /sim/rendering/shaders/quality-level - - /sim/rendering/shaders/crop - /sim/rendering/shaders/landmass - /sim/rendering/shaders/transition - /sim/rendering/shaders/urban - - - - - %.fm - true - /environment/snow-level-m - - - - - - true - - - - - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - - - left - - 1.0 - 0.6 - 0.6 - - - - + + 2 + 0 + left + simple-weather + sim/gui/dialogs/metar/mode/manual-weather + true + + + property-assign + sim/gui/dialogs/metar/mode/local-weather + 0 + + + property-assign + sim/gui/dialogs/metar/mode/global-weather + 0 + + + property-assign + sim/gui/dialogs/metar/mode/manual-weather + 1 + + + nasal + + + + + - + - - - - true - - - - - vbox - - - - vbox - 1 - - - hbox - - - - - true - - - - - hbox - - table - - 0 - 0 - - - - - 0 - 1 - 2 - - - - - 0 - 3 - - - - - 0 - 4 - - - - - 0 - 5 - - - - - 0 - 6 - - - - - aloft-4-elevation-ft - 1 - 0 - 52 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[4]/elevation-ft - true - - dialog-apply - aloft-4-elevation-ft - - - - - aloft-4-wind-from-heading-deg - 1 - 1 - 40 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[4]/wind-from-heading-deg - true - - dialog-apply - aloft-4-wind-from-heading-deg - - - - - aloft-4-wind-speed-kt - 1 - 2 - 35 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[4]/wind-speed-kt - true - - dialog-apply - aloft-4-wind-speed-kt - - - - - aloft-4-visibility-m - 1 - 3 - 55 - /environment/config/aloft/entry[4]/visibility-m - true - - dialog-apply - aloft-4-visibility-m - - - - - aloft-4-temperature-degc - 1 - 4 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[4]/temperature-degc - true - - dialog-apply - aloft-4-temperature-degc - - - - - aloft-4-dewpoint-degc - 1 - 5 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[4]/dewpoint-degc - true - - dialog-apply - aloft-4-dewpoint-degc - - - - - aloft-4-turbulence - 1 - 6 - 90 - true - /environment/config/aloft/entry[4]/turbulence-name - none - light - moderate - severe - - dialog-apply - aloft-4-turbulence - - - nasal - - - - - - - aloft-3-elevation-ft - 2 - 0 - 52 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[3]/elevation-ft - true - - dialog-apply - aloft-3-elevation-ft - - - - - aloft-3-wind-from-heading-deg - 2 - 1 - 40 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[3]/wind-from-heading-deg - true - - dialog-apply - aloft-3-wind-from-heading-deg - - - - - aloft-3-wind-speed-kt - 2 - 2 - 35 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[3]/wind-speed-kt - true - - dialog-apply - aloft-3-wind-speed-kt - - - - - aloft-3-visibility-m - 2 - 3 - 55 - /environment/config/aloft/entry[3]/visibility-m - true - - dialog-apply - aloft-3-visibility-m - - - - - aloft-3-temperature-degc - 2 - 4 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[3]/temperature-degc - true - - dialog-apply - aloft-3-temperature-degc - - - - - aloft-3-dewpoint-degc - 2 - 5 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[3]/dewpoint-degc - true - - dialog-apply - aloft-3-dewpoint-degc - - - - - aloft-3-turbulence - 2 - 6 - 90 - true - /environment/config/aloft/entry[3]/turbulence-name - none - light - moderate - severe - - dialog-apply - aloft-3-turbulence - - - nasal - - - - - - - aloft-2-elevation-ft - 3 - 0 - 52 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[2]/elevation-ft - true - - dialog-apply - aloft-2-elevation-ft - - - - - aloft-2-wind-from-heading-deg - 3 - 1 - 40 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[2]/wind-from-heading-deg - true - - dialog-apply - aloft-2-wind-from-heading-deg - - - - - aloft-2-wind-speed-kt - 3 - 2 - 35 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[2]/wind-speed-kt - true - - dialog-apply - aloft-2-wind-speed-kt - - - - - aloft-2-visibility-m - 3 - 3 - 55 - /environment/config/aloft/entry[2]/visibility-m - true - - dialog-apply - aloft-2-visibility-m - - - - - aloft-2-temperature-degc - 3 - 4 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[2]/temperature-degc - true - - dialog-apply - aloft-2-temperature-degc - - - - - aloft-2-dewpoint-degc - 3 - 5 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[2]/dewpoint-degc - true - - dialog-apply - aloft-2-dewpoint-degc - - - - - aloft-2-turbulence - 3 - 6 - 90 - true - /environment/config/aloft/entry[2]/turbulence-name - none - light - moderate - severe - - dialog-apply - aloft-2-turbulence - - - nasal - - - - - - - - aloft-1-elevation-ft - 4 - 0 - 52 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[1]/elevation-ft - true - - dialog-apply - aloft-1-elevation-ft - - - - - aloft-1-wind-from-heading-deg - 4 - 1 - 40 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[1]/wind-from-heading-deg - true - - dialog-apply - aloft-1-wind-from-heading-deg - - - - - aloft-1-wind-speed-kt - 4 - 2 - 35 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[1]/wind-speed-kt - true - - dialog-apply - aloft-1-wind-speed-kt - - - - - aloft-1-visibility-m - 4 - 3 - 55 - /environment/config/aloft/entry[1]/visibility-m - true - - dialog-apply - aloft-1-visibility-m - - - - - aloft-1-temperature-degc - 4 - 4 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[1]/temperature-degc - true - - dialog-apply - aloft-1-temperature-degc - - - - - aloft-1-dewpoint-degc - 4 - 5 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[1]/dewpoint-degc - true - - dialog-apply - aloft-1-dewpoint-degc - - - - - aloft-1-turbulence - 4 - 6 - 90 - true - /environment/config/aloft/entry[1]/turbulence-name - none - light - moderate - severe - - dialog-apply - aloft-1-turbulence - - - nasal - - - - - - - aloft-0-elevation-ft - 5 - 0 - 52 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[0]/elevation-ft - true - - dialog-apply - aloft-0-elevation-ft - - - - - aloft-0-wind-from-heading-deg - 5 - 1 - 40 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[0]/wind-from-heading-deg - true - - dialog-apply - aloft-0-wind-from-heading-deg - - - - - aloft-0-wind-speed-kt - 5 - 2 - 35 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[0]/wind-speed-kt - true - - dialog-apply - aloft-0-wind-speed-kt - - - - - aloft-0-visibility-m - 5 - 3 - 55 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[0]/visibility-m - true - - dialog-apply - aloft-0-visibility-m - - - - - aloft-0-temperature-degc - 5 - 4 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[0]/temperature-degc - true - - dialog-apply - aloft-0-temperature-degc - - - - - aloft-0-dewpoint-degc - 5 - 5 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/aloft/entry[0]/dewpoint-degc - true - - dialog-apply - aloft-0-dewpoint-degc - - - - - aloft-0-turbulence - 5 - 6 - 90 - true - /environment/config/aloft/entry[0]/turbulence-name - none - light - moderate - severe - - dialog-apply - aloft-0-turbulence - - - nasal - - - - - - - - true - - - - - - - - - vbox - 1 - - - hbox - - - - /sim/gui/dialogs/weather-scenario/state - - - - true - - - - - hbox - - - table - - - 0 - 0 - - - /sim/gui/dialogs/weather-scenario/state - - - - - 0 - 1 - 2 - - - /sim/gui/dialogs/weather-scenario/state - - - - - 0 - 3 - - - /sim/gui/dialogs/weather-scenario/state - - - - - 0 - 4 - - - /sim/gui/dialogs/weather-scenario/state - - - - - 0 - 5 - - - /sim/gui/dialogs/weather-scenario/state - - - - - boundary-1-elevation-ft - 1 - 0 - 52 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[1]/elevation-ft - true - - dialog-apply - boundary-1-elevation-ft - - - - - boundary-1-wind-from-heading-deg - 1 - 1 - 40 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[1]/wind-from-heading-deg - true - - dialog-apply - boundary-1-wind-from-heading-deg - - - - - boundary-1-wind-speed-kt - 1 - 2 - 35 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[1]/wind-speed-kt - true - - dialog-apply - boundary-1-wind-speed-kt - - - - - boundary-1-visibility-m - 1 - 3 - 55 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[1]/visibility-m - true - - dialog-apply - boundary-1-visibility-m - - - - - boundary-1-temperature-degc - 1 - 4 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[1]/temperature-degc - true - - dialog-apply - boundary-1-temperature-degc - - - - - boundary-1-dewpoint-degc - 1 - 5 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[1]/dewpoint-degc - true - - dialog-apply - boundary-1-dewpoint-degc - - - - - boundary-1-turbulence - 1 - 6 - 90 - true - /environment/config/boundary/entry[1]/turbulence-name - none - light - moderate - severe - - dialog-apply - boundary-1-turbulence - - - nasal - - - - - - - boundary-0-elevation-ft - 2 - 0 - 52 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[0]/elevation-ft - true - - dialog-apply - boundary-0-elevation-ft - - - - - boundary-0-wind-from-heading-deg - 2 - 1 - 40 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[0]/wind-from-heading-deg - true - - dialog-apply - boundary-0-wind-from-heading-deg - - - - - boundary-0-wind-speed-kt - 2 - 2 - 35 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[0]/wind-speed-kt - true - - dialog-apply - boundary-0-wind-speed-kt - - - - - boundary-0-visibility-m - 2 - 3 - 55 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[0]/visibility-m - true - - dialog-apply - boundary-0-visibility-m - - - - - boundary-0-temperature-degc - 2 - 4 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[0]/temperature-degc - true - - dialog-apply - boundary-0-temperature-degc - - - - - boundary-0-dewpoint-degc - 2 - 5 - 60 - - - /sim/gui/dialogs/weather-scenario/state - 1 - - - /environment/config/boundary/entry[0]/dewpoint-degc - true - - dialog-apply - boundary-0-dewpoint-degc - - - - - boundary-0-turbulence - 2 - 6 - 90 - true - /environment/config/boundary/entry[0]/turbulence-name - none - light - moderate - severe - - dialog-apply - boundary-0-turbulence - - - nasal - - - - - - - - true - - - - - - - - - + true + + vbox - - hbox + table - - - - true - - - - - hbox - - + 0 + 0 + + 0 + 1 source-selection fill true - sim/gui/dialogs/weather-scenario/source-selection + 400 + sim/gui/dialogs/metar/source-selection + + + sim/gui/dialogs/metar/mode/manual-weather + 0 + + dialog-apply source-selection dialog-update - metar - - - - nasal - + metar-string - - metar-updates-winds-aloft - /environment/params/metar-updates-winds-aloft - - true - - dialog-apply - metar-updates-winds-aloft - - - - - - description - fill - true - 180 - 60 - 20 - false - true - true - sim/gui/dialogs/weather-scenario/description - - + hbox @@ -1811,55 +481,59 @@ hbox - metar + metar-string fill true - 180 - 50 - 20 + 250 + 60 true true false - sim/gui/dialogs/weather-scenario/metar + false + sim/gui/dialogs/metar/metar-string - - /sim/gui/dialogs/weather-scenario/state - 1 - > + + + sim/gui/dialogs/metar/mode/manual-weather + 0 + + + sim/gui/dialogs/metar/source-selection + Manual input + + dialog-apply - metar - - - nasal - + metar-string - - + + hbox + + + + + true + + + + description + fill + true + 250 + 150 + 0 + false + true + true + sim/gui/dialogs/metar/description + - + @@ -1867,6 +541,38 @@ true hbox + + + + + - - true - - - - - diff --git a/gui/menubar.xml b/gui/menubar.xml index 01be7053c..f58ade722 100644 --- a/gui/menubar.xml +++ b/gui/menubar.xml @@ -272,23 +272,13 @@ environment - + global-weather - - /nasal/local_weather/enabled - dialog-show weather - - - /nasal/local_weather/enabled - - dialog-show - local_weather_tiles -