1
0
Fork 0

Tutorials: improve timing when repeating messages

Don't confuse user by repeating messages when he just fulfilled the
tutorial's step exit condition.
This commit is contained in:
ThorstenB 2011-06-04 12:18:11 +02:00
parent e80490ff30
commit 910cda3fce
2 changed files with 5 additions and 4 deletions

View file

@ -72,7 +72,7 @@ in detail below:
<nasal>
... optional; Nasal code
</nasal>
<interval>10</inteval> optional; run loop next in this many seconds
<interval>10</interval> optional; run loop next in this many seconds
</init> (default: 5); doesn't change global
interval
@ -100,7 +100,7 @@ in detail below:
... optional; Nasal code that is executed when the
</nasal> step is entered
<interval>10</inteval> optional; run loop next in this many seconds
<interval>10</interval> optional; run loop next in this many seconds
<error> optional; allowed several times
<message>..</message> optional; text displayed/spoken
@ -114,7 +114,7 @@ in detail below:
... optional; Nasal code that is executed when the
</nasal> error condition was fulfilled
<interval>10</inteval> optional; run loop next in this many seconds
<interval>10</interval> optional; run loop next in this many seconds
</error>
<exit> optional; defines when to leave this <step>

View file

@ -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);
}