home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / hypercar / fun / hyperhoo.sit / HyperHoop™ / background_2742.txt < prev    next >
Encoding:
Text File  |  1989-10-03  |  24.7 KB  |  1,091 lines

  1. -- background: 2742 from stack: in
  2. -- bmap block id: 3210
  3. -- flags: 4000
  4. -- background id: 0
  5. -- name: ScoreCard
  6. ----- HyperTalk script -----
  7.  
  8. on addit howmuch,whichline,field1,field2,field3,field4
  9.   set cursor to watch
  10.   put param(1) into howmuch
  11.   put param(2) into whichline
  12.   put param(3) into field1
  13.   put param(4) into field2
  14.   put param(5) into field3
  15.   put param(6) into field4
  16.   add howmuch to line whichline of bg field field1
  17.  
  18.   if field2 is not empty then add howmuch to line whichline of bg field field2
  19.  
  20.   if field3 is not empty then add howmuch to line whichline of bg field field3
  21.  
  22.   if field4 is not empty then add howmuch to line whichline of bg field field4
  23.  
  24. end addit
  25.  
  26.  
  27.  
  28. -- part 1 (button)
  29. -- low flags: 00
  30. -- high flags: A000
  31. -- rect: left=463 top=300 right=340 bottom=512
  32. -- title width / last selected line: 0
  33. -- icon id / first selected line: 15972 / 15972
  34. -- text alignment: 1
  35. -- font id: 0
  36. -- text size: 12
  37. -- style flags: 0
  38. -- line height: 16
  39. -- part name: Game Info
  40. ----- HyperTalk script -----
  41. on mouseUp
  42.   visual iris open
  43.   push card
  44.   go to card id 4549
  45. end mouseUp
  46.  
  47.  
  48.  
  49. -- part 4 (field)
  50. -- low flags: 01
  51. -- high flags: 0000
  52. -- rect: left=36 top=31 right=44 bottom=118
  53. -- title width / last selected line: 0
  54. -- icon id / first selected line: 0 / 0
  55. -- text alignment: 0
  56. -- font id: 3
  57. -- text size: 9
  58. -- style flags: 256
  59. -- line height: 12
  60. -- part name: Team
  61. ----- HyperTalk script -----
  62. on mouseup
  63.   global thisTeam, theOtherTeam
  64.   ask "Enter the team name." with me
  65.   if it is not empty then
  66.     put it into me
  67.     put "ΓÇó"&& it into line thisTeam of fld "Teams"
  68.     put "┬á"&& it into line thisTeam of fld "Teams" of cd theOtherTeam
  69.     set the name of cd button id 1 of cd theOtherTeam to it
  70.   end if
  71. end mouseup
  72.  
  73.  
  74. -- part 5 (field)
  75. -- low flags: 00
  76. -- high flags: 4002
  77. -- rect: left=19 top=44 right=188 bottom=118
  78. -- title width / last selected line: 0
  79. -- icon id / first selected line: 0 / 0
  80. -- text alignment: 0
  81. -- font id: 3
  82. -- text size: 9
  83. -- style flags: 0
  84. -- line height: 12
  85. -- part name: Players
  86.  
  87.  
  88. -- part 25 (field)
  89. -- low flags: 01
  90. -- high flags: 0000
  91. -- rect: left=67 top=264 right=295 bottom=189
  92. -- title width / last selected line: 0
  93. -- icon id / first selected line: 0 / 0
  94. -- text alignment: 0
  95. -- font id: 3
  96. -- text size: 12
  97. -- style flags: 256
  98. -- line height: 16
  99. -- part name: Teams
  100.  
  101.  
  102. -- part 6 (field)
  103. -- low flags: 00
  104. -- high flags: 0000
  105. -- rect: left=118 top=44 right=201 bottom=142
  106. -- title width / last selected line: 0
  107. -- icon id / first selected line: 0 / 0
  108. -- text alignment: 65535
  109. -- font id: 3
  110. -- text size: 9
  111. -- style flags: 0
  112. -- line height: 12
  113. -- part name: Minutes
  114.  
  115.  
  116. -- part 7 (field)
  117. -- low flags: 01
  118. -- high flags: 0000
  119. -- rect: left=142 top=44 right=201 bottom=166
  120. -- title width / last selected line: 0
  121. -- icon id / first selected line: 0 / 0
  122. -- text alignment: 65535
  123. -- font id: 3
  124. -- text size: 9
  125. -- style flags: 0
  126. -- line height: 12
  127. -- part name: FGM
  128. ----- HyperTalk script -----
  129. on mouseUp
  130.   global qfield,thisTeam,theOtherTeam
  131.   put lineclicked() into Player
  132.   if player > 12 then
  133.     beep
  134.     put 12 into player
  135.   end if
  136.  
  137.   if the ShiftKey is down then
  138.     addit -1,player,FGM,FGA
  139.     addit -2,player,Pts
  140.     addit -1,13,FGM,FGA    -- line 13 is the "totals" line
  141.     addit -2,13,Pts        -- line 13 is the "totals" line
  142.     addit -2,thisTeam,qfield,TotalScore
  143.   else
  144.     addit 1,player,FGM,FGA
  145.     addit 2,player,Pts
  146.     addit 1,13,FGM,FGA    -- line 13 is the "totals" line
  147.     addit 2,13,Pts        -- line 13 is the "totals" line
  148.     addit 2,thisTeam,qfield,TotalScore
  149.   end if
  150.  
  151.   -- figure out shooting precentage
  152.   put line 13 of field "FGM" into divisor
  153.   put line 13 of field "FGA" into dividend
  154.   put round(divisor/dividend*1000)/10 into percentage
  155.   put percentage into field "FG%"
  156. end mouseup
  157.  
  158.  
  159.  
  160.  
  161. -- part 8 (field)
  162. -- low flags: 01
  163. -- high flags: 0000
  164. -- rect: left=165 top=44 right=201 bottom=189
  165. -- title width / last selected line: 0
  166. -- icon id / first selected line: 0 / 0
  167. -- text alignment: 65535
  168. -- font id: 3
  169. -- text size: 9
  170. -- style flags: 0
  171. -- line height: 12
  172. -- part name: FGA
  173. ----- HyperTalk script -----
  174. on mouseUp
  175.   put lineclicked() into Player
  176.   if player > 12 then
  177.     beep
  178.     put 12 into player
  179.   end if
  180.  
  181.   if the ShiftKey is down then
  182.     addit -1,player,FGA
  183.     addit -1,13,FGA    -- line 13 is the "totals" line
  184.   else
  185.     addit 1,player,FGA
  186.     addit 1,13,FGA    -- line 13 is the "totals" line
  187.   end if
  188.  
  189.   -- figure out shooting precentage
  190.   put line 13 of field "FGM" into divisor
  191.   put line 13 of field "FGA" into dividend
  192.   put round(divisor/dividend*1000)/10 into percentage
  193.   put percentage into field "FG%"
  194. end mouseup
  195.  
  196.  
  197.  
  198.  
  199. -- part 9 (field)
  200. -- low flags: 01
  201. -- high flags: 0000
  202. -- rect: left=189 top=44 right=201 bottom=213
  203. -- title width / last selected line: 0
  204. -- icon id / first selected line: 0 / 0
  205. -- text alignment: 65535
  206. -- font id: 3
  207. -- text size: 9
  208. -- style flags: 0
  209. -- line height: 12
  210. -- part name: FG3M
  211. ----- HyperTalk script -----
  212. on mouseUp
  213.   global qfield,thisTeam,theOtherTeam
  214.   put lineclicked() into Player
  215.   if player > 12 then
  216.     beep
  217.     put 12 into player
  218.   end if
  219.  
  220.   if the ShiftKey is down then
  221.     addit -1,player,FG3M,FG3A
  222.     addit -3,player,Pts
  223.     addit -1,13,FG3M,FG3A    -- line 13 is the "totals" line
  224.     addit -3,13,Pts        -- line 13 is the "totals" line
  225.     addit -3,thisteam,qfield,TotalScore
  226.   else
  227.     addit 1,player,FG3M,FG3A
  228.     addit 3,player,Pts
  229.     addit 1,13,FG3M,FG3A    -- line 13 is the "totals" line
  230.     addit 3,13,Pts        -- line 13 is the "totals" line
  231.     addit 3,thisteam,qfield,TotalScore
  232.   end if
  233.  
  234.   -- figure out shooting precentage
  235.   put line 13 of field "FG3M" into divisor
  236.   put line 13 of field "FG3A" into dividend
  237.   put round(divisor/dividend*1000)/10 into percentage
  238.   put percentage into field "FG3%"
  239.  
  240. end mouseup
  241.  
  242.  
  243.  
  244.  
  245. -- part 10 (field)
  246. -- low flags: 01
  247. -- high flags: 0000
  248. -- rect: left=212 top=44 right=201 bottom=236
  249. -- title width / last selected line: 0
  250. -- icon id / first selected line: 0 / 0
  251. -- text alignment: 65535
  252. -- font id: 3
  253. -- text size: 9
  254. -- style flags: 0
  255. -- line height: 12
  256. -- part name: FG3A
  257. ----- HyperTalk script -----
  258. on mouseUp
  259.   put lineclicked() into Player
  260.   if player > 12 then
  261.     beep
  262.     put 12 into player
  263.   end if
  264.  
  265.   if the ShiftKey is down then
  266.     addit -1,player,FG3A
  267.     addit -1,13,FG3A    -- line 13 is the "totals" line
  268.   else
  269.     addit 1,player,FG3A
  270.     addit 1,13,FG3A    -- line 13 is the "totals" line
  271.   end if
  272.  
  273.  
  274.   -- figure out shooting precentage
  275.   put line 13 of field "FG3M" into divisor
  276.   put line 13 of field "FG3A" into dividend
  277.   put round(divisor/dividend*1000)/10 into percentage
  278.   put percentage into field "FG3%"
  279.  
  280. end mouseup
  281.  
  282.  
  283.  
  284.  
  285. -- part 11 (field)
  286. -- low flags: 01
  287. -- high flags: 0000
  288. -- rect: left=236 top=44 right=201 bottom=260
  289. -- title width / last selected line: 0
  290. -- icon id / first selected line: 0 / 0
  291. -- text alignment: 65535
  292. -- font id: 3
  293. -- text size: 9
  294. -- style flags: 0
  295. -- line height: 12
  296. -- part name: FTM
  297. ----- HyperTalk script -----
  298. on mouseUp
  299.   global qfield,thisTeam,theOtherTeam
  300.   put lineclicked() into Player
  301.   if player > 12 then
  302.     beep
  303.     put 12 into player
  304.   end if
  305.  
  306.   if the ShiftKey is down then
  307.     addit -1,player,FTM,FTA,PTs
  308.     addit -1,13,FTM,FTA,pts    -- line 13 is the "totals" line
  309.     addit -1,thisTeam,qfield,TotalScore
  310.   else
  311.     addit 1,player,FTM,FTA,PTs
  312.     addit 1,13,FTM,FTA,pts    -- line 13 is the "totals" line
  313.     addit 1,thisTeam,qfield,TotalScore
  314.   end if
  315.  
  316.  
  317.   -- figure out shooting precentage
  318.   put line 13 of field "FTM" into divisor
  319.   put line 13 of field "FTA" into dividend
  320.   put round(divisor/dividend*1000)/10 into percentage
  321.   put percentage into field "FT%"
  322.  
  323. end mouseup
  324.  
  325.  
  326.  
  327.  
  328. -- part 12 (field)
  329. -- low flags: 01
  330. -- high flags: 0000
  331. -- rect: left=259 top=44 right=201 bottom=283
  332. -- title width / last selected line: 0
  333. -- icon id / first selected line: 0 / 0
  334. -- text alignment: 65535
  335. -- font id: 3
  336. -- text size: 9
  337. -- style flags: 0
  338. -- line height: 12
  339. -- part name: FTA
  340. ----- HyperTalk script -----
  341. on mouseUp
  342.   put lineclicked() into Player
  343.   if player > 12 then
  344.     beep
  345.     put 12 into player
  346.   end if
  347.  
  348.   if the ShiftKey is down then
  349.     addit -1,player,FTA
  350.     addit -1,13,FTA    -- line 13 is the "totals" line
  351.   else
  352.     addit 1,player,FTA
  353.     addit 1,13,FTA   -- line 13 is the "totals" line
  354.   end if
  355.  
  356.  
  357.   -- figure out shooting precentage
  358.   put line 13 of field "FTM" into divisor
  359.   put line 13 of field "FTA" into dividend
  360.   put round(divisor/dividend*1000)/10 into percentage
  361.   put percentage into field "FT%"
  362.  
  363. end mouseup
  364.  
  365.  
  366.  
  367.  
  368. -- part 13 (field)
  369. -- low flags: 01
  370. -- high flags: 0000
  371. -- rect: left=283 top=44 right=201 bottom=307
  372. -- title width / last selected line: 0
  373. -- icon id / first selected line: 0 / 0
  374. -- text alignment: 65535
  375. -- font id: 3
  376. -- text size: 9
  377. -- style flags: 0
  378. -- line height: 12
  379. -- part name: OffReb
  380. ----- HyperTalk script -----
  381. on mouseUp
  382.   put lineclicked() into Player
  383.   if player > 12 then
  384.     beep
  385.     put 12 into player
  386.   end if
  387.  
  388.   if the ShiftKey is down then
  389.     addit -1,player,OffReb,TotReb
  390.     addit -1,13,OffReb,TotReb    -- line 13 is the "totals" line
  391.   else
  392.     addit 1,player,OffReb,TotReb
  393.     addit 1,13,OffReb,TotReb    -- line 13 is the "totals" line
  394.   end if
  395.  
  396. end mouseup
  397.  
  398.  
  399.  
  400.  
  401. -- part 14 (field)
  402. -- low flags: 01
  403. -- high flags: 0000
  404. -- rect: left=306 top=44 right=201 bottom=330
  405. -- title width / last selected line: 0
  406. -- icon id / first selected line: 0 / 0
  407. -- text alignment: 65535
  408. -- font id: 3
  409. -- text size: 9
  410. -- style flags: 0
  411. -- line height: 12
  412. -- part name: DefReb
  413. ----- HyperTalk script -----
  414. on mouseUp
  415.   put lineclicked() into Player
  416.   if player > 12 then
  417.     beep
  418.     put 12 into player
  419.   end if
  420.  
  421.   if the ShiftKey is down then
  422.     addit -1,player,DefReb,TotReb
  423.     addit -1,13,DefReb,TotReb    -- line 13 is the "totals" line
  424.   else
  425.     addit 1,player,DefReb,TotReb
  426.     addit 1,13,DefReb,TotReb    -- line 13 is the "totals" line
  427.   end if
  428.  
  429. end mouseup
  430.  
  431.  
  432.  
  433.  
  434. -- part 15 (field)
  435. -- low flags: 01
  436. -- high flags: 0000
  437. -- rect: left=329 top=44 right=201 bottom=353
  438. -- title width / last selected line: 0
  439. -- icon id / first selected line: 0 / 0
  440. -- text alignment: 65535
  441. -- font id: 3
  442. -- text size: 9
  443. -- style flags: 0
  444. -- line height: 12
  445. -- part name: TotReb
  446. ----- HyperTalk script -----
  447. on mouseup
  448.   beep
  449. end mouseup
  450.  
  451.  
  452.  
  453. -- part 16 (field)
  454. -- low flags: 01
  455. -- high flags: 0000
  456. -- rect: left=353 top=44 right=201 bottom=377
  457. -- title width / last selected line: 0
  458. -- icon id / first selected line: 0 / 0
  459. -- text alignment: 65535
  460. -- font id: 3
  461. -- text size: 9
  462. -- style flags: 0
  463. -- line height: 12
  464. -- part name: AST
  465. ----- HyperTalk script -----
  466. -- This is the completely generic script for adding/recalc
  467.  
  468. on mouseUp
  469.   put lineclicked() into Player
  470.   if player > 12 then
  471.     beep
  472.     put 12 into player
  473.   end if
  474.  
  475.   put the short name of me into fldName
  476.   if the ShiftKey is down then
  477.     addit -1,player,fldName
  478.     addit -1,13,fldName    -- line 13 is the "totals" line
  479.   else
  480.     addit 1,player,fldName
  481.     addit 1,13,fldName    -- line 13 is the "totals" line
  482.   end if
  483.  
  484. end mouseup
  485.  
  486.  
  487.  
  488.  
  489. -- part 17 (field)
  490. -- low flags: 01
  491. -- high flags: 0000
  492. -- rect: left=399 top=44 right=201 bottom=423
  493. -- title width / last selected line: 0
  494. -- icon id / first selected line: 0 / 0
  495. -- text alignment: 65535
  496. -- font id: 3
  497. -- text size: 9
  498. -- style flags: 0
  499. -- line height: 12
  500. -- part name: ST
  501. ----- HyperTalk script -----
  502. -- This is the completely generic script for adding/recalc
  503.  
  504. on mouseUp
  505.   put lineclicked() into Player
  506.   if player > 12 then
  507.     beep
  508.     put 12 into player
  509.   end if
  510.  
  511.   put the short name of me into fldName
  512.   if the ShiftKey is down then
  513.     addit -1,player,fldName
  514.     addit -1,13,fldName    -- line 13 is the "totals" line
  515.   else
  516.     addit 1,player,fldName
  517.     addit 1,13,fldName    -- line 13 is the "totals" line
  518.   end if
  519.  
  520. end mouseup
  521.  
  522.  
  523.  
  524.  
  525. -- part 18 (field)
  526. -- low flags: 01
  527. -- high flags: 0000
  528. -- rect: left=376 top=44 right=201 bottom=400
  529. -- title width / last selected line: 0
  530. -- icon id / first selected line: 0 / 0
  531. -- text alignment: 65535
  532. -- font id: 3
  533. -- text size: 9
  534. -- style flags: 0
  535. -- line height: 12
  536. -- part name: PF
  537. ----- HyperTalk script -----
  538. -- This is the completely generic script for adding/recalc
  539.  
  540. on mouseUp
  541.   put lineclicked() into Player
  542.   if player > 12 then
  543.     beep
  544.     put 12 into player
  545.   end if
  546.  
  547.   put the short name of me into fldName
  548.   if the ShiftKey is down then
  549.     addit -1,player,fldName
  550.     addit -1,13,fldName    -- line 13 is the "totals" line
  551.   else
  552.     addit 1,player,fldName
  553.     addit 1,13,fldName    -- line 13 is the "totals" line
  554.   end if
  555.  
  556. end mouseup
  557.  
  558.  
  559.  
  560.  
  561. -- part 19 (field)
  562. -- low flags: 01
  563. -- high flags: 0000
  564. -- rect: left=422 top=44 right=201 bottom=446
  565. -- title width / last selected line: 0
  566. -- icon id / first selected line: 0 / 0
  567. -- text alignment: 65535
  568. -- font id: 3
  569. -- text size: 9
  570. -- style flags: 0
  571. -- line height: 12
  572. -- part name: TURN
  573. ----- HyperTalk script -----
  574. -- This is the completely generic script for adding/recalc
  575.  
  576. on mouseUp
  577.   put lineclicked() into Player
  578.   if player > 12 then
  579.     beep
  580.     put 12 into player
  581.   end if
  582.  
  583.   put the short name of me into fldName
  584.   if the ShiftKey is down then
  585.     addit -1,player,fldName
  586.     addit -1,13,fldName    -- line 13 is the "totals" line
  587.   else
  588.     addit 1,player,fldName
  589.     addit 1,13,fldName    -- line 13 is the "totals" line
  590.   end if
  591.  
  592. end mouseup
  593.  
  594.  
  595.  
  596.  
  597. -- part 20 (field)
  598. -- low flags: 01
  599. -- high flags: 0000
  600. -- rect: left=445 top=44 right=201 bottom=469
  601. -- title width / last selected line: 0
  602. -- icon id / first selected line: 0 / 0
  603. -- text alignment: 65535
  604. -- font id: 3
  605. -- text size: 9
  606. -- style flags: 0
  607. -- line height: 12
  608. -- part name: BLK
  609. ----- HyperTalk script -----
  610. -- This is the completely generic script for adding/recalc
  611.  
  612. on mouseUp
  613.   put lineclicked() into Player
  614.   if player > 12 then
  615.     beep
  616.     put 12 into player
  617.   end if
  618.  
  619.   put the short name of me into fldName
  620.   if the ShiftKey is down then
  621.     addit -1,player,fldName
  622.     addit -1,13,fldName    -- line 13 is the "totals" line
  623.   else
  624.     addit 1,player,fldName
  625.     addit 1,13,fldName    -- line 13 is the "totals" line
  626.   end if
  627.  
  628. end mouseup
  629.  
  630.  
  631.  
  632.  
  633. -- part 21 (field)
  634. -- low flags: 01
  635. -- high flags: 0000
  636. -- rect: left=471 top=44 right=201 bottom=495
  637. -- title width / last selected line: 0
  638. -- icon id / first selected line: 0 / 0
  639. -- text alignment: 65535
  640. -- font id: 3
  641. -- text size: 9
  642. -- style flags: 0
  643. -- line height: 12
  644. -- part name: PTS
  645. ----- HyperTalk script -----
  646. on mouseup
  647.   beep
  648. end mouseup
  649.  
  650.  
  651.  
  652. -- part 22 (field)
  653. -- low flags: 01
  654. -- high flags: 0002
  655. -- rect: left=142 top=205 right=221 bottom=189
  656. -- title width / last selected line: 0
  657. -- icon id / first selected line: 0 / 0
  658. -- text alignment: 1
  659. -- font id: 3
  660. -- text size: 12
  661. -- style flags: 256
  662. -- line height: 16
  663. -- part name: FG%
  664.  
  665.  
  666. -- part 23 (field)
  667. -- low flags: 01
  668. -- high flags: 0002
  669. -- rect: left=189 top=205 right=221 bottom=236
  670. -- title width / last selected line: 0
  671. -- icon id / first selected line: 0 / 0
  672. -- text alignment: 1
  673. -- font id: 3
  674. -- text size: 12
  675. -- style flags: 256
  676. -- line height: 16
  677. -- part name: FG3%
  678.  
  679.  
  680. -- part 24 (field)
  681. -- low flags: 01
  682. -- high flags: 0002
  683. -- rect: left=236 top=205 right=221 bottom=283
  684. -- title width / last selected line: 0
  685. -- icon id / first selected line: 0 / 0
  686. -- text alignment: 1
  687. -- font id: 3
  688. -- text size: 12
  689. -- style flags: 256
  690. -- line height: 16
  691. -- part name: FT%
  692.  
  693.  
  694. -- part 26 (field)
  695. -- low flags: 01
  696. -- high flags: 0000
  697. -- rect: left=194 top=264 right=295 bottom=221
  698. -- title width / last selected line: 0
  699. -- icon id / first selected line: 0 / 0
  700. -- text alignment: 1
  701. -- font id: 3
  702. -- text size: 12
  703. -- style flags: 256
  704. -- line height: 16
  705. -- part name: Q1
  706.  
  707.  
  708. -- part 27 (field)
  709. -- low flags: 01
  710. -- high flags: 0000
  711. -- rect: left=220 top=264 right=295 bottom=247
  712. -- title width / last selected line: 0
  713. -- icon id / first selected line: 0 / 0
  714. -- text alignment: 1
  715. -- font id: 3
  716. -- text size: 12
  717. -- style flags: 256
  718. -- line height: 16
  719. -- part name: Q2
  720.  
  721.  
  722. -- part 28 (field)
  723. -- low flags: 01
  724. -- high flags: 0000
  725. -- rect: left=246 top=264 right=295 bottom=273
  726. -- title width / last selected line: 0
  727. -- icon id / first selected line: 0 / 0
  728. -- text alignment: 1
  729. -- font id: 3
  730. -- text size: 12
  731. -- style flags: 256
  732. -- line height: 16
  733. -- part name: Q3
  734.  
  735.  
  736. -- part 29 (field)
  737. -- low flags: 01
  738. -- high flags: 0000
  739. -- rect: left=272 top=264 right=295 bottom=299
  740. -- title width / last selected line: 0
  741. -- icon id / first selected line: 0 / 0
  742. -- text alignment: 1
  743. -- font id: 3
  744. -- text size: 12
  745. -- style flags: 256
  746. -- line height: 16
  747. -- part name: Q4
  748.  
  749.  
  750. -- part 30 (field)
  751. -- low flags: 01
  752. -- high flags: 0000
  753. -- rect: left=298 top=264 right=295 bottom=325
  754. -- title width / last selected line: 0
  755. -- icon id / first selected line: 0 / 0
  756. -- text alignment: 1
  757. -- font id: 3
  758. -- text size: 12
  759. -- style flags: 256
  760. -- line height: 16
  761. -- part name: OT1
  762.  
  763.  
  764. -- part 31 (field)
  765. -- low flags: 01
  766. -- high flags: 0000
  767. -- rect: left=324 top=264 right=295 bottom=351
  768. -- title width / last selected line: 0
  769. -- icon id / first selected line: 0 / 0
  770. -- text alignment: 1
  771. -- font id: 3
  772. -- text size: 12
  773. -- style flags: 256
  774. -- line height: 16
  775. -- part name: OT2
  776.  
  777.  
  778. -- part 32 (field)
  779. -- low flags: 01
  780. -- high flags: 0000
  781. -- rect: left=350 top=264 right=295 bottom=377
  782. -- title width / last selected line: 0
  783. -- icon id / first selected line: 0 / 0
  784. -- text alignment: 1
  785. -- font id: 3
  786. -- text size: 12
  787. -- style flags: 256
  788. -- line height: 16
  789. -- part name: OT3
  790.  
  791.  
  792. -- part 33 (field)
  793. -- low flags: 01
  794. -- high flags: 0000
  795. -- rect: left=385 top=264 right=295 bottom=419
  796. -- title width / last selected line: 0
  797. -- icon id / first selected line: 0 / 0
  798. -- text alignment: 1
  799. -- font id: 3
  800. -- text size: 12
  801. -- style flags: 256
  802. -- line height: 16
  803. -- part name: TotalScore
  804.  
  805.  
  806. -- part 34 (button)
  807. -- low flags: 00
  808. -- high flags: E006
  809. -- rect: left=200 top=302 right=316 bottom=218
  810. -- title width / last selected line: 0
  811. -- icon id / first selected line: 0 / 0
  812. -- text alignment: 1
  813. -- font id: 0
  814. -- text size: 12
  815. -- style flags: 0
  816. -- line height: 16
  817. -- part name: Q1
  818. ----- HyperTalk script -----
  819. on mouseUp
  820.   global quarter,qfield,thisTeam,theOtherTeam
  821.  
  822.   -- move this team's scores onto the other team's scorecard
  823.   get line thisteam of fld qfield
  824.   put it into line thisteam of fld qfield of cd TheOtherTeam
  825.   get line thisteam of fld TotalScore
  826.   put it into line thisteam of fld TotalScore of cd TheOtherTeam
  827.  
  828.   repeat with x = 2 to 8    -- buttons in this group
  829.     if the number of me is x then
  830.       set the hilite of bg button x to true
  831.       put x-1 into quarter
  832.       put (x-1) + 22 into blah
  833.       put the short name of field blah into qfield
  834.       -- qfield is now in the proper name format for addit
  835.     else
  836.       set the hilite of bg button x to false
  837.     end if
  838.   end repeat
  839.  
  840. end mouseUp
  841.  
  842.  
  843.  
  844. -- part 35 (button)
  845. -- low flags: 00
  846. -- high flags: A006
  847. -- rect: left=226 top=302 right=316 bottom=244
  848. -- title width / last selected line: 0
  849. -- icon id / first selected line: 0 / 0
  850. -- text alignment: 1
  851. -- font id: 0
  852. -- text size: 12
  853. -- style flags: 0
  854. -- line height: 16
  855. -- part name: 1
  856. ----- HyperTalk script -----
  857. on mouseUp
  858.   global quarter,qfield,thisTeam,theOtherTeam
  859.  
  860.   -- move this team's scores onto the other team's scorecard
  861.   get line thisteam of fld qfield
  862.   put it into line thisteam of fld qfield of cd TheOtherTeam
  863.   get line thisteam of fld TotalScore
  864.   put it into line thisteam of fld TotalScore of cd TheOtherTeam
  865.  
  866.   repeat with x = 2 to 8    -- buttons in this group
  867.     if the number of me is x then
  868.       set the hilite of bg button x to true
  869.       put x-1 into quarter
  870.       put (x-1) + 22 into blah
  871.       put the short name of field blah into qfield
  872.       -- qfield is now in the proper name format for addit
  873.     else
  874.       set the hilite of bg button x to false
  875.     end if
  876.   end repeat
  877.  
  878. end mouseUp
  879.  
  880.  
  881.  
  882. -- part 36 (button)
  883. -- low flags: 00
  884. -- high flags: A006
  885. -- rect: left=251 top=302 right=316 bottom=269
  886. -- title width / last selected line: 0
  887. -- icon id / first selected line: 0 / 0
  888. -- text alignment: 1
  889. -- font id: 0
  890. -- text size: 12
  891. -- style flags: 0
  892. -- line height: 16
  893. -- part name: 1
  894. ----- HyperTalk script -----
  895. on mouseUp
  896.   global quarter,qfield,thisTeam,theOtherTeam
  897.  
  898.   -- move this team's scores onto the other team's scorecard
  899.   get line thisteam of fld qfield
  900.   put it into line thisteam of fld qfield of cd TheOtherTeam
  901.   get line thisteam of fld TotalScore
  902.   put it into line thisteam of fld TotalScore of cd TheOtherTeam
  903.  
  904.   repeat with x = 2 to 8    -- buttons in this group
  905.     if the number of me is x then
  906.       set the hilite of bg button x to true
  907.       put x-1 into quarter
  908.       put (x-1) + 22 into blah
  909.       put the short name of field blah into qfield
  910.       -- qfield is now in the proper name format for addit
  911.     else
  912.       set the hilite of bg button x to false
  913.     end if
  914.   end repeat
  915.  
  916. end mouseUp
  917.  
  918.  
  919.  
  920. -- part 37 (button)
  921. -- low flags: 00
  922. -- high flags: A006
  923. -- rect: left=277 top=302 right=316 bottom=295
  924. -- title width / last selected line: 0
  925. -- icon id / first selected line: 0 / 0
  926. -- text alignment: 1
  927. -- font id: 0
  928. -- text size: 12
  929. -- style flags: 0
  930. -- line height: 16
  931. -- part name: 1
  932. ----- HyperTalk script -----
  933. on mouseUp
  934.   global quarter,qfield,thisTeam,theOtherTeam
  935.  
  936.   -- move this team's scores onto the other team's scorecard
  937.   get line thisteam of fld qfield
  938.   put it into line thisteam of fld qfield of cd TheOtherTeam
  939.   get line thisteam of fld TotalScore
  940.   put it into line thisteam of fld TotalScore of cd TheOtherTeam
  941.  
  942.   repeat with x = 2 to 8    -- buttons in this group
  943.     if the number of me is x then
  944.       set the hilite of bg button x to true
  945.       put x-1 into quarter
  946.       put (x-1) + 22 into blah
  947.       put the short name of field blah into qfield
  948.       -- qfield is now in the proper name format for addit
  949.     else
  950.       set the hilite of bg button x to false
  951.     end if
  952.   end repeat
  953.  
  954. end mouseUp
  955.  
  956.  
  957.  
  958. -- part 38 (button)
  959. -- low flags: 00
  960. -- high flags: A006
  961. -- rect: left=303 top=302 right=316 bottom=321
  962. -- title width / last selected line: 0
  963. -- icon id / first selected line: 0 / 0
  964. -- text alignment: 1
  965. -- font id: 0
  966. -- text size: 12
  967. -- style flags: 0
  968. -- line height: 16
  969. -- part name: 1
  970. ----- HyperTalk script -----
  971. on mouseUp
  972.   global quarter,qfield,thisTeam,theOtherTeam
  973.  
  974.   -- move this team's scores onto the other team's scorecard
  975.   get line thisteam of fld qfield
  976.   put it into line thisteam of fld qfield of cd TheOtherTeam
  977.   get line thisteam of fld TotalScore
  978.   put it into line thisteam of fld TotalScore of cd TheOtherTeam
  979.  
  980.   repeat with x = 2 to 8    -- buttons in this group
  981.     if the number of me is x then
  982.       set the hilite of bg button x to true
  983.       put x-1 into quarter
  984.       put (x-1) + 22 into blah
  985.       put the short name of field blah into qfield
  986.       -- qfield is now in the proper name format for addit
  987.     else
  988.       set the hilite of bg button x to false
  989.     end if
  990.   end repeat
  991.  
  992. end mouseUp
  993.  
  994.  
  995.  
  996. -- part 39 (button)
  997. -- low flags: 00
  998. -- high flags: A006
  999. -- rect: left=329 top=302 right=316 bottom=347
  1000. -- title width / last selected line: 0
  1001. -- icon id / first selected line: 0 / 0
  1002. -- text alignment: 1
  1003. -- font id: 0
  1004. -- text size: 12
  1005. -- style flags: 0
  1006. -- line height: 16
  1007. -- part name: 1
  1008. ----- HyperTalk script -----
  1009. on mouseUp
  1010.   global quarter,qfield,thisTeam,theOtherTeam
  1011.  
  1012.   -- move this team's scores onto the other team's scorecard
  1013.   get line thisteam of fld qfield
  1014.   put it into line thisteam of fld qfield of cd TheOtherTeam
  1015.   get line thisteam of fld TotalScore
  1016.   put it into line thisteam of fld TotalScore of cd TheOtherTeam
  1017.  
  1018.   repeat with x = 2 to 8    -- buttons in this group
  1019.     if the number of me is x then
  1020.       set the hilite of bg button x to true
  1021.       put x-1 into quarter
  1022.       put (x-1) + 22 into blah
  1023.       put the short name of field blah into qfield
  1024.       -- qfield is now in the proper name format for addit
  1025.     else
  1026.       set the hilite of bg button x to false
  1027.     end if
  1028.   end repeat
  1029.  
  1030. end mouseUp
  1031.  
  1032.  
  1033.  
  1034. -- part 40 (button)
  1035. -- low flags: 00
  1036. -- high flags: A006
  1037. -- rect: left=355 top=302 right=316 bottom=373
  1038. -- title width / last selected line: 0
  1039. -- icon id / first selected line: 0 / 0
  1040. -- text alignment: 1
  1041. -- font id: 0
  1042. -- text size: 12
  1043. -- style flags: 0
  1044. -- line height: 16
  1045. -- part name: 1
  1046. ----- HyperTalk script -----
  1047. on mouseUp
  1048.   global quarter,qfield,thisTeam,theOtherTeam
  1049.  
  1050.   -- move this team's scores onto the other team's scorecard
  1051.   get line thisteam of fld qfield
  1052.   put it into line thisteam of fld qfield of cd TheOtherTeam
  1053.   get line thisteam of fld TotalScore
  1054.   put it into line thisteam of fld TotalScore of cd TheOtherTeam
  1055.  
  1056.   repeat with x = 2 to 8    -- buttons in this group
  1057.     if the number of me is x then
  1058.       set the hilite of bg button x to true
  1059.       put x-1 into quarter
  1060.       put (x-1) + 22 into blah
  1061.       put the short name of field blah into qfield
  1062.       -- qfield is now in the proper name format for addit
  1063.     else
  1064.       set the hilite of bg button x to false
  1065.     end if
  1066.   end repeat
  1067.  
  1068. end mouseUp
  1069.  
  1070.  
  1071.  
  1072. -- part 41 (button)
  1073. -- low flags: 00
  1074. -- high flags: A000
  1075. -- rect: left=468 top=247 right=292 bottom=502
  1076. -- title width / last selected line: 0
  1077. -- icon id / first selected line: 4188 / 4188
  1078. -- text alignment: 1
  1079. -- font id: 0
  1080. -- text size: 12
  1081. -- style flags: 0
  1082. -- line height: 16
  1083. -- part name: Help
  1084. ----- HyperTalk script -----
  1085. on mouseUp
  1086.   push card
  1087.   visual barn door open
  1088.   go card "Help"
  1089. end mouseUp
  1090.  
  1091.