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

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global Button Button11;
  6. Global ToggleButton ToggleButton12;
  7. Global ToggleButton ToggleButton13;
  8. Global Text Text14;
  9. Global Text Text15;
  10. Global Timer Timer16;
  11. Global Boolean Boolean17;
  12. Global Int Int18;
  13.  
  14. Function func1006();
  15. Function func1318(String "0");
  16.  
  17. System.onScriptLoaded()
  18. {
  19. Group Group19;
  20. Group19 = System.getScriptGroup();
  21. Button11 = Group19.findObject(( "MuteButton"));
  22. ToggleButton12 = Group19.findObject(( "ShuffleButton"));
  23. ToggleButton13 = Group19.findObject(( "RepeatButton"));
  24. Text14 = Group19.findObject(( "Songticker"));
  25. Text15 = Group19.findObject(( "Status"));
  26. Timer16 = ( new Timer);
  27. Timer16.setDelay(1000);
  28. if(ToggleButton12.getActivated()) {
  29. ToggleButton12.setXmlParam(( "hoverimage"), ( "shogo\.shuffle\.on\.hover"));
  30. ToggleButton12.setXmlParam(( "tooltip"), ( "Shuffle\ Status\:\ On"));
  31. }
  32. Boolean17 = 0;
  33. func1006();
  34. return Null;
  35. }
  36.  
  37. System.onScriptUnloading()
  38. {
  39. delete Timer16;
  40. return Null;
  41. }
  42.  
  43. ToggleButton13.onToggle(Boolean onoff)
  44. {
  45. Int Int32;
  46. func1006();
  47. Int32 = ToggleButton13.getXmlParam(( "cfgval"));
  48. if(( Int32 == 0)) {
  49. func1318(( "Repeat\ Off"));
  50. } else {
  51. if(( Int32 == 1)) {
  52. func1318(( "Repeat\ All"));
  53. } else {
  54. if(( Int32 == 2)) {
  55. func1318(( "Repeat\ One"));
  56. } else {
  57. if(( Int32 == ( - 1))) {
  58. func1318(( "PLay\ One"));
  59. }
  60. }
  61. }
  62. }
  63. return Null;
  64. }
  65.  
  66. Button11.onLeftButtonUp(int x, int y)
  67. {
  68. if(( ( ! Boolean17) && ( System.getVolume() < 0))) {
  69. Int18 = System.getVolume();
  70. System.setVolume(0);
  71. Boolean17 = 1;
  72. Button11.setXmlParam(( "tooltip"), ( "Mute\ Status\:\ On"));
  73. func1318(( "Mute\ On"));
  74. } else {
  75. Boolean17 = 0;
  76. System.setVolume(Int18);
  77. Button11.setXmlParam(( "tooltip"), ( "Mute\ Status\:\ Off"));
  78. func1318(( "Mute\ Off"));
  79. }
  80. return Null;
  81. }
  82.  
  83. ToggleButton12.onToggle(Boolean onoff)
  84. {
  85. if(onoff) {
  86. ToggleButton12.setXmlParam(( "hoverimage"), ( "shogo\.shuffle\.on\.hover"));
  87. ToggleButton12.setXmlParam(( "tooltip"), ( "Shuffle\ Status\:\ On"));
  88. func1318(( "Shuffle\ On"));
  89. } else {
  90. ToggleButton12.setXmlParam(( "hoverimage"), ( "shogo\.shuffle\.hover"));
  91. ToggleButton12.setXmlParam(( "tooltip"), ( "Shuffle\ Status\:\ Off"));
  92. func1318(( "Shuffle\ Off"));
  93. }
  94. return Null;
  95. }
  96.  
  97. func1006()
  98. {
  99. Int Int49;
  100. Int49 = ToggleButton13.getXmlParam(( "cfgval"));
  101. if(( Int49 == 0)) {
  102. ToggleButton13.setXmlParam(( "hoverimage"), ( "shogo\.repeat\.hover"));
  103. ToggleButton13.setXmlParam(( "tooltip"), ( "Repeat\ Status\:\ Off"));
  104. } else {
  105. if(( Int49 == 1)) {
  106. ToggleButton13.setXmlParam(( "hoverimage"), ( "shogo\.repeat\.on\.hover"));
  107. ToggleButton13.setXmlParam(( "tooltip"), ( "Repeat\ Status\:\ Repeat\ All"));
  108. } else {
  109. if(( Int49 == 2)) {
  110. ToggleButton13.setXmlParam(( "hoverimage"), ( "shogo\.repeat\.on\.hover"));
  111. ToggleButton13.setXmlParam(( "tooltip"), ( "Repeat\ Status\:\ Repeat\ One"));
  112. } else {
  113. if(( Int49 == ( - 1))) {
  114. ToggleButton13.setXmlParam(( "hoverimage"), ( "shogo\.repeat\.on\.hover"));
  115. ToggleButton13.setXmlParam(( "tooltip"), ( "Repeat\ Status\:\ Play\ One"));
  116. }
  117. }
  118. }
  119. }
  120. return Null;
  121. }
  122.  
  123. func1318(String "0")
  124. {
  125. Text14.setTargetA(0);
  126. Text14.setTargetSpeed(( 0.5));
  127. Text14.gotoTarget();
  128. Text15.setTargetA(255);
  129. Text15.setTargetSpeed(( 0.5));
  130. Text15.gotoTarget();
  131. Text15.setText(String56);
  132. Timer16.start();
  133. return Null;
  134. }
  135.  
  136. Timer16.onTimer()
  137. {
  138. Text15.setTargetA(0);
  139. Text15.setTargetSpeed(( 0.5));
  140. Text15.gotoTarget();
  141. Text14.setTargetA(255);
  142. Text14.setTargetSpeed(( 0.5));
  143. Text14.gotoTarget();
  144. Timer16.stop();
  145. return Null;
  146. }
  147.  
  148. System.onVolumeChanged(int newvol)
  149. {
  150. if(( Boolean17 && ( newvol < 0))) {
  151. Boolean17 = 0;
  152. Button11.setXmlParam(( "tooltip"), ( "Mute\ Status\:\ Off"));
  153. }
  154. return Null;
  155. }
  156.  
  157.  
  158.