home *** CD-ROM | disk | FTP | other *** search
- on RVXINPUT
- global RVXWhichInputList, RVXDrpMenuList, RVXVariationList, RVXboxnum, RVXTwoRememberSeltextList, RVXNothingfound
- repeat with t = 1 to count(RVXWhichInputList)
- if rollOver(getAt(getAt(RVXWhichInputList, t), 1)) then
- if getAt(getAt(RVXWhichInputList, t), 2) = 1 then
- set RVXMemnum to the memberNum of sprite getAt(getAt(RVXWhichInputList, t), 1)
- set the memberNum of sprite getAt(getAt(RVXWhichInputList, t), 1) to the memberNum of sprite getAt(getAt(RVXWhichInputList, t), 1) + 1
- updateStage()
- repeat while rollOver(getAt(getAt(RVXWhichInputList, t), 1))
- set thisdropbox to getAt(getAt(RVXWhichInputList, t), 1)
- if the mouseDown then
- if RVXNothingfound = 1 then
- set RVXNothingfound to 0
- set the member of sprite 32 to member "RVXIntroText"
- 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(RVXDrpMenuList)
- if getAt(getAt(RVXDrpMenuList, s), 1) = thisdropbox then
- set thismenuList to getAt(RVXDrpMenuList, 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
- RVXSelectDrop(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()
- RVXWhichInputBoxes(thisdropbox)
- end if
- end repeat
- if the memberNum of sprite getAt(getAt(RVXWhichInputList, t), 1) <> RVXMemnum then
- set the memberNum of sprite getAt(getAt(RVXWhichInputList, t), 1) to the memberNum of sprite getAt(getAt(RVXWhichInputList, t), 1) - 1
- updateStage()
- end if
- next repeat
- end if
- RVXWhichInputBoxes()
- end if
- end repeat
- end
-
- on RVXSelectDrop thismenuList, s, x
- global RVXDrpMenuList, RVXVariationList, RVXwhichLine, RVXWhichInputList
- 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 <> RVXwhichLine) or (the mouseLine = 1)) then
- set WhichLibTerm to line the mouseLine of field whichSprite
- set RVXwhichLine to the mouseLine
- if RVXwhichLine <> -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) + ((RVXwhichLine - 1) * BoxDifference)
- updateStage()
- end if
- end if
- end repeat
- if rollOver(sprite(getAt(thismenuList, 2))) then
- set WhichLine to the mouseLine
- put line WhichLine of field whichSprite into field getAt(thismenuList, 12)
- updateStage()
- if the machineType > 200 then
- set the boxType of member getAt(thismenuList, 12) to #adjust
- updateStage()
- set the textSize of member getAt(thismenuList, 12) to 12
- set the textStyle of member getAt(thismenuList, 12) to "bold"
- set the textFont of member getAt(thismenuList, 12) to "Arial"
- 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
- 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" then
- set the locH of sprite 2 to 2000
- updateStage()
- if WhichLine = 3 then
- set nextmenuList to getAt(RVXDrpMenuList, 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
- RVXDrpOrNot(nextmenuList, 0)
- set ThirdmenuList to getAt(RVXDrpMenuList, s + 2)
- RVXDrpOrNot(ThirdmenuList, 1)
- 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 = 2) then
- set ThirdmenuList to getAt(RVXDrpMenuList, 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
- RVXDrpOrNot(ThirdmenuList, 0)
- set nextmenuList to getAt(RVXDrpMenuList, s + 1)
- RVXDrpOrNot(nextmenuList, 1)
- 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(RVXWhichInputList) = 4 then
- addAt(RVXWhichInputList, count(RVXWhichInputList) + 1, [8, 1])
- addAt(RVXWhichInputList, count(RVXWhichInputList) + 1, [9, 1])
- addAt(RVXWhichInputList, count(RVXWhichInputList) + 1, [10, 0])
- set the member of sprite 8 to member "RVXInputOneArrow"
- set the member of sprite 9 to member "RVXInputTwoArrow"
- set the member of sprite 10 to member "RVXInputThree"
- else
- if count(RVXWhichInputList) = 8 then
- addAt(RVXWhichInputList, count(RVXWhichInputList) + 1, [12, 1])
- addAt(RVXWhichInputList, count(RVXWhichInputList) + 1, [13, 1])
- addAt(RVXWhichInputList, count(RVXWhichInputList) + 1, [14, 0])
- set the member of sprite 12 to member "RVXInputOneArrow"
- set the member of sprite 13 to member "RVXInputTwoArrow"
- set the member of sprite 14 to member "RVXInputThree"
- else
- if (getAt(thismenuList, 1) = 11) and (count(RVXTwoRememberSeltextList) = 0) then
- set the member of sprite 12 to member "RVXInputOneArrow"
- set the member of sprite 13 to member "RVXInputTwoArrow"
- set the member of sprite 14 to member "RVXInputThree"
- setAt(RVXWhichInputList, 9, [12, 1])
- setAt(RVXWhichInputList, 10, [13, 1])
- setAt(RVXWhichInputList, 11, [14, 0])
- end if
- end if
- end if
- else
- end if
- end if
- end if
- end if
- end if
- end
-
- on RVXDrpOrNot whichList, x
- global RVXWhichInputList
- set thissprite to getAt(whichList, 1)
- set alreadyHere to 0
- repeat with t = 1 to count(RVXWhichInputList)
- if getAt(getAt(RVXWhichInputList, t), 1) = thissprite then
- set alreadyHere to 1
- setAt(getAt(RVXWhichInputList, t), 2, x)
- exit repeat
- end if
- end repeat
- if alreadyHere = 0 then
- addAt(RVXWhichInputList, count(RVXWhichInputList) + 1, [thissprite, x])
- end if
- set Whichnum to the memberNum of sprite thissprite
- if x = 1 then
- case the name of member Whichnum of
- "RVXInputOne":
- set the member of sprite thissprite to member "RVXInputOneArrow"
- "RVXInputTwo":
- set the member of sprite thissprite to member "RVXInputTwoArrow"
- "RVXInputThree":
- set the member of sprite thissprite to member "RVXInputThreeArrow"
- end case
- else
- case the name of member Whichnum of
- "RVXInputOneArrow":
- set the member of sprite thissprite to member "RVXInputOne"
- "RVXInputTwoArrow":
- set the member of sprite thissprite to member "RVXInputTwo"
- "RVXInputThreeArrow":
- set the member of sprite thissprite to member "RVXInputThree"
- end case
- end if
- end
-