@@ -432,12 +432,20 @@ end revTutorialParseInterlude
432432on revTutorialParseLoad pTokens, @rData
433433 local tData
434434 revTutorialParseLine "load lesson <token>" , pTokens , tData
435- if the result is not empty then
436- return the result
435+ if the result is empty then
436+ put "load" into rData["type" ]
437+ put tData [1 ] into rData["lesson" ]
438+ return empty
437439 end if
438- put "load" into rData["type" ]
439- put tData [1 ] into rData["lesson" ]
440- return empty
440+
441+ revTutorialParseLine "load stack <token>" , pTokens , tData
442+ if the result is empty then
443+ put "load" into rData["type" ]
444+ put tData [1 ] into rData["stack" ]
445+ return empty
446+ end if
447+
448+ return the result
441449end revTutorialParseLoad
442450
443451on revTutorialParseCapture pTokens, @rData
@@ -2086,18 +2094,39 @@ on revTutorialExecuteAction pActionData
20862094 revTutorialDoCreateSet pActionData ["objects" ], pActionData ["tag" ]
20872095 break
20882096 case "load"
2089- revTutorialDoLoad pActionData [ "lesson" ]
2097+ revTutorialDoLoad pActionData
20902098 break
20912099 end switch
20922100end revTutorialExecuteAction
20932101
2094- on revTutorialDoLoad pLesson
2102+ command revTutorialDoLoadLesson pLesson
20952103 # Check to see if the stack from the specified lesson is complete
20962104 local tTutorialInfo
20972105 put revIDETutorialInProgress() into tTutorialInfo
20982106
20992107 # Simply run the lesson that is to be loaded
21002108 revTutorialRunTutorial tTutorialInfo ["course" ], tTutorialInfo ["tutorial" ], pLesson , tTutorialInfo ["location" ]
2109+ end revTutorialDoLoadLesson
2110+
2111+ command revTutorialDoLoadStackResource pFile
2112+ local tFileName , tStackName
2113+ put revIDETutorialInternalResource(pFile ) into tFileName
2114+ lock screen
2115+ lock messages
2116+ go stack tFileName
2117+ put the name of stack tFileName into tStackName
2118+ set the filename of stack tStackName to empty
2119+ revIDETutorialUpdateAndRemoveTags tStackName , sTaggedObjects
2120+ unlock messages
2121+ unlock screen
2122+ end revTutorialDoLoadStackResource
2123+
2124+ on revTutorialDoLoad pActionData
2125+ if pActionData ["lesson" ] is not empty then
2126+ revTutorialDoLoadLesson pActionData ["lesson" ]
2127+ else if pActionData ["stack" ] is not empty then
2128+ revTutorialDoLoadStackResource pActionData ["stack" ]
2129+ end if
21012130end revTutorialDoLoad
21022131
21032132on revTutorialSetText pStep
0 commit comments