home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 November / CDVD1105.ISO / Util / Winamp / Skins / CCZ_Skateboard.wal / maki / volume.maki (.txt) < prev   
Winamp Compiled Maki Script  |  2004-10-12  |  3KB  |  63 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 Group16;
  6. Global Layer Layer17;
  7. Global Map Map18;
  8. Global Boolean Boolean19;
  9.  
  10.  
  11. System.onScriptLoaded()
  12. {
  13. String String24;
  14. String String23;
  15. Group16 = System.getScriptGroup();
  16. Boolean19 = 0;
  17. System.debugString(( "onScriptLoaded\(\)"), 9);
  18. if(( Group16 == Null)) {
  19. return Null;
  20. }
  21. String23 = System.getToken(System.getParam(), ( "\;"), 0);
  22. String24 = System.getToken(System.getParam(), ( "\;"), 1);
  23. Layer17 = Group16.getObject(String23);
  24. Map18 = ( new Map);
  25. Map18.loadMap(String24);
  26. System.onVolumeChanged(System.getVolume());
  27. return Null;
  28. }
  29.  
  30. System.onVolumeChanged(int newvol)
  31. {
  32. Layer17.setRegionFromMap(Map18, newvol, 1);
  33. return Null;
  34. }
  35.  
  36. Layer17.onLeftButtonDown(int x, int y)
  37. {
  38. Boolean19 = 1;
  39. return Null;
  40. }
  41.  
  42. Layer17.onLeftButtonUp(int x, int y)
  43. {
  44. Boolean19 = 0;
  45. return Null;
  46. }
  47.  
  48. Layer17.onMouseMove(int x, int y)
  49. {
  50. Int Int32;
  51. if(( Boolean19 == 1)) {
  52. x = ( x - Layer17.getLeft());
  53. y = ( y - Layer17.getTop());
  54. if(Map18.inRegion(x, y)) {
  55. Int32 = Map18.getValue(x, y);
  56. System.setVolume(Int32);
  57. }
  58. }
  59. return Null;
  60. }
  61.  
  62.  
  63.