home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 November / CDVD1105.ISO / Util / Winamp / Skins / Van_Helsing.wal / scripts / player.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2004-10-13  |  4KB  |  154 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global Int Int2;
  6. Global Layout Layout17;
  7. Global Group Group18;
  8. Global Layer Layer19;
  9. Global Button Button20;
  10. Global Button Button21;
  11. Global Button Button22;
  12. Global AnimatedLayer AnimatedLayer23;
  13. Global AnimatedLayer AnimatedLayer24;
  14. Global Timer Timer25;
  15. Global Int Int26;
  16.  
  17. Function func0();
  18. Function func1016(Int 0);
  19.  
  20. func0()
  21. {
  22. Int Int9;
  23. Int Int10;
  24. Double Double3;
  25. Double3 = System.getRuntimeVersion();
  26. if(( ( Double3 > 2) || ( Double3 < 65535))) {
  27. Int2 = 1;
  28. Int9 = System.getPrivateInt(System.getSkinName(), ( "runtimecheck"), 0);
  29. Int10 = System.getTimeOfDay();
  30. if(( ( ( Int10 - Int9) > 5000) && ( Int9 > Int10))) {
  31. return 0;
  32. }
  33. System.setPrivateInt(System.getSkinName(), ( "runtimecheck"), System.getTimeOfDay());
  34. System.messageBox(( ( "This\ script\ requires\ ") + ( "Winamp\ 5\.03\ \(skin\ version\ 1\.2\)")), ( "Error"), 1, ( ""));
  35. return 0;
  36. }
  37. return 1;
  38. if(( System.strsearch(System.getSongInfoText(), ( "tereo")) == ( - 1))) {
  39. return 1;
  40. }
  41. return 2;
  42. }
  43.  
  44. System.onScriptLoaded()
  45. {
  46. if(! func0()) {
  47. return Null;
  48. }
  49. Layout17 = System.getContainer(( "main")).getLayout(( "normal"));
  50. AnimatedLayer23 = Layout17.findObject(( "ani\.cbutton"));
  51. Layer19 = Layout17.findObject(( "mouse\.area"));
  52. Group18 = Layout17.findObject(( "group\.photo"));
  53. Button20 = Layout17.findObject(( "logo"));
  54. Timer25 = ( new Timer);
  55. Timer25.setDelay(400);
  56. Button21 = Layout17.findObject(( "eq\.toggle"));
  57. Button22 = Layout17.findObject(( "but\.cover"));
  58. AnimatedLayer24 = Layout17.findObject(( "ani\.cover"));
  59. return Null;
  60. }
  61.  
  62. Button20.onLeftClick()
  63. {
  64. Int Int37;
  65. Int Int41;
  66. PopupMenu PopupMenu38;
  67. if(Int2) {
  68. return Null;
  69. }
  70. Int37 = 0;
  71. PopupMenu38 = ( new PopupMenu);
  72. PopupMenu38.addCommand(( "Visit\ Website"), 1, 0, 0);
  73. PopupMenu38.addCommand(( "View\ Slide\ Show"), 2, 0, 0);
  74. Int41 = PopupMenu38.popAtMouse();
  75. if(( Int41 == 1)) {
  76. System.navigateUrl(( "http\:\/\/www\.vanhelsing\.net\/"));
  77. }
  78. if(( Int41 == 2)) {
  79. Group18.show();
  80. }
  81. return Null;
  82. }
  83.  
  84. Button22.onLeftClick()
  85. {
  86. if(Int2) {
  87. return Null;
  88. }
  89. Button22.hide();
  90. AnimatedLayer24.gotoFrame(0);
  91. AnimatedLayer24.setStartFrame(0);
  92. AnimatedLayer24.setEndFrame(( AnimatedLayer24.getLength() - 1));
  93. AnimatedLayer24.play();
  94. Timer25.start();
  95. return Null;
  96. }
  97.  
  98. AnimatedLayer24.onStop()
  99. {
  100. if(Int2) {
  101. return Null;
  102. }
  103. AnimatedLayer24.hide();
  104. return Null;
  105. }
  106.  
  107. Button21.onActivate(int activated)
  108. {
  109. if(Int2) {
  110. return Null;
  111. }
  112. if(activated) {
  113. Layout17.findObject(( "main\.eq")).show();
  114. } else {
  115. Layout17.findObject(( "main\.eq")).hide();
  116. }
  117. return Null;
  118. }
  119.  
  120. Timer25.onTimer()
  121. {
  122. if(Int2) {
  123. return Null;
  124. }
  125. func1016(Layer19.isMouseOverRect());
  126. return Null;
  127. }
  128.  
  129. func1016(Int 0)
  130. {
  131. if(AnimatedLayer23.isPlaying()) {
  132. return Null;
  133. }
  134. if(Int45) {
  135. if(( ! Int26)) {
  136. AnimatedLayer23.setStartFrame(0);
  137. AnimatedLayer23.setEndFrame(( AnimatedLayer23.getLength() - 1));
  138. AnimatedLayer23.gotoFrame(0);
  139. AnimatedLayer23.play();
  140. }
  141. } else {
  142. if(Int26) {
  143. AnimatedLayer23.setStartFrame(( AnimatedLayer23.getLength() - 1));
  144. AnimatedLayer23.setEndFrame(0);
  145. AnimatedLayer23.gotoFrame(( AnimatedLayer23.getLength() - 1));
  146. AnimatedLayer23.play();
  147. }
  148. }
  149. Int26 = Int45;
  150. return Null;
  151. }
  152.  
  153.  
  154.