diff --git a/Nasal/gui.nas b/Nasal/gui.nas
index 2a5c74414..e0fa55d68 100644
--- a/Nasal/gui.nas
+++ b/Nasal/gui.nas
@@ -1265,3 +1265,12 @@ _setlistener("/sim/signals/screenshot", func {
}
});
+var do_welcome = 1;
+_setlistener("/sim/signals/fdm-initialized", func {
+ var haveTutorials = size(props.globals.getNode("/sim/tutorials", 1).getChildren("tutorial"));
+ gui.menuEnable("tutorial-start", haveTutorials);
+ if (do_welcome and haveTutorials)
+ settimer(func { setprop("/sim/messages/copilot", "Welcome aboard! Need help? Use 'Help -> Tutorials'.");}, 5.0);
+ do_welcome = 0;
+});
+
diff --git a/Nasal/tutorial/tutorial.nas b/Nasal/tutorial/tutorial.nas
index d72602671..67aceb08a 100644
--- a/Nasal/tutorial/tutorial.nas
+++ b/Nasal/tutorial/tutorial.nas
@@ -15,7 +15,6 @@ var step_start_time = nil;
var step_iter_count = 0; # number or step loop iterations
var last_step_time = nil; # for set_targets() eta calculation
var audio_dir = nil;
-var do_welcome = 1;
# property nodes (to be initialized with listener)
var markerN = nil;
@@ -26,7 +25,7 @@ var last_messageN = nil;
var step_countN = nil;
var step_timeN = nil;
-_setlistener("/sim/signals/nasal-dir-initialized", func {
+_setlistener("/nasal/tutorial/loaded", func {
markerN = props.globals.getNode("/sim/model/marker", 1);
headingN = props.globals.getNode("/orientation/heading-deg", 1);
slipN = props.globals.getNode("/orientation/side-slip-deg", 1);
@@ -37,14 +36,6 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
setlistener("/sim/crashed", stopTutorial);
});
-_setlistener("/sim/signals/fdm-initialized", func {
- var haveTutorials = size(props.globals.getNode("/sim/tutorials", 1).getChildren("tutorial"));
- gui.menuEnable("tutorial-start", haveTutorials);
- if (do_welcome and haveTutorials)
- settimer(func { setprop("/sim/messages/copilot", "Welcome aboard! Need help? Use 'Help -> Tutorials'.");}, 5.0);
- do_welcome = 0;
-});
-
var startTutorial = func {
var name = getprop("/sim/tutorials/current-tutorial");
if (name == nil) {
diff --git a/gui/dialogs/tutorial.xml b/gui/dialogs/tutorial.xml
index b95154682..358a01903 100644
--- a/gui/dialogs/tutorial.xml
+++ b/gui/dialogs/tutorial.xml
@@ -131,7 +131,10 @@
true
nasal
-
+
dialog-close
diff --git a/preferences.xml b/preferences.xml
index cc5f58aa9..610776ce8 100644
--- a/preferences.xml
+++ b/preferences.xml
@@ -1189,43 +1189,49 @@ Started September 2000 by David Megginson, david@megginson.com
- false
+ false
1000
fg_log.csv
,
- false
+ false
Longitude
/position/longitude-deg
- false
+ false
Latitude
/position/latitude-deg
- false
+ false
Altitude
/position/altitude-ft
- false
+ false
Roll
/orientation/roll-deg
- false
+ false
Pitch
/orientation/pitch-deg
- false
+ false
Heading
/orientation/heading-deg
+
+
+ false
+
+
+