home *** CD-ROM | disk | FTP | other *** search
- on showPopMenu cast1, castRange
- global castData, rectList
- set rectList to []
- set theRect to item 1 of castData
- repeat with n = 1 to 4
- set x to offset("┬╢", theRect)
- if x > 0 then
- addAt(rectList, n, char 1 to x - 1 of theRect)
- delete char 1 to x of theRect
- next repeat
- end if
- addAt(rectList, n, theRect)
- end repeat
- set popMenuPtr to value(item 4 of castData)
- puppetSprite(6, 1)
- set the ink of sprite 6 to 32
- set the castNum of sprite 6 to popMenuPtr
- set x1 to value(getAt(rectList, 1))
- set y1 to value(getAt(rectList, 2))
- set x2 to x1 + value(getAt(rectList, 3))
- set y2 to y1 + value(getAt(rectList, 4))
- spriteBox(6, x1, y1, x2, y2)
- end
-