From bd4e8764de5f316bd4e505ef7e28b45dbc0b4896 Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Sat, 14 Jul 2012 20:27:31 +0100 Subject: [PATCH] Correct waiting period for exit statements without conditions, update tutorial README with tag. --- Docs/README.tutorials | 14 ++++++-------- Nasal/tutorial/tutorial.nas | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Docs/README.tutorials b/Docs/README.tutorials index 3a6a939ed..2fffa5794 100644 --- a/Docs/README.tutorials +++ b/Docs/README.tutorials @@ -38,10 +38,13 @@ in detail below: tutorial selection dialog ... mandatory; longer description for the dialog ... optional; defines where to load sound samples - 5 optional; defines default loop interval in sec noon optional; defines daytime; any of "dawn", "morning", "noon", "afternoon", "evening", "dusk", "midnight", "real" + + optional; period between each step being executed. Default 5 + optional; period between exit/abort conditions being checked. Default 1 + ... optional; initial Nasal code; see below @@ -72,10 +75,7 @@ in detail below: ... optional; Nasal code - 10 optional; run loop next in this many seconds - (default: 5); doesn't change global - interval - + mandatory; well, not really, but if there's not at least one , then the whole tutorial @@ -100,7 +100,7 @@ in detail below: ... optional; Nasal code that is executed when the step is entered - 10 optional; run loop next in this many seconds + 10 optional; wait period after initial messages etc. optional; allowed several times .. optional; text displayed/spoken @@ -113,8 +113,6 @@ in detail below: ... optional; Nasal code that is executed when the error condition was fulfilled - - 10 optional; run loop next in this many seconds optional; defines when to leave this diff --git a/Nasal/tutorial/tutorial.nas b/Nasal/tutorial/tutorial.nas index 86b243eca..8be7cd5bf 100644 --- a/Nasal/tutorial/tutorial.nas +++ b/Nasal/tutorial/tutorial.nas @@ -203,7 +203,7 @@ var step_tutorial = func(id) { step_start_time = time_elapsedN.getValue(); do_group(step, "Tutorial step " ~ current_step); } - return continue_after(exit, exit_interval); + return continue_after(exit, step_interval); } do_group(exit);