@@ -260,7 +260,17 @@ function tilesArray pState
260260 put "lc-person" into tArray [8 ]["icon" ]
261261 put "lc-person-filled" into tArray [8 ]["hoverIcon" ]
262262 break
263- case "interactive_welcome"
263+ case "interactive_welcome"
264+ put "1. User Interface" into tArray [1 ]["label" ]
265+ put "tutorial_list_ui" into tArray [1 ]["tag" ]
266+ put "tablet" into tArray [1 ]["icon" ]
267+ put "tablet" into tArray [1 ]["hoverIcon" ]
268+ put "2. Coding" into tArray [2 ]["label" ]
269+ put "tutorial_list_coding" into tArray [2 ]["tag" ]
270+ put "terminal" into tArray [2 ]["icon" ]
271+ put "terminal" into tArray [2 ]["hoverIcon" ]
272+ break
273+ case "tutorial_list_ui"
264274 put "1. Hello World" into tArray [1 ]["label" ]
265275 put "tutorial_hello_world" into tArray [1 ]["tag" ]
266276 put "lc-hello-world" into tArray [1 ]["icon" ]
@@ -273,6 +283,24 @@ function tilesArray pState
273283 put "tutorial_bmi_calculator" into tArray [3 ]["tag" ]
274284 put "lc-bmi-calculator" into tArray [3 ]["icon" ]
275285 put "lc-bmi-calculator-filled" into tArray [3 ]["hoverIcon" ]
286+ put "1. Hello World" into tArray [1 ]["label" ]
287+ put "tutorial_hello_world" into tArray [1 ]["tag" ]
288+ put "lc-hello-world" into tArray [1 ]["icon" ]
289+ put "lc-hello-world-filled" into tArray [1 ]["hoverIcon" ]
290+ put "2. To Do List" into tArray [2 ]["label" ]
291+ put "tutorial_todo_list" into tArray [2 ]["tag" ]
292+ put "lc-todo-list" into tArray [2 ]["icon" ]
293+ put "lc-todo-list-filled" into tArray [2 ]["hoverIcon" ]
294+ break
295+ case "tutorial_list_coding"
296+ put "1. Combining Text" into tArray [1 ]["label" ]
297+ put "tutorial_combining_text" into tArray [1 ]["tag" ]
298+ put "font" into tArray [1 ]["icon" ]
299+ put "font" into tArray [1 ]["hoverIcon" ]
300+ put "2. Timers" into tArray [2 ]["label" ]
301+ put "tutorial_timers" into tArray [2 ]["tag" ]
302+ put "hourglass" into tArray [2 ]["icon" ]
303+ put "hourglass" into tArray [2 ]["hoverIcon" ]
276304 break
277305 case "new"
278306 put "New Stack" into tArray [1 ]["label" ]
@@ -404,6 +432,20 @@ on startCenterAction pAction
404432 put tilesArray(pAction ) into tArray
405433 tilesUpdate tArray
406434 break
435+ case "tutorial_list_ui"
436+ put "Home / Interactive Welcome / User Interface" into field "breadcrumb"
437+ set the textStyle of word 1 of field "breadcrumb" to "link"
438+ set the textStyle of word 3 to 4 of field "breadcrumb" to "link"
439+ put tilesArray(pAction ) into tArray
440+ tilesUpdate tArray
441+ break
442+ case "tutorial_list_coding"
443+ put "Home / Interactive Welcome / Coding" into field "breadcrumb"
444+ set the textStyle of word 1 of field "breadcrumb" to "link"
445+ set the textStyle of word 3 to 4 of field "breadcrumb" to "link"
446+ put tilesArray(pAction ) into tArray
447+ tilesUpdate tArray
448+ break
407449 case "tutorial_hello_world"
408450 tutorialStart "Hello World"
409451 break
@@ -413,6 +455,12 @@ on startCenterAction pAction
413455 case "tutorial_bmi_calculator"
414456 tutorialStart "BMI Calculator"
415457 break
458+ case "tutorial_combining_text"
459+ tutorialStart "Combining Text"
460+ break
461+ case "tutorial_timers"
462+ tutorialStart "Timers"
463+ break
416464 case "new"
417465 put "Home / New" into field "breadcrumb"
418466 set the textStyle of word 1 of field "breadcrumb" to "link"
@@ -491,15 +539,21 @@ on startCenterAction pAction
491539 end switch
492540end startCenterAction
493541
494- command setStateHome
542+ command setState pState
495543 local tArray
496- put tilesArray("home" ) into tArray
544+
545+ put tilesArray(pState ) into tArray
497546
498547 put empty into field "breadcrumb"
499- set the textStyle of word 1 of field "breadcrumb" to empty
500548
549+ if pState is "home " then
550+ set the textStyle of word 1 of field "breadcrumb" to empty
551+ else if pState is "interactive_welcome" then
552+ put "Home / Interactive Welcome" into field "breadcrumb"
553+ set the textStyle of word 1 of field "breadcrumb" to "link"
554+ end if
501555 tilesUpdate tArray
502- end setStateHome
556+ end setState
503557
504558command firstRunVisible pValue
505559 lock screen
0 commit comments