Guest User

Untitled

a guest
May 23rd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.87 KB | None | 0 0
  1. // sample animation script
  2. //
  3. //
  4. // commands:
  5. // Animate <panel name> <variable> <target value> <interpolator> <start time> <duration>
  6. // variables:
  7. // FgColor
  8. // BgColor
  9. // Position
  10. // Size
  11. // Blur (hud panels only)
  12. // TextColor (hud panels only)
  13. // Ammo2Color (hud panels only)
  14. // Alpha (hud weapon selection only)
  15. // SelectionAlpha (hud weapon selection only)
  16. // TextScan (hud weapon selection only)
  17. //
  18. // interpolator:
  19. // Linear
  20. // Accel - starts moving slow, ends fast
  21. // Deaccel - starts moving fast, ends slow
  22. // Spline - simple ease in/out curve
  23. // Pulse - < freq > over the duration, the value is pulsed (cosine) freq times ending at the dest value (assuming freq is integral)
  24. // Flicker - < randomness factor 0.0 to 1.0 > over duration, each frame if random # is less than factor, use end value, otherwise use prev value
  25. //
  26. // RunEvent <event name> <start time>
  27. // starts another even running at the specified time
  28. //
  29. // StopEvent <event name> <start time>
  30. // stops another event that is current running at the specified time
  31. //
  32. // StopAnimation <panel name> <variable> <start time>
  33. // stops all animations refering to the specified variable in the specified panel
  34. //
  35. // StopPanelAnimations <panel name> <start time>
  36. // stops all active animations operating on the specified panel
  37. //
  38. // SetFont <panel name> <fontparameter> <fontname from scheme> <set time>
  39. //
  40. // SetTexture <panel name> <textureidname> <texturefilename> <set time>
  41. //
  42. // SetString <panel name> <string varname> <stringvalue> <set time>
  43.  
  44. event LevelInit
  45. {
  46. }
  47.  
  48. event OpenWeaponSelectionMenu
  49. {
  50. StopEvent CloseWeaponSelectionMenu 0.0
  51. StopEvent WeaponPickup 0.0
  52.  
  53. // make the display visible
  54. Animate HudWeaponSelection Alpha "128" Linear 0.0 0.1
  55. Animate HudWeaponSelection SelectionAlpha "255" Linear 0.0 0.1
  56. Animate HudWeaponSelection FgColor "FgColor" Linear 0.0 0.1
  57. //Animate HudWeaponSelection TextColor "BrightFg" Linear 0.0 0.1
  58. Animate HudWeaponSelection TextScan "1" Linear 0.0 0.1
  59. }
  60.  
  61. event CloseWeaponSelectionMenu
  62. {
  63. StopEvent CloseWeaponSelectionMenu 0.0
  64. StopEvent WeaponPickup 0.0
  65.  
  66. // make the display visible
  67. Animate HudWeaponSelection Alpha "128" Linear 0.0 0.1
  68. Animate HudWeaponSelection SelectionAlpha "255" Linear 0.0 0.1
  69. Animate HudWeaponSelection FgColor "FgColor" Linear 0.0 0.1
  70. //Animate HudWeaponSelection TextColor "BrightFg" Linear 0.0 0.1
  71. Animate HudWeaponSelection TextScan "1" Linear 0.0 0.1
  72. }
  73.  
  74.  
  75. event MenuOpen
  76. {
  77. StopEvent MenuClose 0.0
  78.  
  79. // fade in
  80. Animate HudMenu Alpha "255" Linear 0.0 0.1
  81. Animate HudMenu SelectionAlpha "255" Linear 0.0 0.1
  82. Animate HudMenu FgColor "FgColor" Linear 0.0 0.1
  83. Animate HudMenu MenuColor "MenuColor" Linear 0.0 0.1
  84. Animate HudMenu ItemColor "ItemColor" Linear 0.0 0.1
  85. Animate HudMenu TextScan "1" Linear 0.0 0.1
  86.  
  87. // Undo any blur
  88. Animate HudMenu Blur "1" Linear 0.0 0.01
  89. }
  90.  
  91. event MenuClose
  92. {
  93. // Hide it
  94. Animate HudMenu Alpha "0" Linear 0.0 1
  95. Animate HudMenu SelectionAlpha "0" Linear 0.0 1
  96. Animate HudMenu FgColor "0 0 0 0" Linear 0.0 1
  97. Animate HudMenu MenuColor "0 0 0 0" Linear 0.0 1
  98. Animate HudMenu ItemColor "0 0 0 0" Linear 0.0 1
  99. }
  100.  
  101. event MenuPulse
  102. {
  103. Animate HudMenu Blur "7" Linear 0.0 0.1
  104. Animate HudMenu Blur "2" Deaccel 0.1 0.1
  105. Animate HudMenu Blur "7" Linear 0.2 0.1
  106. Animate HudMenu Blur "2" Deaccel 0.3 0.1
  107. Animate HudMenu Blur "7" Linear 0.4 0.1
  108. Animate HudMenu Blur "2" Deaccel 0.5 0.1
  109. Animate HudMenu Blur "1" Deaccel 0.6 0.4
  110. }
  111.  
  112. event TimerIncrement
  113. {
  114. Animate HudTimer Blur "7" Linear 0.0 0.1
  115. Animate HudTimer Blur "2" Deaccel 0.1 0.8
  116. Animate HudTimer Blur "0" Deaccel 1.1 1.5
  117. }
  118.  
  119. event TimerDecrement
  120. {
  121. Animate HudTimer Blur "7" Linear 0.0 0.1
  122. Animate HudTimer Blur "2" Deaccel 0.1 0.8
  123. Animate HudTimer Blur "0" Deaccel 1.1 1.5
  124. }
  125.  
  126.  
  127. event ResourceIncrement
  128. {
  129. Animate HudResources Blur "3" Linear 0.0 0.0
  130. Animate HudResources PulseAmount "0" Linear 0.0 0.01
  131. Animate HudResources Blur "1" Deaccel 0.1 1.5
  132. Animate HudResources PulseAmount "1" Linear 0.1 2
  133.  
  134. Animate HudResources PulseAmount "0" Linear 2 2
  135. }
  136.  
  137. event ResourceDecrement
  138. {
  139. Animate HudResources Blur "7" Linear 0.0 0.0
  140. Animate HudResources PulseAmount "0" Linear 0.0 0.01
  141. Animate HudResources Blur "1" Deaccel 0.1 1.5
  142. Animate HudResources PulseAmount "1" Linear 0.1 2
  143.  
  144. Animate HudResources PulseAmount "0" Linear 2 2
  145. }
  146.  
  147. event ResourcePickup
  148. {
  149. Animate HudResourcesPickup Alpha "255" Linear 0 0
  150. Animate HudResourcesPickup Position "80 r40" Linear 0 0
  151. Animate HudResourcesPickup Position "80 r120" Deaccel 0 1
  152. Animate HudResourcesPickup Blur "7" Deaccel 0 0.2
  153. Animate HudResourcesPickup Alpha "0" Deaccel .8 0.2
  154. Animate HudResourcesPickup Blur "1" Deaccel 0.2 0.3
  155. }
  156.  
  157. event HintMessageShow
  158. {
  159. Animate HudHintDisplay HintSize "1" Deaccel 0.0 0.3
  160. Animate HudHintDisplay FgColor "FgColor" Linear 0.4 0.4
  161.  
  162. // flash text
  163. Animate HudHintDisplay FgColor "FgColor" Linear 1.5 0.01
  164. Animate HudHintDisplay FgColor "255 220 0 255" Linear 2.0 0.2
  165. Animate HudHintDisplay FgColor "FgColor" Linear 2.2 0.2
  166. Animate HudHintDisplay FgColor "255 220 0 255" Linear 3.0 0.2
  167. Animate HudHintDisplay FgColor "FgColor" Linear 3.2 0.2
  168.  
  169. // hide the panel after a while
  170. Animate HudHintDisplay FgColor "255 220 0 0" Linear 10.0 0.2
  171. Animate HudHintDisplay HintSize "0" Deaccel 10.2 0.3
  172. }
  173.  
  174.  
  175. event HintMessageHide
  176. {
  177. Animate HudHintDisplay FgColor "255 220 0 0" Linear 0.0 0.2
  178. Animate HudHintDisplay HintSize "0" Deaccel 0.2 0.3
  179. }
  180.  
  181. event KeyHintMessageShow
  182. {
  183. // show the hints
  184. Animate HudHintKeyDisplay Alpha 255 Linear 0.0 0.5
  185.  
  186. // flash text
  187. Animate HudHintKeyDisplay FgColor "FgColor" Linear 0.0 0.01
  188. Animate HudHintKeyDisplay FgColor "255 220 0 255" Linear 0.5 0.2
  189. Animate HudHintKeyDisplay FgColor "FgColor" Linear 0.7 0.2
  190. Animate HudHintKeyDisplay FgColor "255 220 0 255" Linear 1.5 0.2
  191. Animate HudHintKeyDisplay FgColor "FgColor" Linear 1.7 0.2
  192.  
  193. // hide the panel after a while
  194. Animate HudHintKeyDisplay Alpha 0 Linear 12.0 1.0
  195. }
  196.  
  197. event KeyHintMessageHide
  198. {
  199. Animate HudHintKeyDisplay Alpha 0 Linear 0.0 0.5
  200. }
  201.  
  202. //===========================================
  203.  
  204. //Health Bonus Pulse
  205. event HudHealthBonusPulse
  206. {
  207. Animate PlayerStatusHealthBonusImage Alpha "255" Linear 0.0 0.2
  208. Animate PlayerStatusHealthBonusImage Alpha "128" Linear 0.2 0.4
  209.  
  210.  
  211. Animate PlayerStatusHealthValueBG FgColor "SuperBlack" Linear 0.0 0.2
  212. Animate PlayerStatusHealthValueBG FgColor "SuperBlack" Linear 0.2 0.4
  213.  
  214. Animate PlayerStatusHealthValue Alpha "255" Linear 0.0 0.2
  215. Animate PlayerStatusHealthValue Alpha "255" Linear 0.2 0.4
  216.  
  217. RunEvent HudHealthBonusPulseLoop 0.4
  218.  
  219. Animate PlayerStatusHealthValue FgColor "0 120 201 255" Linear 0.0 0.0001
  220. Animate PlayerStatusHealthValue FgColor "0 120 201 255" Accel 0.0 0.00
  221. }
  222.  
  223. // call to loop HudHealthBonusPulse
  224. event HudHealthBonusPulseLoop
  225. {
  226. RunEvent HudHealthBonusPulse 0.0
  227. }
  228.  
  229. event HudHealthBonusPulseStop
  230. {
  231. StopEvent HudHealthBonusPulse 0.0
  232. StopEvent HudHealthBonusPulseLoop 0.0
  233. Animate PlayerStatusHealthValueBG FgColor "SuperBlack" Linear 0.0 0.0001
  234.  
  235. Animate PlayerStatusHealthValue alpha 255" Linear 0.0 0.00
  236. Animate PlayerStatusHealthValue FgColor "white" accel 0.0 0.00
  237. }
  238.  
  239. //===========================================
  240.  
  241. //Health Dying Pulse
  242. event HudHealthDyingPulse
  243. {
  244. Animate PlayerStatusHealthBonusImage Alpha "255" Linear 0.0 0.075
  245. Animate PlayerStatusHealthBonusImage Alpha "0" Linear 0.125 0.075
  246.  
  247. Animate PlayerStatusHealthValue Alpha "255" Linear 0.0 0.075
  248. Animate PlayerStatusHealthValue Alpha "255" Linear 0.125 0.075
  249. Animate PlayerStatusHealthValue alpha 255 linear 0.0 0.0
  250. Animate PlayerStatusHealthValue FgColor "226 0 0 255" linear 0.0 0.0
  251.  
  252. RunEvent HudHealthDyingPulseLoop 0.25
  253. }
  254.  
  255. // call to loop HudHealthDyingPulse
  256. event HudHealthDyingPulseLoop
  257. {
  258. RunEvent HudHealthDyingPulse 0.0
  259. }
  260.  
  261. event HudHealthDyingPulseStop
  262. {
  263. StopEvent HudHealthDyingPulse 0.0
  264. StopEvent HudHealthDyingPulseLoop 0.0
  265. Animate PlayerStatusHealthValue alpha 255 linear 0.0 0.0
  266. Animate PlayerStatusHealthValue fgcolor "White" accel 0.0 0.0
  267. }
  268.  
  269. //===========================================
  270.  
  271. event HudLowAmmoPulse
  272. {
  273. Animate HudWeaponLowAmmoImage Alpha "255" Linear 0.0 0.075
  274. Animate HudWeaponLowAmmoImage Alpha "0" Linear 0.125 0.075
  275. Animate AmmoInClipShadow FgColor "RedSolid" Linear 0.0 0.0001 // pvhud
  276. Animate AmmoInReserveShadow FgColor "RedSolid" Linear 0.0 0.0001 // pvhud
  277. Animate AmmoNoClipShadow FgColor "RedSolid" Linear 0.0 0.0001 // pvhud
  278.  
  279. RunEvent HudLowAmmoPulseLoop 0.25
  280. }
  281.  
  282. // call to loop HudLowAmmoPulse
  283. event HudLowAmmoPulseLoop
  284. {
  285. RunEvent HudLowAmmoPulse 0.0
  286. }
  287.  
  288. event HudLowAmmoPulseStop
  289. {
  290. Animate AmmoInClipShadow FgColor "SuperBlack" Linear 0.0 0.0001 // pvhud
  291. Animate AmmoInReserveShadow FgColor "SuperBlack" Linear 0.0 0.0001 // pvhud
  292. Animate AmmoNoClipShadow FgColor "SuperBlack" Linear 0.0 0.0001 // pvhud
  293.  
  294. StopEvent HudLowAmmoPulse 0.0
  295. StopEvent HudLowAmmoPulseLoop 0.0
  296. }
  297.  
  298. //===========================================
  299.  
  300. event ControlPointIconShrink
  301. {
  302. Animate HudControlPointIcons icon_expand "0" Linear 0.0 0.2
  303. }
  304.  
  305. event ControlPointIconGrow
  306. {
  307. Animate HudControlPointIcons icon_expand "4" Linear 0.0 0.2
  308. }
  309.  
  310. // Metal Account
  311.  
  312. //activecolor - instantly turn red, fade back to yellow
  313. event AccountMoneyRemoved
  314. {
  315. Animate HudAccount FgColor "HudIcon_Red" Linear 0.0 0.0001
  316. Animate HudAccount FgColor "OrangeDim" Accel 0.0 3.0
  317.  
  318. Animate HudAccount Ammo2Color "HudIcon_Red" Linear 0.0 0.0001
  319. Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 3.0
  320. }
  321.  
  322. //activecolor - instantly turn green, fade back to yellow
  323. event AccountMoneyAdded
  324. {
  325. Animate HudAccount FgColor "HudIcon_Green" Linear 0.0 0.0001
  326. Animate HudAccount FgColor "OrangeDim" Accel 0.0 3.0
  327.  
  328. Animate HudAccount Ammo2Color "HudIcon_Green" Accel 0.0 0.0001
  329. Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 3.0
  330. }
  331.  
  332. event AccountMoneyInvisible
  333. {
  334. Animate HudAccount FgColor "OrangeDim" Accel 0.0 0.0001
  335. Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 0.0001
  336. }
  337.  
  338. //===========================================
  339.  
  340. event FlagOutlineHide
  341. {
  342. Animate OutlineImage Alpha "0" Linear 0.0 0.1
  343. }
  344.  
  345. // Local player flag pickup/drop
  346. event FlagOutline
  347. {
  348. RunEvent FlagOutlineHide 0.0
  349. Animate OutlineImage Alpha "0" Linear 0.1 0.2
  350.  
  351. Animate OutlineImage Position "c-200 140" Linear 0.1 0.2
  352. Animate OutlineImage Size "400 200" Linear 0.1 0.2
  353.  
  354. Animate OutlineImage Position "c-50 r137" Linear 0.7 0.2 [$WIN32]
  355. Animate OutlineImage Position "c-50 r158" Linear 0.7 0.2 [$X360]
  356. Animate OutlineImage Size "100 50" Linear 0.7 0.2
  357.  
  358. Animate OutlineImage Alpha "0" Linear 0.9 0.1
  359. }
  360.  
  361. //===========================================
  362.  
  363. // Spy Disguise
  364. event HudSpyDisguiseChanged
  365. {
  366. Animate PlayerStatusSpyOutlineImage Alpha "0" Linear 0.0 0.2
  367.  
  368. Animate PlayerStatusSpyOutlineImage Position "c-200 c-200" Linear 0.0 0.2
  369. Animate PlayerStatusSpyOutlineImage Size "400 400" Linear 0.0 0.2
  370.  
  371. RunEvent HudSpyDisguiseHide 0.7
  372. }
  373.  
  374. event HudSpyDisguiseHide
  375. {
  376. Animate PlayerStatusSpyOutlineImage Position "3 413" Linear 0.0 0.2
  377. Animate PlayerStatusSpyOutlineImage Size "55 55" Linear 0.0 0.2
  378.  
  379. Animate PlayerStatusSpyOutlineImage Alpha "0" Linear 0.2 0.1
  380. }
  381.  
  382. event HudSpyDisguiseFadeIn
  383. {
  384. RunEvent HudSpyDisguiseChanged 0
  385. Animate PlayerStatusSpyImage Alpha "255" Linear 0.9 0.1
  386.  
  387. }
  388.  
  389. event HudSpyDisguiseFadeOut
  390. {
  391. RunEvent HudSpyDisguiseChanged 0
  392. Animate PlayerStatusSpyImage Alpha "0" Linear 0.9 0.1
  393. }
  394.  
  395. //===========================================
  396.  
  397. // Show the Overtime panel
  398. event OvertimeShow
  399. {
  400. Animate OvertimeLabel Alpha "255" Linear 0.0 0.1
  401. Animate OvertimeBG Alpha "255" Linear 0.0 0.1
  402. }
  403.  
  404.  
  405. event HudSnapShotReminderIn
  406. {
  407. Animate ScreenshotPanel Position "c-83 -50" Linear 0.0 0.001
  408. Animate ScreenshotPanel Position "c-83 13" Spline 0.001 0.2
  409. }
  410.  
  411. event HudTournamentSetupPanelOpen
  412. {
  413. Animate HudTournamentSetup Position "c-66 -70" Linear 0.0 0.001
  414. Animate HudTournamentSetup Position "c-66 200" Spline 0.001 0.2
  415. }
  416.  
  417. event HudTournamentSetupPanelClose
  418. {
  419. Animate HudTournamentSetup Position "c-66 200" Linear 0.0 0.001
  420. Animate HudTournamentSetup Position "c-66 -70" Spline 0.001 0.2
  421. }
  422.  
  423.  
  424. //====================================
  425.  
  426. // Flash the medic charge hud when we have full charge
  427.  
  428. event HudMedicCharged
  429. {
  430. Animate ChargeLabel FgColor "TanLight" Linear 0.0 0.1
  431. Animate ChargeLabel FgColor "TanDarker" Linear 0.3 0.4
  432. Animate ChargeLabel2 FgColor "255 0 255 255" Linear 0.0 0.0001
  433.  
  434. Animate ChargeMeter FgColor "255 0 255 255" Linear 0.0 0.1
  435. Animate ChargeMeter FgColor "64 0 64 255" Linear 0.3 0.4
  436.  
  437. RunEvent HudMedicChargedLoop 0.6
  438. }
  439.  
  440. // call to loop HudHealthBonusPulse
  441. event HudMedicChargedLoop
  442. {
  443. RunEvent HudMedicCharged 0.0
  444. }
  445.  
  446. event HudMedicChargedStop
  447. {
  448. StopEvent HudMedicCharged 0.0
  449. StopEvent HudMedicChargedLoop 0.0
  450.  
  451. Animate ChargeLabel FgColor "TanLight" Linear 0.0 0.0001
  452. Animate ChargeLabel2 FgColor "TanLight" Linear 0.0 0.0001
  453.  
  454. Animate ChargeMeter FgColor "TanLight" Linear 0.0 0.0001
  455. }
  456.  
  457. //====================================
  458.  
  459. event VideoCaptionFadeIn
  460. {
  461. Animate VideoCaption Alpha "255" Linear 0.0 0.1
  462. }
  463.  
  464. event VideoCaptionFadeOut
  465. {
  466. Animate VideoCaption Alpha "0" Linear 0.0 0.1
  467. }
  468.  
  469. //====================================
  470.  
  471. // arena
  472.  
  473. event ArenaVsPanelOnShow
  474. {
  475. Animate bluepanel Position "-200 50" Linear 0.0 0.001
  476. Animate redpanel Position "r-200 140" Linear 0.0 0.001
  477. Animate vslabel Alpha "0" Linear 0.0 0.001
  478.  
  479. RunEvent ArenaVsPanelSlideIn 1.0
  480. RunEvent ArenaVsPanelSlideOut 4.8
  481. }
  482.  
  483. event ArenaVsPanelSlideIn
  484. {
  485. Animate bluepanel Position "c-100 50" Spline 0.0 0.2
  486. Animate redpanel Position "c-100 140" Spline 0.0 0.2
  487. Animate vslabel Alpha "255" Linear 0.15 0.2
  488. }
  489.  
  490. event ArenaVsPanelSlideOut
  491. {
  492. Animate bluepanel Position "-200 50" Spline 0.0 0.2
  493. Animate redpanel Position "r-200 140" Spline 0.0 0.2
  494. Animate vslabel Alpha "0" Linear 0.0 0.05
  495. }
  496.  
  497. //===========================================
  498.  
  499. //Cart Alarm Pulse
  500. event HudCartAlarmPulse
  501. {
  502. Animate EscortItemImageAlert Alpha "160" Linear 0.0 0.3
  503. Animate EscortItemImageAlert Alpha "0" Linear 0.6 0.3
  504.  
  505. RunEvent HudCartAlarmPulseLoop 1.2
  506. }
  507.  
  508. event HudCartAlarmPulseLoop
  509. {
  510. RunEvent HudCartAlarmPulse 0.0
  511. }
  512.  
  513. event HudCartAlarmPulseStop
  514. {
  515. StopEvent HudCartAlarmPulse 0.0
  516. StopEvent HudCartAlarmPulseLoop 0.0
  517. }
  518.  
  519. //===========================================
  520.  
  521. // Active Timer BG Pulse
  522. event ActiveTimerBGPulse
  523. {
  524. Animate ActiveTimerBG Alpha "255" Linear 0.0 0.1
  525. Animate ActiveTimerBG Alpha "0" Linear 0.2 0.1
  526.  
  527. Animate ActiveTimerBG Alpha "255" Linear 0.4 0.1
  528. Animate ActiveTimerBG Alpha "0" Linear 0.6 0.1
  529.  
  530. Animate ActiveTimerBG Alpha "255" Linear 0.8 0.1
  531. Animate ActiveTimerBG Alpha "0" Linear 1.0 0.1
  532.  
  533. Animate ActiveTimerBG Alpha "255" Linear 1.2 0.1
  534.  
  535. }
  536.  
  537. //===========================================
  538.  
  539. event TeamsFullArrowAnimate
  540. {
  541. Animate TeamsFullArrow Position "c-118 165" Linear 0 0
  542. Animate TeamsFullArrow Position "c-118 180" Linear 0 0.4
  543. Animate TeamsFullArrow Position "c-118 165" Linear 0.4 0.4
  544.  
  545. RunEvent TeamsFullArrowAnimateLoop 0.8
  546. }
  547.  
  548. event TeamsFullArrowAnimateLoop
  549. {
  550. RunEvent TeamsFullArrowAnimate 0.0
  551. }
  552.  
  553. event TeamsFullArrowAnimateEnd
  554. {
  555. StopEvent TeamsFullArrowAnimate 0.0
  556. StopEvent TeamsFullArrowAnimateLoop 0.0
  557. }
  558.  
  559.  
  560. //===========================================
  561.  
  562. event TrainingHudBounce
  563. {
  564. Animate ObjectiveStatusTraining Position "c-160 r187" Linear 0 0
  565. Animate ObjectiveStatusTraining Position "c-160 r127" Bounce 0.0 2.0
  566. }
  567.  
  568. event TrainingPressSpacebarBlink
  569. {
  570. Animate PressSpacebarToContinue Alpha "255" Linear 0.0 0.1
  571. Animate PressSpacebarToContinue Alpha "0" Linear 0.2 0.1
  572.  
  573. Animate PressSpacebarToContinue Alpha "255" Linear 0.4 0.1
  574. Animate PressSpacebarToContinue Alpha "0" Linear 0.6 0.1
  575.  
  576. Animate PressSpacebarToContinue Alpha "255" Linear 0.8 0.1
  577. Animate PressSpacebarToContinue Alpha "0" Linear 1.0 0.1
  578.  
  579. Animate PressSpacebarToContinue Alpha "255" Linear 1.2 0.1
  580.  
  581. RunEvent TrainingPressSpacebarBlinkLoop 3.0
  582. }
  583.  
  584. event TrainingPressSpacebarBlinkLoop
  585. {
  586. RunEvent TrainingPressSpacebarBlink 0.0
  587. }
  588.  
  589. event TrainingPressSpacebarBlinkStop
  590. {
  591. StopEvent TrainingPressSpacebarBlink 0.0
  592. StopEvent TrainingPressSpacebarBlinkLoop 0.0
  593. }
  594.  
  595. //===========================================
  596.  
  597. event IntroMovieContinueBlink
  598. {
  599. Animate continue Alpha "255" Linear 0.0 0.1
  600. Animate continue Alpha "0" Linear 0.2 0.1
  601.  
  602. Animate continue Alpha "255" Linear 0.4 0.1
  603. Animate continue Alpha "0" Linear 0.6 0.1
  604.  
  605. Animate continue Alpha "255" Linear 0.8 0.1
  606. Animate continue Alpha "0" Linear 1.0 0.1
  607.  
  608. Animate continue Alpha "255" Linear 1.2 0.1
  609.  
  610. RunEvent IntroMovieContinueBlinkLoop 2.0
  611. }
  612.  
  613. event IntroMovieContinueBlinkLoop
  614. {
  615. RunEvent IntroMovieContinueBlink 0.0
  616. }
  617.  
  618. event IntroMovieContinueBlinkStop
  619. {
  620. StopEvent IntroMovieContinueBlink 0.0
  621. StopEvent IntroMovieContinueBlinkLoop 0.0
  622. }
  623.  
  624. //===========================================
  625.  
  626. event HasNotificationsBlink
  627. {
  628. Animate NotificationsShowButton Alpha "255" Linear 0.0 0.1
  629. Animate NotificationsShowButton Alpha "0" Linear 0.2 0.1
  630.  
  631. Animate NotificationsShowButton Alpha "255" Linear 0.4 0.1
  632. Animate NotificationsShowButton Alpha "0" Linear 0.6 0.1
  633.  
  634. Animate NotificationsShowButton Alpha "255" Linear 0.8 0.1
  635. Animate NotificationsShowButton Alpha "0" Linear 1.0 0.1
  636.  
  637. Animate NotificationsShowButton Alpha "255" Linear 1.2 0.1
  638.  
  639. RunEvent HasNotificationsBlinkLoop 2.0
  640. }
  641.  
  642. event HasNotificationsBlinkLoop
  643. {
  644. RunEvent HasNotificationsBlink 0.0
  645. }
  646.  
  647. event HasNotificationsBlinkStop
  648. {
  649. StopEvent HasNotificationsBlink 0.0
  650. StopEvent HasNotificationsBlinkLoop 0.0
  651. Animate NotificationsShowButton Alpha "255" Linear 0.0 0.1
  652. }
  653.  
  654. //===========================================
  655.  
  656. event AddToCartBlink
  657. {
  658. Animate CartButton BgColor "TanDark" Linear 0.0 0.01
  659. Animate CartButton BgColor "255 150 0 255" Linear 0.1 0.01
  660.  
  661. Animate CartButton BgColor "TanDark" Linear 0.2 0.01
  662. Animate CartButton BgColor "255 150 0 255" Linear 0.3 0.01
  663.  
  664. Animate CartButton BgColor "TanDark" Linear 0.4 0.01
  665. Animate CartButton BgColor "255 150 0 255" Linear 0.5 0.01
  666.  
  667. Animate CartButton BgColor "TanDark" Linear 0.6 0.01
  668. Animate CartButton BgColor "255 150 0 255" Linear 0.7 0.01
  669.  
  670. Animate CartButton BgColor "TanDark" Linear 0.8 0.01
  671. Animate CartButton BgColor "255 150 0 255" Linear 0.9 0.01
  672.  
  673. Animate CartButton BgColor "TanDark" Linear 1.0 0.01
  674. }
  675.  
  676. //===========================================
  677.  
  678. event NotificationsPresentBlink
  679. {
  680. Animate NotificationsPresentPanel Alpha "255" Linear 0.0 0.1
  681. Animate NotificationsPresentPanel Alpha "0" Linear 0.2 0.1
  682.  
  683. Animate NotificationsPresentPanel Alpha "255" Linear 0.4 0.1
  684. Animate NotificationsPresentPanel Alpha "0" Linear 0.6 0.1
  685.  
  686. Animate NotificationsPresentPanel Alpha "255" Linear 0.8 0.1
  687. Animate NotificationsPresentPanel Alpha "0" Linear 1.0 0.1
  688.  
  689. Animate NotificationsPresentPanel Alpha "255" Linear 1.2 0.1
  690.  
  691. RunEvent NotificationsPresentBlinkLoop 2.0
  692. }
  693.  
  694. event NotificationsPresentBlinkLoop
  695. {
  696. RunEvent NotificationsPresentBlink 0.0
  697. }
  698.  
  699. event NotificationsPresentBlinkStop
  700. {
  701. StopEvent NotificationsPresentBlink 0.0
  702. StopEvent NotificationsPresentBlinkLoop 0.0
  703. Animate NotificationsPresentPanel Alpha "255" Linear 0.0 0.1
  704. }
Add Comment
Please, Sign In to add comment