From 539716828bfade75caa2d214da7b2eb06930968f Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Mon, 13 Jun 2011 20:28:31 +0200 Subject: [PATCH] Added GUI/menu item for scenery download/update. --- Nasal/gui.nas | 11 +++++++++++ Translations/strings-default.xml | 3 +++ gui/dialogs/weather.xml | 1 - gui/menubar.xml | 16 ++++++++-------- options.xml | 15 +++++++++++++++ preferences.xml | 11 +++++++++-- 6 files changed, 46 insertions(+), 11 deletions(-) diff --git a/Nasal/gui.nas b/Nasal/gui.nas index 3016ff5b8..d0e3a836d 100644 --- a/Nasal/gui.nas +++ b/Nasal/gui.nas @@ -1265,6 +1265,17 @@ _setlistener("/sim/signals/screenshot", func { } }); +var terrasync_stalled = 0; +_setlistener("/sim/terrasync/stalled", func { + var stalled = getprop("/sim/terrasync/stalled"); + if (stalled and !terrasync_stalled) + { + var button = { button: { legend: "Ok", default: 1, binding: { command: "dialog-close" }}}; + popupTip("Scenery download stalled. Too many errors reported. See log output.", 600, button); + } + terrasync_stalled = stalled; +}); + var do_welcome = 1; _setlistener("/sim/signals/fdm-initialized", func { var haveTutorials = size(props.globals.getNode("/sim/tutorials", 1).getChildren("tutorial")); diff --git a/Translations/strings-default.xml b/Translations/strings-default.xml index 7bfd520eb..8a444eb75 100644 --- a/Translations/strings-default.xml +++ b/Translations/strings-default.xml @@ -250,6 +250,9 @@ Specify which proxy server (and port) to use. The username and password are optional and should be MD5 encoded already. This option is only useful when used in conjunction with the real-weather-fetch option. Enable telnet server on the specified port Enable screen shot http server on the specified port + Disable automatic scenery downloads/updates + Enable automatic scenery downloads/updates + Set target directory for scenery downloads MultiPlayer Options diff --git a/gui/dialogs/weather.xml b/gui/dialogs/weather.xml index af363d4d8..103f8a145 100644 --- a/gui/dialogs/weather.xml +++ b/gui/dialogs/weather.xml @@ -1752,7 +1752,6 @@