Advertisement
Guest User

contracts

a guest
Dec 17th, 2015
465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.76 KB | None | 0 0
  1. event QuestItem_Identify_Expand
  2. {
  3. StopEvent QuestItem_Identify_Collapse 0
  4. Animate Dimmer wide 285 Bias 0.1 0.0 0.4
  5. Animate Dimmer xpos 0 Bias 0.1 0.0 0.4
  6. }
  7.  
  8. event QuestItem_Identify_Collapse
  9. {
  10. StopEvent QuestItem_Identify_Expand 0
  11. Animate Dimmer wide 0 Accel 0.4 0.4
  12. Animate Dimmer xpos 142 Accel 0.4 0.4
  13. }
  14.  
  15. event QuestItem_Complete_Expand
  16. {
  17. Animate Dimmer wide 285 Deaccel 0.4 0.1
  18. Animate Dimmer xpos 0 Deaccel 0.4 0.1
  19. }
  20.  
  21. event QuestItem_Complete_Collapse
  22. {
  23. Animate Dimmer wide 0 Accel 0 0.4
  24. Animate Dimmer xpos 142 Accel 0 0.4
  25. }
  26.  
  27. event QuestItem_Complete_Progress
  28. {
  29. Animate Dimmer wide 0 Linear 0 5
  30. Animate Dimmer xpos 142 Linear 0 5
  31. }
  32.  
  33. event QuestItem_Options_Flash
  34. {
  35. Animate OptionsButton FgColor LightOrange Linear 0 0.1
  36. Animate OptionsButton FgColor TanLight Linear 0.1 0.1
  37. Animate OptionsButton FgColor LightOrange Linear 0.2 0.1
  38. Animate OptionsButton FgColor TanLight Linear 0.3 0.1
  39. Animate OptionsButton FgColor LightOrange Linear 0.4 0.1
  40. Animate OptionsButton FgColor TanLight Linear 0.5 0.1
  41. }
  42.  
  43. //--------------------------------------------------------------------------
  44. event QuestItem_Expand
  45. {
  46. Animate FrontFolderContainer ypos 240 Gain 0.75 0 0.4
  47. RunEventChild IdentifyButtonContainer QuestItem_Identify_Expand 0
  48. RunEventChild TurnInContainer QuestItem_Complete_Expand 0
  49.  
  50. SetInputEnabled FrontFolderContainer 0 0
  51. RunEvent QuestItem_Options_Flash 1
  52. }
  53.  
  54. event QuestItem_Collapse
  55. {
  56. Animate FrontFolderContainer ypos 0 Gain 0.75 0 0.4
  57. RunEventChild IdentifyButtonContainer QuestItem_Identify_Collapse 0
  58. RunEventChild TurnInContainer QuestItem_Complete_Collapse 0
  59.  
  60. SetInputEnabled FrontFolderContainer 1 0
  61. }
  62.  
  63. event QuestItem_TurningIn
  64. {
  65. RunEventChild TurnInContainer QuestItem_Complete_Progress 0
  66. }
  67.  
  68. event QuestItem_Reset
  69. {
  70. Animate FrontFolderContainer ypos 0 Linear 0 0
  71. RunEventChild IdentifyButtonContainer QuestItem_Identify_Collapse 0
  72. RunEventChild TurnInContainer QuestItem_Complete_Collapse 0
  73.  
  74. SetInputEnabled FrontFolderContainer 1 0
  75. }
  76.  
  77. //--------------------------------------------------------------------------
  78. event QuestItem_Operation2_Expand
  79. {
  80. StopEvent QuestItem_Operation2_Collapse 0
  81.  
  82. RunEventChild IdentifyButtonContainer QuestItem_Identify_Expand 0.4
  83. RunEventChild TurnInContainer QuestItem_Complete_Expand 0.4
  84.  
  85. Animate FrontFolderContainer xpos -270 Gain 0.75 0.4 0.3
  86. Animate BackFolderContainer xpos -270 Gain 0.75 0.4 0.3
  87. Animate FrontFolderContainer xpos -10 Gain 0.75 0.7 0.3
  88. Animate BackFolderContainer xpos 0 Gain 0.75 0.7 0.3
  89. SetVisible FrontFolderContainer 0 0.7
  90. SetVisible BackFolderContainer 1 0.7
  91.  
  92. SetInputEnabled FrontFolderContainer 0 0
  93. RunEvent QuestItem_Options_Flash 1
  94. }
  95.  
  96. event QuestItem_Operation2_Collapse
  97. {
  98. StopEvent QuestItem_Operation2_Expand 0
  99.  
  100. RunEventChild IdentifyButtonContainer QuestItem_Identify_Collapse 0
  101. RunEventChild TurnInContainer QuestItem_Complete_Collapse 0
  102.  
  103. Animate FrontFolderContainer xpos -270 Gain 0.75 0.0 0.3
  104. Animate BackFolderContainer xpos -270 Gain 0.75 0.0 0.3
  105. Animate FrontFolderContainer xpos 0 Gain 0.75 0.3 0.4
  106. Animate BackFolderContainer xpos 0 Gain 0.75 0.3 0.4
  107. SetVisible FrontFolderContainer 1 0.3
  108. SetVisible BackFolderContainer 0 0.3
  109.  
  110. SetInputEnabled FrontFolderContainer 1 0
  111. }
  112.  
  113. event QuestItem_Operation2_TurningIn
  114. {
  115. RunEventChild TurnInContainer QuestItem_Complete_Progress 0
  116. }
  117.  
  118. event QuestItem_Operation2_Reset
  119. {
  120. StopEvent QuestItem_Operation2_Collapse 0
  121. StopEvent QuestItem_Operation2_Expand 0
  122.  
  123. RunEventChild IdentifyButtonContainer QuestItem_Identify_Collapse 0
  124. RunEventChild TurnInContainer QuestItem_Complete_Collapse 0
  125.  
  126. Animate FrontFolderContainer xpos 0 Linear 0 0
  127. Animate BackFolderContainer xpos 0 Linear 0 0
  128. SetVisible FrontFolderContainer 1 0
  129. SetVisible BackFolderContainer 0 0
  130.  
  131. SetInputEnabled FrontFolderContainer 1 0
  132. }
  133.  
  134. //--------------------------------------------------------------------------
  135. event QuestItem_DisableFrontMouse
  136. {
  137. SetVisible FrontInputProxyPanel 0 0
  138. }
  139.  
  140. event QuestItem_EnableFrontMouse
  141. {
  142. SetVisible FrontInputProxyPanel 1 0
  143. }
  144.  
  145. event QuestItem_Expand_Halloween
  146. {
  147. StopEvent QuestItem_Collapse_Halloween 0
  148.  
  149. // Immediately disable the mouse proxy so the inactive hint goes away
  150. RunEventChild FrontFolderContainer QuestItem_DisableFrontMouse 0
  151. SetInputEnabled FrontFolderContainer 0 0
  152.  
  153. // Slide the sleeve
  154. Animate SleeveImage xpos 300 Bias 0.2 0.0 0.4
  155. Animate EncodedStatus xpos 300 Bias 0.2 0.0 0.4
  156. Animate ReadyToTurnInStatus xpos 300 Bias 0.2 0.0 0.4
  157. Animate InactiveStatus xpos 300 Bias 0.2 0.0 0.4
  158.  
  159. // Once the sleeve is off, then "unroll" the paper
  160. FireCommand 0.4 "playsound ui/quest_folder_open_halloween.wav"
  161. RunEventChild IdentifyButtonContainer QuestItem_Identify_Expand 0.4
  162. RunEventChild TurnInContainer QuestItem_Complete_Expand 0.4
  163. Animate FrontFolderContainer ypos 240 Gain 0.75 0.4 0.4
  164. Animate QuestPaperContainer tall 300 Gain 0.75 0.4 0.4
  165.  
  166. RunEvent QuestItem_Options_Flash 1
  167. }
  168.  
  169. event QuestItem_Collapse_Halloween
  170. {
  171. StopEvent QuestItem_Expand_Halloween 0
  172.  
  173. // Roll up the paper
  174. Animate FrontFolderContainer ypos 0 Gain 0.75 0 0.4
  175. Animate QuestPaperContainer tall 70 Gain 0.75 0 0.4
  176. RunEventChild IdentifyButtonContainer QuestItem_Identify_Collapse 0
  177. RunEventChild TurnInContainer QuestItem_Complete_Collapse 0
  178. RunEventChild FrontFolderContainer QuestItem_EnableFrontMouse 0
  179.  
  180. // Put the sleeve back
  181. FireCommand 0.5 "playsound ui/quest_folder_keeper_slide_on_halloween.wav"
  182.  
  183. Animate SleeveImage xpos 15 Bias 0.8 0.5 0.2
  184. Animate ReadyToTurnInStatus xpos 10 Bias 0.8 0.5 0.2
  185. Animate InactiveStatus xpos 10 Bias 0.8 0.5 0.2
  186. Animate EncodedStatus xpos 10 Bias 0.8 0.5 0.2
  187. SetInputEnabled FrontFolderContainer 1 0
  188. }
  189.  
  190. event QuestItem_Reset_Halloween
  191. {
  192. StopEvent QuestItem_Expand_Halloween 0
  193. SetVisible FrontFolderContainer 1 0
  194. RunEventChild FrontFolderContainer QuestItem_EnableFrontMouse 0
  195.  
  196. // Roll up the paper
  197. Animate FrontFolderContainer ypos 0 Linear 0 0
  198. Animate QuestPaperContainer tall 70 Linear 0 0
  199. Animate EncodedStatus xpos 10 Bias 0 0 0
  200. Animate ReadyToTurnInStatus xpos 10 Bias 0 0 0
  201. Animate InactiveStatus xpos 10 Bias 0 0 0
  202.  
  203. // Put the sleeve back
  204. Animate SleeveImage xpos 15 Linear 0 0
  205. SetInputEnabled FrontFolderContainer 1 0
  206. }
  207.  
  208. //--------------------------------------------------------------------------
  209. event QuestItem_Front_Selected
  210. {
  211. StopEvent QuestItem_Front_OtherSelected 0
  212. StopEvent QuestItem_Front_NoneSelected 0
  213.  
  214. Animate MainContainer ypos 0 Gain 0.75 0 0.4
  215. }
  216.  
  217. event QuestItem_Front_OtherSelected
  218. {
  219. StopEvent QuestItem_Front_Selected 0
  220. StopEvent QuestItem_Front_NoneSelected 0
  221.  
  222. Animate MainContainer ypos 300 Gain 0.75 0 0.4
  223. }
  224.  
  225.  
  226. event QuestItem_Front_NoneSelected
  227. {
  228. StopEvent QuestItem_Front_Selected 0
  229. StopEvent QuestItem_Front_OtherSelected 0
  230.  
  231. Animate MainContainer ypos 120 Gain 0.75 0 0.4
  232. }
  233.  
  234. //--------------------------------------------------------------------------
  235. event QuestItem_Back_Selected
  236. {
  237. StopEvent QuestItem_Back_OtherSelected 0
  238. StopEvent QuestItem_Back_NoneSelected 0
  239.  
  240. Animate MainContainer ypos 0 Gain 0.75 0 0.4
  241. }
  242.  
  243. event QuestItem_Back_OtherSelected
  244. {
  245. StopEvent QuestItem_Back_Selected 0
  246. StopEvent QuestItem_Back_NoneSelected 0
  247.  
  248. Animate MainContainer ypos 300 Gain 0.75 0 0.8
  249. }
  250.  
  251.  
  252. event QuestItem_Back_NoneSelected
  253. {
  254. StopEvent QuestItem_Back_Selected 0
  255. StopEvent QuestItem_Back_OtherSelected 0
  256.  
  257. Animate MainContainer ypos 0 Gain 0.75 0 0.4
  258. }
  259.  
  260. //--------------------------------------------------------------------------
  261. event QuestItem_Highlight_On_Halloween
  262. {
  263. SetVisible GlowImage 1 0
  264. Animate GlowImage Alpha 255 Bias 0.8 0 0.2
  265. }
  266.  
  267. event QuestItem_Highlight_Off_Halloween
  268. {
  269. Animate GlowImage Alpha 0 Bias 0.8 0 0.2
  270. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement