home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global Choice, RecipeNum
- if the visible of sprite 21 then
- set currLine to the mouseLine
- set ing to line currLine of field "TarInfo2"
- if field ("fieldRecipe" & RecipeNum) contains word 1 of ing then
- set l1 to the number of lines in field "shop1"
- if the text of field "shop1" = EMPTY then
- set l1 to 0
- end if
- set l2 to the number of lines in field "shop2"
- if the text of field "shop2" = EMPTY then
- set l2 to 0
- end if
- if (the text of field "shop2" contains ing) = 0 then
- put Choice into line l1 + 1 of field "shop1"
- put ing into line l2 + 1 of field "shop2"
- set x to the number of lines in field "shop1"
- if x < 11 then
- set the scrollTop of member "shop1" to 0
- set the scrollTop of member "shop2" to 0
- else
- set y to the height of member "shop1" / x
- set the scrollTop of member "shop1" to y * (x - 10)
- set the scrollTop of member "shop2" to y * (x - 10)
- end if
- end if
- end if
- end if
- end
-