From 910cda3fce2c10f9c904dfde82cb5593ef316d9b Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Sat, 4 Jun 2011 12:18:11 +0200 Subject: [PATCH] Tutorials: improve timing when repeating messages Don't confuse user by repeating messages when he just fulfilled the tutorial's step exit condition. --- Docs/README.tutorials | 6 +++--- Nasal/tutorial.nas | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Docs/README.tutorials b/Docs/README.tutorials index e58a1623a..3a6a939ed 100644 --- a/Docs/README.tutorials +++ b/Docs/README.tutorials @@ -72,7 +72,7 @@ in detail below: ... optional; Nasal code - 10 optional; run loop next in this many seconds + 10 optional; run loop next in this many seconds (default: 5); doesn't change global interval @@ -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; run loop next in this many seconds optional; allowed several times .. optional; text displayed/spoken @@ -114,7 +114,7 @@ in detail below: ... optional; Nasal code that is executed when the error condition was fulfilled - 10 optional; run loop next in this many seconds + 10 optional; run loop next in this many seconds optional; defines when to leave this diff --git a/Nasal/tutorial.nas b/Nasal/tutorial.nas index f086d2c2f..d72602671 100644 --- a/Nasal/tutorial.nas +++ b/Nasal/tutorial.nas @@ -203,7 +203,8 @@ var step_tutorial = func(id) { { # What's going on? Repeat last message. last_messageN.setValue(""); - is_first_step = 1; + step_start_time = time_elapsedN.getValue(); + do_group(step, "Tutorial step " ~ current_step); } return continue_after(exit, step_interval); }