Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 60aec0a

Browse files
committed
[Interactive Tutorial] Updated screenshots and tutorial fixes
1 parent abd9401 commit 60aec0a

7 files changed

Lines changed: 9 additions & 16 deletions

File tree

5.2 KB
Loading
7.16 KB
Loading
16.1 KB
Loading
16.3 KB
Loading
-3.78 KB
Loading
-5.56 KB
Loading

Toolset/palettes/tutorial/courses/First Run/tutorials/To Do List/lessons/App Lesson.txt

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -293,17 +293,13 @@ step "mouseUp message"
293293
Don't forget to click the 'Apply' button when you have finished.
294294
script
295295
on mouseUp
296-
local tList
297-
298296
ask "Please enter a task"
299297

300-
put the text of field "TaskList" into tList
301298
if field "TaskList" is empty then
302-
put it into tList
299+
put it into field "TaskList"
303300
else
304-
put return & it after tList
301+
put return & it after field "TaskList"
305302
end if
306-
set the text of field "TaskList" to tList
307303
end mouseUp
308304
action
309305
highlight script editor for widget "add"
@@ -361,11 +357,10 @@ end step
361357
skip point
362358

363359
step "Add task"
364-
Click the 'Add' icon and enter the task "Buy milk", it will appear at the
365-
bottom of the list.
360+
Click the 'Add' icon and enter a task, it will appear at the bottom of the list.
366361
action
367362
highlight widget "add"
368-
wait until the text of field "taskList" is "Buy milk"
363+
wait until the text of field "taskList" is changed with default "Buy milk"
369364
go to step "Return to Edit Mode"
370365
end step
371366

@@ -456,14 +451,12 @@ step "Delete mouseUp"
456451
Don't forget to click the 'Apply' button when you have added the code.
457452
script
458453
on mouseUp
459-
local tList
460454

461455
answer "Do you want to delete this task?" with "Yes" and "No"
456+
462457
if it is "Yes" then
463-
put the text of field "TaskList" into tList
464-
delete line (the hilitedLine of field "taskList") of tList
465-
set the text of field "TaskList" to tList
466-
end if
458+
delete line (the hilitedLine of field "TaskList") of field "TaskList"
459+
end if
467460
end mouseUp
468461
action
469462
highlight script editor for widget "delete"
@@ -488,7 +481,7 @@ step "Test Delete Task"
488481
The task will be deleted from the list.
489482
action
490483
highlight widget "delete"
491-
wait until the text of field "taskList" is ""
484+
wait until the text of field "taskList" is changed
492485
go to step "Return to Edit Mode 2"
493486
end step
494487

@@ -546,7 +539,7 @@ script
546539
action
547540
highlight script editor for stack "Mainstack"
548541
wait until stack "Mainstack" is scripted
549-
go to step "Test step"
542+
go to step "preOpenStack code"
550543
end step
551544

552545
step "preOpenStack code"

0 commit comments

Comments
 (0)