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

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global Layer Layer11;
  6. Global Map Map12;
  7. Global Boolean Boolean13;
  8.  
  9. Function func295(Int 0);
  10. Function func563(Int 0, Int 0);
  11.  
  12. System.onScriptLoaded()
  13. {
  14. Group Group14;
  15. Group14 = System.getScriptGroup();
  16. Layer11 = Group14.findObject(( "Volume"));
  17. Map12 = ( new Map);
  18. Map12.loadMap(( "shogo\.vol\.map"));
  19. func295(System.getVolume());
  20. return Null;
  21. }
  22.  
  23. System.onVolumeChanged(int newvol)
  24. {
  25. Int Int20;
  26. func295(newvol);
  27. Int20 = ( ( newvol * 100) / 255);
  28. return Null;
  29. }
  30.  
  31. func295(Int 0)
  32. {
  33. Region Region22;
  34. Region22 = ( new Region);
  35. Region22.loadFromMap(Map12, Int21, 1);
  36. Layer11.setRegion(Region22);
  37. delete Region22;
  38. return Null;
  39. }
  40.  
  41. Layer11.onLeftButtonDown(int x, int y)
  42. {
  43. Boolean13 = 1;
  44. func563(x, y);
  45. return Null;
  46. }
  47.  
  48. Layer11.onLeftButtonUp(int x, int y)
  49. {
  50. if(Boolean13) {
  51. Boolean13 = 0;
  52. func563(x, y);
  53. }
  54. return Null;
  55. }
  56.  
  57. Layer11.onMouseMove(int x, int y)
  58. {
  59. if(Boolean13) {
  60. func563(x, y);
  61. }
  62. return Null;
  63. }
  64.  
  65. func563(Int 0, Int 0)
  66. {
  67. Int Int31;
  68. Int31 = Map12.getValue(( Int29 - Layer11.getLeft()), ( Int30 - Layer11.getTop()));
  69. System.setVolume(Int31);
  70. return Null;
  71. }
  72.  
  73. System.onScriptUnloading()
  74. {
  75. delete Map12;
  76. return Null;
  77. }
  78.  
  79.  
  80.