home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global gnFirstSprite
- ClosePopup()
- set nTextVPos to the locV of sprite the clickOn
- set nTextHeight to the textHeight of field the castNum of sprite the clickOn
- set n to ((the mouseV - nTextVPos) / nTextHeight) + 1
- if n < 1 then
- exit
- end if
- set sFontName to line n of the text of field the castNum of sprite the clickOn
- if sFontName = EMPTY then
- exit
- end if
- set sFileName to "clips\font\" & MakeFontFileName(sFontName) & ".bmp"
- set the puppet of sprite (gnFirstSprite + 2) to 1
- set the locV of sprite (gnFirstSprite + 2) to nTextVPos + (nTextHeight * n) - (nTextHeight / 2)
- updateStage()
- LoadPopup("font", sFontName, sFileName, EMPTY, 0)
- end
-