global WhichInxTopMenuList, CDXDrpMenu, CDXLeaveThis, CDXLastResSprite, CDXFirstResSprite, CDXDuringSearch, CDXHelpOnStage
repeat with t = 1 to count(WhichInxTopMenuList)
set heading to getAt(getAt(WhichInxTopMenuList, 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(WhichInxTopMenuList, t), 2) to -1
set the locH of sprite getAt(getAt(WhichInxTopMenuList, 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(WhichInxTopMenuList, 2), 12, the locH of sprite getAt(getAt(WhichInxTopMenuList, 2), 2))
setAt(getAt(WhichInxTopMenuList, 2), 13, the locV of sprite getAt(getAt(WhichInxTopMenuList, 2), 2))
set the locH of sprite getAt(getAt(WhichInxTopMenuList, 2), 2) to 2000
3:
setAt(getAt(WhichInxTopMenuList, 4), 12, the locH of sprite getAt(getAt(WhichInxTopMenuList, 4), 2))
setAt(getAt(WhichInxTopMenuList, 4), 13, the locV of sprite getAt(getAt(WhichInxTopMenuList, 4), 2))
set the locH of sprite getAt(getAt(WhichInxTopMenuList, 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(WhichInxTopMenuList, t), 3)
set the loc of sprite CDXDrpMenu to point(getAt(getAt(WhichInxTopMenuList, t), 7), getAt(getAt(WhichInxTopMenuList, t), 8))
updateStage()
repeat while the mouseDown
repeat with s = 1 to count(WhichInxTopMenuList)
set HEADINGTwo to getAt(getAt(WhichInxTopMenuList, 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(WhichInxTopMenuList, t), 2) to the number of member getAt(getAt(WhichInxTopMenuList, t), 4)
repeat with d = 2 to the number of lines in field the number of member getAt(getAt(WhichInxTopMenuList, t), 4)
put EMPTY into line d of field the number of member getAt(getAt(WhichInxTopMenuList, t), 4)
end repeat
set the loc of sprite getAt(getAt(WhichInxTopMenuList, t), 2) to point(getAt(getAt(WhichInxTopMenuList, t), 5), getAt(getAt(WhichInxTopMenuList, t), 6))
case t of
1:
set the locH of sprite getAt(getAt(WhichInxTopMenuList, 2), 2) to getAt(getAt(WhichInxTopMenuList, 2), 12)
set the locV of sprite getAt(getAt(WhichInxTopMenuList, 2), 2) to getAt(getAt(WhichInxTopMenuList, 2), 13)
3:
set the locH of sprite getAt(getAt(WhichInxTopMenuList, 4), 2) to getAt(getAt(WhichInxTopMenuList, 4), 12)
set the locV of sprite getAt(getAt(WhichInxTopMenuList, 4), 2) to getAt(getAt(WhichInxTopMenuList, 4), 13)
end case
updateStage()
end if
end repeat
set the castNum of sprite heading to the castNum of sprite heading - 1