home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / hc / house.sit / House / House / card_2215.txt < prev    next >
Encoding:
Text File  |  1988-01-28  |  4.5 KB  |  213 lines

  1. -- card: 2215 from stack: in
  2. -- bmap block id: 3290
  3. -- flags: 0000
  4. -- background id: 2690
  5. -- name: User Preferences
  6. ----- HyperTalk script -----
  7. on openCard
  8.   hide field "paths"
  9.   setUserLevel the userLevel
  10.   if card field "User Name" is empty
  11.   then click at the loc of card field "User Name"
  12. end openCard
  13.  
  14. on setUserLevel whatLevel
  15.   set userLevel to whatLevel
  16.   if the userLevel is whatLevel then
  17.     put the userLevel into card field "User Level"
  18.     set hilite of button "Browsing" to the userLevel = 1
  19.     set hilite of button "Typing" to the userLevel = 2
  20.     set hilite of button "Painting" to the userLevel = 3
  21.     set hilite of button "Authoring" to the userLevel = 4
  22.     set hilite of button "Scripting" to the userLevel = 5
  23.     set visible of button "Power Keys" to the userLevel >= 3
  24.     set visible of button "Blind Typing" to the userLevel = 5
  25.     set hilite of button "Power Keys" to the powerKeys
  26.     set hilite of button "Blind Typing" to the blindTyping
  27.   else
  28.     set hilite of the target to false
  29.   end if
  30. end setUserLevel
  31.  
  32. on arrowKey
  33.   go to card "Main Stage"
  34. end arrowKey
  35.  
  36.  
  37.  
  38. -- part 1 (field)
  39. -- low flags: 00
  40. -- high flags: 4004
  41. -- rect: left=40 top=107 right=131 bottom=311
  42. -- title width / last selected line: 0
  43. -- icon id / first selected line: 0 / 0
  44. -- text alignment: 1
  45. -- font id: 2
  46. -- text size: 18
  47. -- style flags: 0
  48. -- line height: 24
  49. -- part name: User Name
  50.  
  51.  
  52. -- part 2 (button)
  53. -- low flags: 00
  54. -- high flags: A006
  55. -- rect: left=149 top=24 right=44 bottom=235
  56. -- title width / last selected line: 0
  57. -- icon id / first selected line: 0 / 0
  58. -- text alignment: 1
  59. -- font id: 0
  60. -- text size: 12
  61. -- style flags: 0
  62. -- line height: 16
  63. -- part name: Browsing
  64. ----- HyperTalk script -----
  65. on mouseUp
  66.   setUserLevel 1
  67. end mouseUp
  68.  
  69.  
  70.  
  71. -- part 3 (button)
  72. -- low flags: 00
  73. -- high flags: A006
  74. -- rect: left=149 top=43 right=64 bottom=235
  75. -- title width / last selected line: 0
  76. -- icon id / first selected line: 0 / 0
  77. -- text alignment: 1
  78. -- font id: 0
  79. -- text size: 12
  80. -- style flags: 0
  81. -- line height: 16
  82. -- part name: Typing
  83. ----- HyperTalk script -----
  84. on mouseUp
  85.   setUserLevel 2
  86. end mouseUp
  87.  
  88.  
  89.  
  90. -- part 4 (button)
  91. -- low flags: 00
  92. -- high flags: A006
  93. -- rect: left=149 top=63 right=84 bottom=235
  94. -- title width / last selected line: 0
  95. -- icon id / first selected line: 0 / 0
  96. -- text alignment: 1
  97. -- font id: 0
  98. -- text size: 12
  99. -- style flags: 0
  100. -- line height: 16
  101. -- part name: Painting
  102. ----- HyperTalk script -----
  103. on mouseUp
  104.   setUserLevel 3
  105. end mouseUp
  106.  
  107.  
  108.  
  109. -- part 5 (button)
  110. -- low flags: 00
  111. -- high flags: A005
  112. -- rect: left=234 top=63 right=84 bottom=337
  113. -- title width / last selected line: 0
  114. -- icon id / first selected line: 0 / 0
  115. -- text alignment: 1
  116. -- font id: 0
  117. -- text size: 12
  118. -- style flags: 0
  119. -- line height: 16
  120. -- part name: Power Keys
  121. ----- HyperTalk script -----
  122. on mouseUp
  123.   set powerKeys to the hilite of button "Power Keys"
  124. end mouseUp
  125.  
  126.  
  127.  
  128. -- part 6 (button)
  129. -- low flags: 00
  130. -- high flags: A006
  131. -- rect: left=149 top=83 right=104 bottom=235
  132. -- title width / last selected line: 0
  133. -- icon id / first selected line: 0 / 0
  134. -- text alignment: 1
  135. -- font id: 0
  136. -- text size: 12
  137. -- style flags: 0
  138. -- line height: 16
  139. -- part name: Authoring
  140. ----- HyperTalk script -----
  141. on mouseUp
  142.   setUserLevel 4
  143. end mouseUp
  144.  
  145.  
  146.  
  147. -- part 7 (button)
  148. -- low flags: 00
  149. -- high flags: E006
  150. -- rect: left=262 top=18 right=39 bottom=343
  151. -- title width / last selected line: 0
  152. -- icon id / first selected line: 0 / 0
  153. -- text alignment: 1
  154. -- font id: 0
  155. -- text size: 12
  156. -- style flags: 0
  157. -- line height: 16
  158. -- part name: Scripting
  159. ----- HyperTalk script -----
  160. on mouseUp
  161.   setUserLevel 5
  162. end mouseUp
  163.  
  164.  
  165.  
  166. -- part 8 (button)
  167. -- low flags: 00
  168. -- high flags: E005
  169. -- rect: left=262 top=38 right=59 bottom=365
  170. -- title width / last selected line: 0
  171. -- icon id / first selected line: 0 / 0
  172. -- text alignment: 1
  173. -- font id: 0
  174. -- text size: 12
  175. -- style flags: 0
  176. -- line height: 16
  177. -- part name: Blind Typing
  178. ----- HyperTalk script -----
  179. on mouseUp
  180.   set blindTyping to the hilite of button "Blind Typing"
  181. end mouseUp
  182.  
  183.  
  184.  
  185. -- part 9 (field)
  186. -- low flags: 01
  187. -- high flags: 0000
  188. -- rect: left=152 top=265 right=285 bottom=203
  189. -- title width / last selected line: 0
  190. -- icon id / first selected line: 0 / 0
  191. -- text alignment: 1
  192. -- font id: 154
  193. -- text size: 12
  194. -- style flags: 0
  195. -- line height: 16
  196. -- part name: User Level
  197.  
  198.  
  199. -- part contents for card part 9
  200. ----- text -----
  201. 5
  202.  
  203. -- part contents for background part 14
  204. ----- text -----
  205. Saturday, January 9, 1988
  206.  
  207. -- part contents for background part 13
  208. ----- text -----
  209. 7:53:24 PM
  210.  
  211. -- part contents for card part 1
  212. ----- text -----
  213. Jim Henderson