home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 November / CDVD1105.ISO / Util / Winamp / Skins / Anime_Shogo.wal / scripts / frame.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2004-08-17  |  7KB  |  257 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global Group Group11;
  6. Global Group Group12;
  7. Global Group Group13;
  8. Global String String14;
  9. Global String String15;
  10. Global String String16;
  11. Global String String17;
  12. Global String String18;
  13. Global String String19;
  14. Global String String20;
  15. Global String String21;
  16. Global Layer Layer22;
  17. Global Layer Layer23;
  18. Global Layer Layer24;
  19. Global Layer Layer25;
  20. Global Layer Layer26;
  21. Global Layer Layer27;
  22. Global Text Text28;
  23. Global Button Button29;
  24. Global Timer Timer30;
  25. Global Double Double31;
  26. Global Double Double32;
  27. Global Boolean Boolean33;
  28.  
  29. Function func1212(String "0");
  30. Function func2572(Int 0, Int 0);
  31.  
  32. System.onScriptLoaded()
  33. {
  34. String String38;
  35. Group11 = System.getScriptGroup();
  36. Text28 = Group11.findObject(( "window\.titlebar\.title"));
  37. Layer23 = Group11.findObject(( "component\.play\.left"));
  38. Layer24 = Group11.findObject(( "component\.play\.middle"));
  39. Layer25 = Group11.findObject(( "component\.play\.right"));
  40. String38 = System.getParam();
  41. String14 = System.getToken(String38, ( "\,"), 0);
  42. String15 = System.getToken(String38, ( "\,"), 1);
  43. String16 = System.getToken(String38, ( "\,"), 2);
  44. String17 = System.getToken(String38, ( "\,"), 3);
  45. String18 = System.getToken(String38, ( "\,"), 4);
  46. String19 = System.getToken(String38, ( "\,"), 5);
  47. String20 = System.getToken(String38, ( "\,"), 6);
  48. String21 = System.getToken(String38, ( "\,"), 7);
  49. Button29 = Group11.findObject(( "sysmenu"));
  50. Layer26 = Group11.findObject(( "component\.vu\.left"));
  51. Layer27 = Group11.findObject(( "component\.vu\.right"));
  52. Boolean33 = System.getPrivateInt(System.getSkinName(), ( "StdVU"), 1);
  53. Timer30 = ( new Timer);
  54. Timer30.setDelay(30);
  55. Timer30.start();
  56. return Null;
  57. }
  58.  
  59. System.onSetXuiParam(String param, String value)
  60. {
  61. if(( param == ( "content"))) {
  62. func1212(value);
  63. Group13 = Group11.findObject(( "wasabi\.titlebar"));
  64. Layer22 = Group13.findObject(( "mousetrap"));
  65. }
  66. if(( ( param == ( "padtitleright")) || ( param == ( "padtitleleft")))) {
  67. if(( Group13 != Null)) {
  68. Group13.setXmlParam(param, value);
  69. }
  70. }
  71. if(( param == ( "shade"))) {
  72. if(( Layer22 != Null)) {
  73. Layer22.setXmlParam(( "dblclickaction"), ( ( "switch\;") + value));
  74. } else {
  75. System.messageBox(( "Cannot\ set\ shade\ parameter\ for\ StandardFrame\ object\,\ no\ mousetrap\ found"), ( "Skin\ Error"), 0, ( ""));
  76. }
  77. }
  78. return Null;
  79. }
  80.  
  81. Int Group11.onNotify(String command, String param, int a, int b)
  82. {
  83. String String68;
  84. String String67;
  85. String67 = System.getToken(command, ( "\,"), 0);
  86. String68 = System.getToken(command, ( "\,"), 1);
  87. if(( ( ( ( String67 == ( "content")) || ( String67 == ( "padtitleright"))) || ( String67 == ( "padtitleleft"))) || ( String67 == ( "shade")))) {
  88. System.onSetXuiParam(String67, String68);
  89. }
  90. return Null;
  91. }
  92.  
  93. func1212(String "0")
  94. {
  95. Group12 = System.newGroup(String69);
  96. if(( Group12 == Null)) {
  97. System.messageBox(( ( ( "group\ \"") + String69) + ( "\"\ not\ found")), ( "ButtonGroup"), 0, ( ""));
  98. return Null;
  99. }
  100. Group12.setXmlParam(( "x"), String14);
  101. Group12.setXmlParam(( "y"), String15);
  102. Group12.setXmlParam(( "w"), String16);
  103. Group12.setXmlParam(( "h"), String17);
  104. Group12.setXmlParam(( "relatx"), String18);
  105. Group12.setXmlParam(( "relaty"), String19);
  106. Group12.setXmlParam(( "relatw"), String20);
  107. Group12.setXmlParam(( "relath"), String21);
  108. Group12.init(Group11);
  109. return Null;
  110. }
  111.  
  112. Button29.onLeftClick()
  113. {
  114. LayoutStatus LayoutStatus82;
  115. LayoutStatus82 = Group11.findObject(( "sysmenu\.status"));
  116. LayoutStatus82.callme(( "\{system\}"));
  117. return Null;
  118. }
  119.  
  120. Layer23.onEnterArea()
  121. {
  122. Text28.setXmlParam(( "default"), ( "Double\ Click\ To\ Play"));
  123. Layer23.setXmlParam(( "image"), ( "frame\.play\.left\.hover"));
  124. Layer24.setXmlParam(( "image"), ( "frame\.play\.middle\.hover"));
  125. Layer25.setXmlParam(( "image"), ( "frame\.play\.right\.hover"));
  126. return Null;
  127. }
  128.  
  129. Layer24.onEnterArea()
  130. {
  131. Text28.setXmlParam(( "default"), ( "Double\ Click\ To\ Play"));
  132. Layer23.setXmlParam(( "image"), ( "frame\.play\.left\.hover"));
  133. Layer24.setXmlParam(( "image"), ( "frame\.play\.middle\.hover"));
  134. Layer25.setXmlParam(( "image"), ( "frame\.play\.right\.hover"));
  135. return Null;
  136. }
  137.  
  138. Layer25.onEnterArea()
  139. {
  140. Text28.setXmlParam(( "default"), ( "Double\ Click\ To\ Play"));
  141. Layer23.setXmlParam(( "image"), ( "frame\.play\.left\.hover"));
  142. Layer24.setXmlParam(( "image"), ( "frame\.play\.middle\.hover"));
  143. Layer25.setXmlParam(( "image"), ( "frame\.play\.right\.hover"));
  144. return Null;
  145. }
  146.  
  147. Layer23.onLeaveArea()
  148. {
  149. Text28.setXmlParam(( "default"), ( "\:componentname"));
  150. Layer23.setXmlParam(( "image"), ( "frame\.play\.left"));
  151. Layer24.setXmlParam(( "image"), ( "frame\.play\.middle"));
  152. Layer25.setXmlParam(( "image"), ( "frame\.play\.right"));
  153. return Null;
  154. }
  155.  
  156. Layer24.onLeaveArea()
  157. {
  158. Text28.setXmlParam(( "default"), ( "\:componentname"));
  159. Layer23.setXmlParam(( "image"), ( "frame\.play\.left"));
  160. Layer24.setXmlParam(( "image"), ( "frame\.play\.middle"));
  161. Layer25.setXmlParam(( "image"), ( "frame\.play\.right"));
  162. return Null;
  163. }
  164.  
  165. Layer25.onLeaveArea()
  166. {
  167. Text28.setXmlParam(( "default"), ( "\:componentname"));
  168. Layer23.setXmlParam(( "image"), ( "frame\.play\.left"));
  169. Layer24.setXmlParam(( "image"), ( "frame\.play\.middle"));
  170. Layer25.setXmlParam(( "image"), ( "frame\.play\.right"));
  171. return Null;
  172. }
  173.  
  174. Layer23.onLeftButtonDblClk(int x, int y)
  175. {
  176. System.play();
  177. complete;
  178. return Null;
  179. }
  180.  
  181. Layer24.onLeftButtonDblClk(int x, int y)
  182. {
  183. System.play();
  184. complete;
  185. return Null;
  186. }
  187.  
  188. Layer25.onLeftButtonDblClk(int x, int y)
  189. {
  190. System.play();
  191. complete;
  192. return Null;
  193. }
  194.  
  195. Timer30.onTimer()
  196. {
  197. Double31 = System.getLeftVuMeter();
  198. Double32 = System.getRightVuMeter();
  199. if(Boolean33) {
  200. func2572(Double31, Double32);
  201. }
  202. return Null;
  203. }
  204.  
  205. func2572(Int 0, Int 0)
  206. {
  207. Layer26.setTargetA(Int100);
  208. Layer26.setTargetSpeed(( 0.0500000007450581));
  209. Layer26.gotoTarget();
  210. Layer27.setTargetA(Int101);
  211. Layer27.setTargetSpeed(( 0.0500000007450581));
  212. Layer27.gotoTarget();
  213. return Null;
  214. }
  215.  
  216. Layer26.onLeftButtonUp(int x, int y)
  217. {
  218. if(Boolean33) {
  219. Boolean33 = 0;
  220. Layer26.setTargetA(0);
  221. Layer26.setTargetSpeed(( 0.5));
  222. Layer26.gotoTarget();
  223. Layer27.setTargetA(0);
  224. Layer27.setTargetSpeed(( 0.5));
  225. Layer27.gotoTarget();
  226. } else {
  227. Boolean33 = 1;
  228. }
  229. return Null;
  230. }
  231.  
  232. Layer27.onLeftButtonUp(int x, int y)
  233. {
  234. if(Boolean33) {
  235. Boolean33 = 0;
  236. Layer26.setTargetA(0);
  237. Layer26.setTargetSpeed(( 0.5));
  238. Layer26.gotoTarget();
  239. Layer27.setTargetA(0);
  240. Layer27.setTargetSpeed(( 0.5));
  241. Layer27.gotoTarget();
  242. } else {
  243. Boolean33 = 1;
  244. }
  245. return Null;
  246. }
  247.  
  248. System.onScriptUnloading()
  249. {
  250. System.setPrivateInt(System.getSkinName(), ( "StdVU"), Boolean33);
  251. Timer30.stop();
  252. delete Timer30;
  253. return Null;
  254. }
  255.  
  256.  
  257.