home *** CD-ROM | disk | FTP | other *** search
- on GESSelectPrinter whichPrinter
- global GESPrintDotList, GESPrintLaserList, GESPrintInktList, GESWhichPrinterChosen, GESPrinterTextList
- case whichPrinter of
- 4:
- set GESWhichPrinterChosen to 1
- repeat with d = 1 to count(GESPrinterTextList)
- set TemPList to getAt(GESPrinterTextList, d)
- repeat with z = 2 to count(TemPList)
- if getAt(getAt(TemPList, z), 3) = 1 then
- set tempTwoList to getAt(getAt(TemPList, z), 4)
- set the castNum of sprite getAt(tempTwoList, 1) to getAt(tempTwoList, 2)
- end if
- end repeat
- end repeat
- repeat with d = 1 to count(GESPrintDotList)
- set the castNum of sprite getAt(getAt(GESPrintDotList, d), 1) to getAt(getAt(GESPrintDotList, d), 2)
- set the loc of sprite getAt(getAt(GESPrintDotList, d), 1) to point(getAt(getAt(GESPrintDotList, d), 3), getAt(getAt(GESPrintDotList, d), 4))
- set the ink of sprite getAt(getAt(GESPrintDotList, d), 1) to getAt(getAt(GESPrintDotList, d), 5)
- updateStage()
- end repeat
- 5:
- repeat with d = 1 to count(GESPrinterTextList)
- set TemPList to getAt(GESPrinterTextList, d)
- repeat with z = 2 to count(TemPList)
- if getAt(getAt(TemPList, z), 3) = 1 then
- set tempTwoList to getAt(getAt(TemPList, z), 4)
- set the castNum of sprite getAt(tempTwoList, 1) to getAt(tempTwoList, 6)
- end if
- end repeat
- end repeat
- repeat with d = 1 to count(GESPrintInktList)
- set the castNum of sprite getAt(getAt(GESPrintInktList, d), 1) to getAt(getAt(GESPrintInktList, d), 2)
- set the loc of sprite getAt(getAt(GESPrintInktList, d), 1) to point(getAt(getAt(GESPrintInktList, d), 3), getAt(getAt(GESPrintInktList, d), 4))
- set the ink of sprite getAt(getAt(GESPrintInktList, d), 1) to getAt(getAt(GESPrintInktList, d), 5)
- updateStage()
- end repeat
- set GESWhichPrinterChosen to 2
- 6:
- repeat with d = 1 to count(GESPrinterTextList)
- set TemPList to getAt(GESPrinterTextList, d)
- repeat with z = 2 to count(TemPList)
- if getAt(getAt(TemPList, z), 3) = 1 then
- set tempTwoList to getAt(getAt(TemPList, z), 4)
- set the castNum of sprite getAt(tempTwoList, 1) to getAt(tempTwoList, 7)
- end if
- end repeat
- end repeat
- repeat with d = 1 to count(GESPrintLaserList)
- set the castNum of sprite getAt(getAt(GESPrintLaserList, d), 1) to getAt(getAt(GESPrintLaserList, d), 2)
- set the loc of sprite getAt(getAt(GESPrintLaserList, d), 1) to point(getAt(getAt(GESPrintLaserList, d), 3), getAt(getAt(GESPrintLaserList, d), 4))
- set the ink of sprite getAt(getAt(GESPrintLaserList, d), 1) to getAt(getAt(GESPrintLaserList, d), 5)
- updateStage()
- end repeat
- set GESWhichPrinterChosen to 3
- end case
- end
-