home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global StartMusic, AfterFavorite, Choice, RecipeNum, StartingLine, forClear, LastMarker
- set AfterFavorite to 0
- set StartMusic to 1
- cursor(4)
- sound stop 1
- set the itemDelimiter to "@"
- windowRoutine()
- set the scrollTop of member "shop1" to 0
- set the scrollTop of member "shop2" to 0
- put Choice into field "TarName"
- set x to the number of lines in the text of member ("recipe" & RecipeNum)
- set onTheBase to line x of the text of member ("recipe" & RecipeNum)
- put onTheBase into field "TarBase"
- set tarTime to line x - 6 of the text of member ("recipe" & RecipeNum)
- put tarTime into field "TarTime"
- set stuff1 to item 2 of the text of member ("recipe" & RecipeNum)
- set stuff2 to item 3 of the text of member ("recipe" & RecipeNum)
- set the text of member "tarinfo2" to stuff1 & RETURN & stuff2
- set the textStyle of member "tarinfo2" to "plain"
- set StartingLine to 1
- set the text of member "tarinfo2temp" to line 1 to 12 of the text of member "tarinfo2"
- if RecipeNum > 148 then
- set vari to offset("below", field "tarinfo2")
- set the textStyle of char 1 to vari + 4 of field "TarInfo2" to "bold"
- set vari2 to offset("Variation:", field "tarinfo2")
- if vari2 = 0 then
- set vari2 to offset("Variations:", field "tarinfo2")
- end if
- set z to the number of chars in field "tarinfo2"
- set the textStyle of char vari2 to z of field "TarInfo2" to "bold"
- end if
- set LastMarker to marker(0)
- outOfObjects()
- windowRoutine()
- tell window "notes"
- set currText to the text of field (50 + RecipeNum)
- end tell
- set the text of field "currNotes" to currText
- if the number of lines in field "tarinfo2" <= the number of lines in field "tarinfo2temp" then
- set the visible of sprite 14 to 0
- set the visible of sprite 15 to 0
- end if
- close(window "notes")
- set the visible of sprite 16 to 0
- repeat with i = 19 to 29
- set the visible of sprite i to 0
- end repeat
- repeat with i = 31 to 35
- set the visible of sprite i to 0
- end repeat
- set the visible of sprite 38 to 0
- set the visible of sprite 37 to 0
- end
-