home *** CD-ROM | disk | FTP | other *** search
- on CardPos X, Y
- global CardsDealt, CardCoord, CCindexes, Cnt, CdNames, Opt
- if (the frame >= label("diary")) and (the frame < label("reshow")) then
- return
- end if
- set CARD_WIDTH to 76
- set CARD_HEIGHT to 127
- set Cnt to 0
- repeat with i = 1 to CardsDealt - 1
- set t to CardCoord(mget, i)
- set tX to value(item 1 of t)
- set tY to value(item 2 of t)
- if (X < (tX - (CARD_WIDTH / 2))) or (X > (tX + (CARD_WIDTH / 2))) or (Y < (tY - (CARD_HEIGHT / 2))) or (Y > (tY + (CARD_HEIGHT / 2))) then
- nothing()
- next repeat
- end if
- if the optionDown then
- puppetSprite(25, 1)
- set cName to line value(item i of CCindexes) of CdNames
- set cName to chars(cName, 1, the number of chars in cName - 2)
- set the castNum of sprite 25 to the number of cast cName
- set the locH of sprite 25 to 320
- set the locV of sprite 25 to 240
- puppetTransition(50, 0, 64, 1)
- updateStage()
- cursor(-1)
- return
- next repeat
- end if
- RevealCard(i)
- Sound_Color(value(item i of CCindexes), 1)
- puppetSprite(22, 0)
- puppetSprite(23, 0)
- cursor(-1)
- updateStage()
- return
- end repeat
- return -1
- end
-
- on displayLrgCard indx
- global CdNames, CCindexes
- if indx = 0 then
- return
- end if
- puppetSprite(25, 1)
- set cName to line value(item indx of CCindexes) of CdNames
- set cName to chars(cName, 1, the number of chars in cName - 2)
- set the castNum of sprite 25 to the number of cast cName
- set the locH of sprite 25 to 170
- set the locV of sprite 25 to 275
- puppetTransition(50, 0, 64, 1)
- updateStage()
- cursor(-1)
- return
- end
-