From 7c8558274a02c5b076fa47042d8d09540c60178a Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Sun, 5 Jun 2011 23:22:12 +0200 Subject: [PATCH] Turn atc-chatter.nas into a separate submodule. Moved atc-chatter.nas into subdirectory (file unmodified). Load atc-chatter.nas on demand only. --- Nasal/{ => atc-chatter}/atc-chatter.nas | 0 Nasal/gui.nas | 6 ++++++ preferences.xml | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) rename Nasal/{ => atc-chatter}/atc-chatter.nas (100%) diff --git a/Nasal/atc-chatter.nas b/Nasal/atc-chatter/atc-chatter.nas similarity index 100% rename from Nasal/atc-chatter.nas rename to Nasal/atc-chatter/atc-chatter.nas diff --git a/Nasal/gui.nas b/Nasal/gui.nas index e0fa55d68..3016ff5b8 100644 --- a/Nasal/gui.nas +++ b/Nasal/gui.nas @@ -1274,3 +1274,9 @@ _setlistener("/sim/signals/fdm-initialized", func { do_welcome = 0; }); +# load ATC chatter module on demand +setprop("/nasal/atc-chatter/enabled", getprop("/sim/sound/chatter/enabled")); +_setlistener("/sim/sound/chatter/enabled", func { + setprop("/nasal/atc-chatter/enabled", getprop("/sim/sound/chatter/enabled")); +}); + diff --git a/preferences.xml b/preferences.xml index 610776ce8..3c13c6e7a 100644 --- a/preferences.xml +++ b/preferences.xml @@ -1228,8 +1228,11 @@ Started September 2000 by David Megginson, david@megginson.com - false + false + + false +