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:
parent
e80490ff30
commit
910cda3fce
2 changed files with 5 additions and 4 deletions
|
@ -72,7 +72,7 @@ in detail below:
|
||||||
<nasal>
|
<nasal>
|
||||||
... optional; Nasal code
|
... optional; Nasal code
|
||||||
</nasal>
|
</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
|
</init> (default: 5); doesn't change global
|
||||||
interval
|
interval
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ in detail below:
|
||||||
... optional; Nasal code that is executed when the
|
... optional; Nasal code that is executed when the
|
||||||
</nasal> step is entered
|
</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
|
<error> optional; allowed several times
|
||||||
<message>..</message> optional; text displayed/spoken
|
<message>..</message> optional; text displayed/spoken
|
||||||
|
@ -114,7 +114,7 @@ in detail below:
|
||||||
... optional; Nasal code that is executed when the
|
... optional; Nasal code that is executed when the
|
||||||
</nasal> error condition was fulfilled
|
</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>
|
</error>
|
||||||
|
|
||||||
<exit> optional; defines when to leave this <step>
|
<exit> optional; defines when to leave this <step>
|
||||||
|
|
|
@ -203,7 +203,8 @@ var step_tutorial = func(id) {
|
||||||
{
|
{
|
||||||
# What's going on? Repeat last message.
|
# What's going on? Repeat last message.
|
||||||
last_messageN.setValue("");
|
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);
|
return continue_after(exit, step_interval);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue