home *** CD-ROM | disk | FTP | other *** search
- on CDXMenuHeadings
- global CDXTopMenuList, CDXDrpMenu, CDXLeaveThis, CDXLastResSprite, CDXFirstResSprite, CDXDuringSearch, CDXHelpOnStage
- repeat with t = 1 to count(CDXTopMenuList)
- set HEADING to getAt(getAt(CDXTopMenuList, t), 1)
- if rollOver(HEADING) then
- set PosInList to t
- set the castNum of sprite HEADING to the castNum of sprite HEADING + 1
- updateStage()
- repeat while rollOver(HEADING)
- if the mouseDown then
- set the castNum of sprite getAt(getAt(CDXTopMenuList, t), 2) to -1
- set the locH of sprite getAt(getAt(CDXTopMenuList, t), 2) to 2000
- repeat with s = 30 to 35
- set the castNum of sprite s to the number of member "CDDot"
- set the locH of sprite s to 2000
- set the locV of sprite s to 2000
- end repeat
- set the castNum of sprite 36 to the number of member "CDDot"
- set the locH of sprite 36 to 2000
- set CDXHelpOnStage to 0
- updateStage()
- set CDXDuringSearch to 0
- case t of
- 1:
- setAt(getAt(CDXTopMenuList, 2), 12, the locH of sprite getAt(getAt(CDXTopMenuList, 2), 2))
- setAt(getAt(CDXTopMenuList, 2), 13, the locV of sprite getAt(getAt(CDXTopMenuList, 2), 2))
- set the locH of sprite getAt(getAt(CDXTopMenuList, 2), 2) to 2000
- 3:
- setAt(getAt(CDXTopMenuList, 4), 12, the locH of sprite getAt(getAt(CDXTopMenuList, 4), 2))
- setAt(getAt(CDXTopMenuList, 4), 13, the locV of sprite getAt(getAt(CDXTopMenuList, 4), 2))
- set the locH of sprite getAt(getAt(CDXTopMenuList, 4), 2) to 2000
- end case
- repeat with f = CDXFirstResSprite to CDXLastResSprite
- set the castNum of sprite f to the number of member "CDDot"
- set the locH of sprite f to 2000
- end repeat
- updateStage()
- set the castNum of sprite CDXDrpMenu to the number of member getAt(getAt(CDXTopMenuList, t), 3)
- set the loc of sprite CDXDrpMenu to point(getAt(getAt(CDXTopMenuList, t), 7), getAt(getAt(CDXTopMenuList, t), 8))
- updateStage()
- repeat while the mouseDown
- repeat with s = 1 to count(CDXTopMenuList)
- set HEADINGTwo to getAt(getAt(CDXTopMenuList, s), 1)
- if rollOver(HEADINGTwo) and (HEADINGTwo <> HEADING) then
- set CDXLeaveThis to 1
- end if
- end repeat
- if CDXLeaveThis = 1 then
- set CDXLeaveThis to 0
- exit repeat
- end if
- CDXDDPTEXT(PosInList)
- end repeat
- set the castNum of sprite CDXDrpMenu to -1
- updateStage()
- set the castNum of sprite getAt(getAt(CDXTopMenuList, t), 2) to the number of member getAt(getAt(CDXTopMenuList, t), 4)
- repeat with d = 2 to the number of lines in field the number of member getAt(getAt(CDXTopMenuList, t), 4)
- put EMPTY into line d of field the number of member getAt(getAt(CDXTopMenuList, t), 4)
- end repeat
- set the loc of sprite getAt(getAt(CDXTopMenuList, t), 2) to point(getAt(getAt(CDXTopMenuList, t), 5), getAt(getAt(CDXTopMenuList, t), 6))
- case t of
- 1:
- set the locH of sprite getAt(getAt(CDXTopMenuList, 2), 2) to getAt(getAt(CDXTopMenuList, 2), 12)
- set the locV of sprite getAt(getAt(CDXTopMenuList, 2), 2) to getAt(getAt(CDXTopMenuList, 2), 13)
- 3:
- set the locH of sprite getAt(getAt(CDXTopMenuList, 4), 2) to getAt(getAt(CDXTopMenuList, 4), 12)
- set the locV of sprite getAt(getAt(CDXTopMenuList, 4), 2) to getAt(getAt(CDXTopMenuList, 4), 13)
- end case
- updateStage()
- end if
- end repeat
- set the castNum of sprite HEADING to the castNum of sprite HEADING - 1
- updateStage()
- end if
- end repeat
- end
-