home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tongubng.sea / TongueBingo / card_3514.txt < prev    next >
Text File  |  1991-08-27  |  5KB  |  236 lines

  1. -- card: 3514 from stack: in
  2. -- bmap block id: 2418
  3. -- flags: 4000
  4. -- background id: 3297
  5. -- name: Opetuskortti
  6. ----- HyperTalk script -----
  7. on openCard
  8.   global kieli, suomesta, kirjasin, kyrill
  9.   if kyrill and not suomesta then
  10.     set textFont of field 17 to "TYPKY"
  11.     set textStyle of field 17 to bold
  12.   else if kieli is "Greek" and not suomesta then
  13.     set textFont of field 17 to "Sparta"
  14.     set textStyle of field 17 to bold
  15.   else
  16.     set textFont of field 17 to Athens
  17.     set textStyle of field 17 to plain
  18.   end if
  19.   if kyrill and suomesta then asetaFont "TYPKY"
  20.   else if kieli is "Greek" and suomesta then asetaFont "Sparta"
  21.   else asetaFont kirjasin
  22. end openCard
  23.  
  24. on asetaFont font
  25.   repeat with sana = 1 to 16
  26.     set textFont of field sana to font
  27.     set textStyle of field sana to bold
  28.   end repeat
  29. end asetaFont
  30.  
  31.  
  32.  
  33. -- part 1 (button)
  34. -- low flags: 00
  35. -- high flags: A003
  36. -- rect: left=119 top=321 right=340 bottom=179
  37. -- title width / last selected line: 0
  38. -- icon id / first selected line: 0 / 0
  39. -- text alignment: 1
  40. -- font id: 0
  41. -- text size: 12
  42. -- style flags: 0
  43. -- line height: 16
  44. -- part name: Font
  45. ----- HyperTalk script -----
  46. on mouseUp
  47.   global kirjasin
  48.   get textFont of field 1
  49.   if it is "TYPKY" then exit mouseUp -- ei ven├ñj├ñn kielelle
  50.   if it is "Sparta" then exit mouseUp -- eik├ñ kreikan kielelle
  51.   set cursor to watch
  52.   lock screen
  53.   select field 1
  54.   doMenu "Text style..."
  55.   choose browse tool
  56.   if textFont of field 1 Γëá textFont of field 2 then
  57.     repeat with k = 2 to 16
  58.       set textFont of field k to textFont of field 1
  59.     end repeat
  60.   end if
  61.   if textSize of field 1 Γëá textSize of field 2 then
  62.     repeat with k = 2 to 16
  63.       set textSize of field k to textSize of field 1
  64.     end repeat
  65.   end if
  66.   if textStyle of field 1 Γëá textStyle of field 2 then
  67.     repeat with k = 2 to 16 -- ei toimi, jos useampia tyylej├ñ!
  68.       set textStyle of field k to textStyle of field 1
  69.     end repeat
  70.   end if
  71.   if textAlign of field 1 Γëá textAlign of field 2 then
  72.     repeat with k = 2 to 16
  73.       set textAlign of field k to textAlign of field 1
  74.     end repeat
  75.   end if
  76. end mouseUp
  77.  
  78.  
  79. -- part 2 (button)
  80. -- low flags: 00
  81. -- high flags: 8003
  82. -- rect: left=376 top=38 right=60 bottom=457
  83. -- title width / last selected line: 0
  84. -- icon id / first selected line: 0 / 0
  85. -- text alignment: 1
  86. -- font id: 0
  87. -- text size: 12
  88. -- style flags: 0
  89. -- line height: 16
  90. -- part name: New Game
  91. ----- HyperTalk script -----
  92. on mouseUp
  93.   global oikeat, oikeita, v├ñ├ñri├ñ, alku, kesto, osattu, kieli, suomesta, kirjasin
  94.   put "Game starts, when You hear the GongΓǪ"
  95.   put 0 into v├ñ├ñri├ñ
  96.   put 0 into oikeita
  97.   put 0 into kesto
  98.   put empty into osattu
  99.   --set hilite of bg button fanfaarit to true
  100.   repeat with sana = 1 to 16
  101.     put false into item sana in oikeat
  102.     set textStyle of field sana to bold
  103.   end repeat
  104.   uusiSana
  105.   play "Bell"
  106.   put the ticks into alku
  107. end mouseUp
  108.  
  109.  
  110.  
  111. -- part 4 (button)
  112. -- low flags: 00
  113. -- high flags: A003
  114. -- rect: left=383 top=319 right=340 bottom=508
  115. -- title width / last selected line: 0
  116. -- icon id / first selected line: 0 / 0
  117. -- text alignment: 1
  118. -- font id: 0
  119. -- text size: 12
  120. -- style flags: 0
  121. -- line height: 16
  122. -- part name: Back to Glossary
  123. ----- HyperTalk script -----
  124. on mouseUp
  125.   visual effect venetian blinds
  126.   pop card
  127. end mouseUp
  128.  
  129.  
  130. -- part 5 (button)
  131. -- low flags: 00
  132. -- high flags: 0001
  133. -- rect: left=470 top=21 right=48 bottom=505
  134. -- title width / last selected line: 0
  135. -- icon id / first selected line: 1011 / 1011
  136. -- text alignment: 1
  137. -- font id: 0
  138. -- text size: 12
  139. -- style flags: 0
  140. -- line height: 16
  141. -- part name: Kotiin
  142. ----- HyperTalk script -----
  143. on mouseUp
  144.   go home
  145. end mouseUp
  146.  
  147.  
  148.  
  149.  
  150. -- part 7 (button)
  151. -- low flags: 00
  152. -- high flags: A003
  153. -- rect: left=265 top=318 right=339 bottom=376
  154. -- title width / last selected line: 0
  155. -- icon id / first selected line: 0 / 0
  156. -- text alignment: 1
  157. -- font id: 0
  158. -- text size: 12
  159. -- style flags: 0
  160. -- line height: 16
  161. -- part name: Switch Tongue
  162. ----- HyperTalk script -----
  163. on mouseUp
  164.   visual effect barn door close
  165.   pop card
  166.   send mouseUp to background button "Switch Tongue"
  167. end mouseUp
  168.  
  169.  
  170. -- part contents for background part 21
  171. ----- text -----
  172. kumoa
  173.  
  174. -- part contents for background part 1
  175. ----- text -----
  176. highlight
  177.  
  178. -- part contents for background part 4
  179. ----- text -----
  180. calculator
  181.  
  182. -- part contents for background part 5
  183. ----- text -----
  184. footer
  185.  
  186. -- part contents for background part 6
  187. ----- text -----
  188. hardware
  189.  
  190. -- part contents for background part 8
  191. ----- text -----
  192. software
  193.  
  194. -- part contents for background part 9
  195. ----- text -----
  196. user interface
  197.  
  198. -- part contents for background part 12
  199. ----- text -----
  200. cancel
  201.  
  202. -- part contents for background part 13
  203. ----- text -----
  204. indentation
  205.  
  206. -- part contents for background part 14
  207. ----- text -----
  208. apple
  209.  
  210. -- part contents for background part 15
  211. ----- text -----
  212. oval
  213.  
  214. -- part contents for background part 16
  215. ----- text -----
  216. italic
  217.  
  218. -- part contents for background part 17
  219. ----- text -----
  220. page setup
  221.  
  222. -- part contents for background part 18
  223. ----- text -----
  224. spacebar
  225.  
  226. -- part contents for background part 19
  227. ----- text -----
  228. network
  229.  
  230. -- part contents for background part 20
  231. ----- text -----
  232. message
  233.  
  234. -- part contents for background part 10
  235. ----- text -----
  236. clear