home *** CD-ROM | disk | FTP | other *** search
/ Painter Bear's Language Bridge — Italian / Bridge_ponte_itialian.iso / pc / helpers / open.dxr / 00011_transitions.ls < prev    next >
Encoding:
Text File  |  2001-02-22  |  8.3 KB  |  290 lines

  1. on prepChooser
  2.   global gLangSelect, gLangDirect, gWdTag, gPhsTag, gScorePermit, gScorePeep
  3.   cursor(4)
  4.   go("chooser")
  5.   doMusicBtn()
  6.   unloadMember()
  7.   if gLangDirect <> 1 then
  8.     set the memberNum of sprite gWdTag to the number of member (gLangSelect & " wordstitle")
  9.     set the memberNum of sprite gPhsTag to the number of member (gLangSelect & " phrasestitle")
  10.   else
  11.     set the memberNum of sprite gWdTag to the number of member "e wordstitle"
  12.     set the memberNum of sprite gPhsTag to the number of member "e phrasestitle"
  13.   end if
  14.   if gScorePermit <> 1 then
  15.     set the memberNum of sprite gScorePeep to the number of member "score gray"
  16.   end if
  17.   updateStage()
  18.   cursor(-1)
  19. end
  20.  
  21. on prepTracking
  22.   global gLangSelect, gLangDirect
  23.   cursor(4)
  24.   go("quit")
  25.   unloadMember()
  26.   if gLangDirect <> 1 then
  27.     set the memberNum of sprite 1 to the number of member (gLangSelect & " tracking")
  28.     set the memberNum of sprite 2 to the number of member (gLangSelect & " save")
  29.     set the memberNum of sprite 3 to the number of member (gLangSelect & " exit")
  30.     set the memberNum of sprite 4 to the number of member (gLangSelect & " print")
  31.   else
  32.     set the memberNum of sprite 1 to the number of member "e tracking"
  33.     set the memberNum of sprite 2 to the number of member "e save"
  34.     set the memberNum of sprite 3 to the number of member "e exit"
  35.     set the memberNum of sprite 4 to the number of member "e print"
  36.   end if
  37.   cursor(-1)
  38. end
  39.  
  40. on leaveScreen whichScreen
  41.   global gCurrSndList, gCurrAnimaList, gBridgeParts
  42.   cursor(4)
  43.   sound stop 1
  44.   if gCurrSndList <> [] then
  45.     clearSndList()
  46.   end if
  47.   if gCurrAnimaList <> [] then
  48.     clearAnimalist()
  49.   end if
  50.   case whichScreen of
  51.     "quiz":
  52.       TrackChangeGame()
  53.       prepChooser()
  54.     "race":
  55.       sound stop 1
  56.       sound stop 2
  57.       TrackChangeGame()
  58.       prepChooser()
  59.     "chooser":
  60.       popUp("quit", "y/n")
  61.     "score":
  62.       prepChooser()
  63.     "bridge":
  64.       if gBridgeParts = 10 then
  65.         TrackChangeGame()
  66.         prepChooser()
  67.       else
  68.         returnFromBridgeToQuiz()
  69.       end if
  70.     "gallery":
  71.       prepChooser()
  72.       leaveGallery()
  73.     "fullPaint":
  74.       prepGallery()
  75.     "find":
  76.       put EMPTY into field "possWords"
  77.       put EMPTY into field "wordFound"
  78.       put EMPTY into field "wordFind"
  79.       prepChooser()
  80.   end case
  81.   unloadMember(member "fart1", "click13")
  82.   unloadMember()
  83.   cursor(-1)
  84. end
  85.  
  86. on goToHighScoreScreen btnOrExit
  87.   global gBootyHome, gCoverSprite, gCoverTimer, gCurrInit, gFstPopInit, gLangSelect, gLangDirect, gTypeTag, gLstPopSpt, gBackBtn, gScoreTitle, gFirstPopSpt, gPopped
  88.   cursor(4)
  89.   set the visible of sprite gCoverSprite to 1
  90.   set gPopped to 1
  91.   sound stop 1
  92.   updateStage()
  93.   go("score")
  94.   doMusicBtn()
  95.   if gLangDirect <> 1 then
  96.     set the memberNum of sprite gFirstPopSpt to the number of member (gLangSelect & " keyboard")
  97.     set the memberNum of sprite gScoreTitle to the number of member (gLangSelect & " typeTag")
  98.   else
  99.     set the memberNum of sprite gScoreTitle to the number of member "e typeTag"
  100.     set the memberNum of sprite gFirstPopSpt to the number of member "e keyboard"
  101.   end if
  102.   case btnOrExit of
  103.     "0":
  104.       clearTypeWriter(btnOrExit)
  105.     "1":
  106.       set the memberNum of sprite gBackBtn to the number of member "quit gray"
  107.       set shouldIUpdate to 0
  108.       set shouldIUpdate to compareHighScores()
  109.       if shouldIUpdate <> 1 then
  110.         clearTypeWriter("0")
  111.       else
  112.         set gCurrInit to gFstPopInit
  113.         set gThisName to EMPTY
  114.       end if
  115.   end case
  116.   updateStage()
  117.   cursor(-1)
  118.   set the visible of sprite gCoverSprite to 0
  119. end
  120.  
  121. on clearTypeWriter whichWay
  122.   global gPopUp, gFirstPopSpt, gLstPopSpt, gFstPopInit, gLstPopInit, gThisName, gWhichPop, gTypeTag, gBackBtn, gPopped
  123.   case whichWay of
  124.     "1":
  125.       Update_High_Score(gThisName)
  126.       saveHighScore()
  127.     "0":
  128.   end case
  129.   prepHighScoreScreen()
  130.   updateStage()
  131.   repeat with X = gFirstPopSpt to gTypeTag
  132.     set the locH of sprite X to the locH of sprite X - 672
  133.   end repeat
  134.   set foo to the name of member the memberNum of sprite gBackBtn of castLib "shared"
  135.   put "up" into word 2 of foo
  136.   set the memberNum of sprite gBackBtn to the number of member foo of castLib "shared"
  137.   set gPopped to 0
  138. end
  139.  
  140. on viewBridge
  141.   clearSndList()
  142.   clearAnimalist()
  143.   prepBridge()
  144. end
  145.  
  146. on prepBridge
  147.   global gBridgeParts, gWhichBridge, gBear, gPopBox, gPopped, gLangSelect, gLangDirect, gBackBtn
  148.   cursor(4)
  149.   sound stop 1
  150.   go("bridge")
  151.   set the memberNum of sprite 1 to the number of member (gWhichBridge & " bridge " & gBridgeParts + 1)
  152.   case gBridgeParts of
  153.     "0":
  154.       set h to 90
  155.       set v to 0
  156.     "1":
  157.       set h to 150
  158.       set v to 0
  159.     "2":
  160.       set h to 365
  161.       set v to 0
  162.     "3":
  163.       set h to 520
  164.       set v to 0
  165.     "4":
  166.       set h to 520
  167.       set v to 160
  168.     "5":
  169.       set h to 320
  170.       set v to 160
  171.     "6":
  172.       set h to 200
  173.       set v to 160
  174.     "7":
  175.       set h to 104
  176.       set v to 160
  177.     "8":
  178.       set h to 300
  179.       set v to 240
  180.     "9":
  181.       set h to 540
  182.       set v to 240
  183.     "10":
  184.       set h to 320
  185.       set v to 200
  186.       set popH to 320
  187.       set popV to 85
  188.       if gLangDirect = 1 then
  189.         set the memberNum of sprite gPopBox to the number of member "e drive sign"
  190.       else
  191.         set the memberNum of sprite gPopBox to the number of member (gLangSelect & " drive sign")
  192.       end if
  193.       updateStage()
  194.       set the loc of sprite gPopBox to point(popH, popV)
  195.       set the loc of sprite (gPopBox + 1) to point(popH - 163, popV + 28)
  196.       set the loc of sprite (gPopBox + 2) to point(popH + 174, popV + 27)
  197.       set gPopped to 1
  198.       set the memberNum of sprite gBackBtn to the number of member "back gray"
  199.   end case
  200.   set the loc of sprite gBear to point(h, v)
  201.   cursor(-1)
  202. end
  203.  
  204. on returnFromBridgeToQuiz
  205.   global gBridgeMonitor, gBridgeParts, gQuestion, gStampSpt, gAnswerLst, gClickNote, gAnswered
  206.   cursor(4)
  207.   sound stop 1
  208.   go("quiz")
  209.   doMusicBtn()
  210.   set the memberNum of sprite gBridgeMonitor to the number of member ("bridge " & gBridgeParts)
  211.   set text to gQuestion
  212.   set letterLst to []
  213.   setboxSize("questBox")
  214.   set letterLst to countAndCenterText(text, "whi", "center")
  215.   stampOutTxt(letterLst, gStampSpt, "1")
  216.   repeat with X = 1 to 4
  217.     set text to getAt(gAnswerLst, X)
  218.     set letterLst to []
  219.     setboxSize("ans" & X)
  220.     set letterLst to countAndCenterText(text, "whi", "center")
  221.     stampOutTxt(letterLst, gStampSpt, "1")
  222.   end repeat
  223.   if gAnswered = 1 then
  224.     set the memberNum of sprite gClickNote to the number of member "click up"
  225.   end if
  226.   cursor(-1)
  227. end
  228.  
  229. on prepGallery
  230.   global gFullPaint, gBridgeLst, gFstBridgePic, gGalleryText, gLangDirect, gLangSelect
  231.   puppetSprite(gFullPaint, 1)
  232.   set the visible of sprite gFullPaint to 0
  233.   sound stop 1
  234.   go("gallery")
  235.   if count(gBridgeLst) <> 0 then
  236.     sort(gBridgeLst)
  237.     repeat with X = 1 to count(gBridgeLst)
  238.       set whichBridge to getAt(gBridgeLst, X)
  239.       set whichSprite to gFstBridgePic + value(whichBridge) - 1
  240.       set the memberNum of sprite whichSprite to the number of member ("painting " & whichBridge & " up")
  241.     end repeat
  242.     if gLangDirect = 1 then
  243.       set the memberNum of sprite gGalleryText to the number of member "e galleryword 2"
  244.     else
  245.       set the memberNum of sprite gGalleryText to the number of member (gLangSelect & " galleryword 1")
  246.     end if
  247.   else
  248.     if gLangDirect = 1 then
  249.       set the memberNum of sprite gGalleryText to the number of member "e galleryword 2"
  250.     else
  251.       set the memberNum of sprite gGalleryText to the number of member (gLangSelect & " galleryword 2")
  252.     end if
  253.   end if
  254. end
  255.  
  256. on leaveFullPaint
  257.   global gFullPaint
  258. end
  259.  
  260. on leaveGallery
  261.   global gFullPaint
  262. end
  263.  
  264. on viewPainting whichBtn
  265.   global gFullPaint
  266.   sound stop 1
  267.   puppetSprite(gFullPaint, 1)
  268.   set the visible of sprite gFullPaint to 0
  269.   set foo to the name of member the memberNum of sprite whichBtn of castLib "gallery"
  270.   put "close" into word 3 of foo
  271.   go("fullPaint")
  272.   set the memberNum of sprite gFullPaint to the number of member foo
  273.   updateStage()
  274.   set the visible of sprite gFullPaint to 1
  275.   puppetSprite(gFullPaint, 0)
  276. end
  277.  
  278. on prepCloser
  279.   global gLangDirect, gLangSelect
  280.   cursor(4)
  281.   go("closer")
  282.   if gLangDirect = 1 then
  283.     set the memberNum of sprite 1 to the number of member ("e " & gLangSelect & " credits")
  284.   else
  285.     set the memberNum of sprite 1 to the number of member (gLangSelect & " e credits")
  286.   end if
  287.   updateStage()
  288.   cursor(-1)
  289. end
  290.