home *** CD-ROM | disk | FTP | other *** search
- on CDXINPUT
- global CDXWhichInputList, CDXDrpMenuList, CDXVariationList, CDXboxnum, CDXTwoRememberSeltextList, CDXNothingfound
- repeat with t = 1 to count(CDXWhichInputList)
- if rollOver(getAt(getAt(CDXWhichInputList, t), 1)) then
- if getAt(getAt(CDXWhichInputList, t), 2) = 1 then
- set CDXMemnum to the memberNum of sprite getAt(getAt(CDXWhichInputList, t), 1)
- set the memberNum of sprite getAt(getAt(CDXWhichInputList, t), 1) to the memberNum of sprite getAt(getAt(CDXWhichInputList, t), 1) + 1
- updateStage()
- repeat while rollOver(getAt(getAt(CDXWhichInputList, t), 1))
- set thisdropbox to getAt(getAt(CDXWhichInputList, t), 1)
- if the mouseDown then
- if CDXNothingfound = 1 then
- set CDXNothingfound to 0
- set the member of sprite 32 to member "CDXIntroText"
- set the loc of sprite 32 to point(299, 355)
- set the ink of sprite 32 to 36
- end if
- repeat with s = 1 to count(CDXDrpMenuList)
- if getAt(getAt(CDXDrpMenuList, s), 1) = thisdropbox then
- set thismenuList to getAt(CDXDrpMenuList, s)
- exit repeat
- end if
- end repeat
- set the member of sprite getAt(thismenuList, 2) to member getAt(thismenuList, 4)
- set the memberNum of sprite getAt(thismenuList, 3) to the memberNum of sprite getAt(thismenuList, 2) + 1
- set the loc of sprite getAt(thismenuList, 2) to point(getAt(thismenuList, 5), getAt(thismenuList, 6))
- set the loc of sprite getAt(thismenuList, 3) to point(getAt(thismenuList, 5), getAt(thismenuList, 6))
- set the ink of sprite getAt(thismenuList, 2) to 36
- set the ink of sprite getAt(thismenuList, 3) to 0
- updateStage()
- repeat while the mouseDown
- CDXSelectDrop(thismenuList, s)
- end repeat
- set the member of sprite getAt(thismenuList, 2) to member "CDDOT"
- set the member of sprite getAt(thismenuList, 3) to member "CDDOT"
- set the locH of sprite getAt(thismenuList, 2) to 2000
- set the locH of sprite getAt(thismenuList, 3) to 2000
- set the locH of sprite getAt(thismenuList, 10) to 2000
- updateStage()
- CDXWhichInputBoxes(thisdropbox)
- end if
- end repeat
- if the memberNum of sprite getAt(getAt(CDXWhichInputList, t), 1) <> CDXMemnum then
- set the memberNum of sprite getAt(getAt(CDXWhichInputList, t), 1) to the memberNum of sprite getAt(getAt(CDXWhichInputList, t), 1) - 1
- updateStage()
- end if
- next repeat
- end if
- CDXWhichInputBoxes()
- end if
- end repeat
- end
-
- on CDXSelectDrop thismenuList, s, x
- global CDXDrpMenuList, CDXVariationList, CDXwhichLine, CDXWhichInputList
- if rollOver(getAt(thismenuList, 2)) and the mouseDown then
- set BoxDifference to 16
- set the member of sprite getAt(thismenuList, 10) to member getAt(thismenuList, 7)
- set the ink of sprite getAt(thismenuList, 10) to 0
- updateStage()
- repeat while rollOver(getAt(thismenuList, 2)) and the mouseDown
- set whichSprite to the mouseCast
- if (whichSprite = the memberNum of sprite getAt(thismenuList, 2)) and ((the mouseLine <> CDXwhichLine) or (the mouseLine = 1)) then
- set WhichLibTerm to line the mouseLine of field whichSprite
- set CDXwhichLine to the mouseLine
- if CDXwhichLine <> -1 then
- set the locH of sprite getAt(thismenuList, 10) to getAt(thismenuList, 8)
- set the locV of sprite getAt(thismenuList, 10) to getAt(thismenuList, 9) + ((CDXwhichLine - 1) * BoxDifference)
- updateStage()
- end if
- end if
- end repeat
- if rollOver(sprite(getAt(thismenuList, 2))) then
- set WhichLine to the mouseLine
- if field getAt(thismenuList, 12) = EMPTY then
- put line WhichLine of field whichSprite into field getAt(thismenuList, 12)
- updateStage()
- if the machineType > 200 then
- set the textSize of member getAt(thismenuList, 12) to 12
- set the textFont of member getAt(thismenuList, 12) to "Arial"
- set the boxType of member getAt(thismenuList, 12) to #fixed
- set the textStyle of member getAt(thismenuList, 12) to "bold"
- updateStage()
- else
- set the textSize of member getAt(thismenuList, 12) to 12
- set the textFont of member getAt(thismenuList, 12) to "Geneva"
- set the boxType of member getAt(thismenuList, 12) to #fixed
- set the textStyle of member getAt(thismenuList, 12) to "bold"
- updateStage()
- end if
- else
- put line WhichLine of field whichSprite into field getAt(thismenuList, 12)
- end if
- put line 1 of field getAt(thismenuList, 12) into field getAt(thismenuList, 12)
- set the member of sprite getAt(thismenuList, 11) to member getAt(thismenuList, 12)
- set the loc of sprite getAt(thismenuList, 11) to point(getAt(thismenuList, 13), getAt(thismenuList, 14))
- set the ink of sprite getAt(thismenuList, 11) to 36
- set the locH of sprite getAt(thismenuList, 10) to 2000
- if (the member of sprite getAt(thismenuList, 2) = member "DRPINputOne") or (the member of sprite getAt(thismenuList, 2) = member "DRPINputOneB") then
- set the locH of sprite 2 to 2000
- updateStage()
- if (WhichLine = 2) or (WhichLine = 3) or (WhichLine = 4) then
- set nextmenuList to getAt(CDXDrpMenuList, s + 1)
- put line 2 of field "DRPINputTwo" into field getAt(nextmenuList, 12)
- set the member of sprite getAt(nextmenuList, 11) to member getAt(nextmenuList, 12)
- set the loc of sprite getAt(nextmenuList, 11) to point(getAt(nextmenuList, 13), getAt(nextmenuList, 14))
- set the ink of sprite getAt(nextmenuList, 11) to 36
- CDXDrpOrNot(nextmenuList, 0)
- set ThirdmenuList to getAt(CDXDrpMenuList, s + 2)
- CDXDrpOrNot(ThirdmenuList, 1)
- case WhichLine of
- 4:
- setAt(ThirdmenuList, 4, "DRPINputThreeCat")
- setAt(ThirdmenuList, 7, "HiLitThreeCat")
- setAt(ThirdmenuList, 5, 486)
- setAt(ThirdmenuList, 8, 597)
- case getAt(thismenuList, 1) of
- 4:
- setAt(ThirdmenuList, 6, 125)
- setAt(ThirdmenuList, 9, 135)
- 8:
- setAt(ThirdmenuList, 6, 158)
- setAt(ThirdmenuList, 9, 168)
- 12:
- setAt(ThirdmenuList, 6, 170)
- setAt(ThirdmenuList, 9, 180)
- end case
- 3:
- setAt(ThirdmenuList, 4, "DRPINputThreeStat")
- setAt(ThirdmenuList, 7, "HiLitThreeStat")
- setAt(ThirdmenuList, 5, 486)
- setAt(ThirdmenuList, 8, 597)
- case getAt(thismenuList, 1) of
- 4:
- setAt(ThirdmenuList, 6, 125)
- setAt(ThirdmenuList, 9, 135)
- 8:
- setAt(ThirdmenuList, 6, 198)
- setAt(ThirdmenuList, 9, 208)
- 12:
- setAt(ThirdmenuList, 6, 273)
- setAt(ThirdmenuList, 9, 283)
- end case
- 2:
- setAt(ThirdmenuList, 4, "DRPINputThreeIssue")
- setAt(ThirdmenuList, 7, "HiLitThreeIssue")
- setAt(ThirdmenuList, 5, 486)
- setAt(ThirdmenuList, 8, 597)
- case getAt(thismenuList, 1) of
- 4:
- setAt(ThirdmenuList, 6, 125)
- setAt(ThirdmenuList, 9, 135)
- 8:
- setAt(ThirdmenuList, 6, 198)
- setAt(ThirdmenuList, 9, 208)
- 12:
- setAt(ThirdmenuList, 6, 273)
- setAt(ThirdmenuList, 9, 283)
- end case
- end case
- set the editable of member getAt(ThirdmenuList, 12) to 0
- set the member of sprite getAt(ThirdmenuList, 11) to member "CDDOT"
- set the locH of sprite getAt(ThirdmenuList, 11) to 2000
- else
- if (WhichLine = 1) or (WhichLine = 5) then
- set ThirdmenuList to getAt(CDXDrpMenuList, s + 2)
- set the member of sprite getAt(ThirdmenuList, 11) to member getAt(ThirdmenuList, 12)
- put EMPTY into field getAt(ThirdmenuList, 12)
- set the editable of member getAt(ThirdmenuList, 12) to 1
- set the loc of sprite getAt(ThirdmenuList, 11) to point(getAt(ThirdmenuList, 13), getAt(ThirdmenuList, 14))
- set the ink of sprite getAt(ThirdmenuList, 11) to 36
- CDXDrpOrNot(ThirdmenuList, 0)
- if WhichLine = 5 then
- set nextmenuList to getAt(CDXDrpMenuList, s + 1)
- put line 1 of field "DRPINputTwo" into field getAt(nextmenuList, 12)
- set the member of sprite getAt(nextmenuList, 11) to member getAt(nextmenuList, 12)
- set the loc of sprite getAt(nextmenuList, 11) to point(getAt(nextmenuList, 13), getAt(nextmenuList, 14))
- set the ink of sprite getAt(nextmenuList, 11) to 36
- CDXDrpOrNot(nextmenuList, 0)
- else
- set nextmenuList to getAt(CDXDrpMenuList, s + 1)
- CDXDrpOrNot(nextmenuList, 1)
- end if
- end if
- end if
- else
- if the member of sprite getAt(thismenuList, 2) = member "DRPAndOrOne" then
- if (WhichLine = 1) or (WhichLine = 2) then
- if count(CDXWhichInputList) = 4 then
- addAt(CDXWhichInputList, count(CDXWhichInputList) + 1, [8, 1])
- addAt(CDXWhichInputList, count(CDXWhichInputList) + 1, [9, 1])
- addAt(CDXWhichInputList, count(CDXWhichInputList) + 1, [10, 0])
- set the member of sprite 8 to member "CDXInputOneArrow"
- set the member of sprite 9 to member "CDXInputTwoArrow"
- set the member of sprite 10 to member "CDXInputThree"
- else
- if count(CDXWhichInputList) = 8 then
- addAt(CDXWhichInputList, count(CDXWhichInputList) + 1, [12, 1])
- addAt(CDXWhichInputList, count(CDXWhichInputList) + 1, [13, 1])
- addAt(CDXWhichInputList, count(CDXWhichInputList) + 1, [14, 0])
- set the member of sprite 12 to member "CDXInputOneArrow"
- set the member of sprite 13 to member "CDXInputTwoArrow"
- set the member of sprite 14 to member "CDXInputThree"
- else
- if (getAt(thismenuList, 1) = 11) and (count(CDXTwoRememberSeltextList) = 0) then
- set the member of sprite 12 to member "CDXInputOneArrow"
- set the member of sprite 13 to member "CDXInputTwoArrow"
- set the member of sprite 14 to member "CDXInputThree"
- setAt(CDXWhichInputList, 9, [12, 1])
- setAt(CDXWhichInputList, 10, [13, 1])
- setAt(CDXWhichInputList, 11, [14, 0])
- end if
- end if
- end if
- else
- end if
- end if
- end if
- end if
- end if
- end
-
- on CDXDrpOrNot whichList, x
- global CDXWhichInputList
- set thissprite to getAt(whichList, 1)
- set alreadyHere to 0
- repeat with t = 1 to count(CDXWhichInputList)
- if getAt(getAt(CDXWhichInputList, t), 1) = thissprite then
- set alreadyHere to 1
- setAt(getAt(CDXWhichInputList, t), 2, x)
- exit repeat
- end if
- end repeat
- if alreadyHere = 0 then
- addAt(CDXWhichInputList, count(CDXWhichInputList) + 1, [thissprite, x])
- end if
- set Whichnum to the memberNum of sprite thissprite
- if x = 1 then
- case the name of member Whichnum of
- "CDXInputOne":
- set the member of sprite thissprite to member "CDXInputOneArrow"
- "CDXInputTwo":
- set the member of sprite thissprite to member "CDXInputTwoArrow"
- "CDXInputThree":
- set the member of sprite thissprite to member "CDXInputThreeArrow"
- end case
- else
- case the name of member Whichnum of
- "CDXInputOneArrow":
- set the member of sprite thissprite to member "CDXInputOne"
- "CDXInputTwoArrow":
- set the member of sprite thissprite to member "CDXInputTwo"
- "CDXInputThreeArrow":
- set the member of sprite thissprite to member "CDXInputThree"
- end case
- end if
- end
-