home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 December / CHIP_CD_2004-12.iso / service / winamp / skin / The_Gun.wal / scripts / shade.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2003-10-02  |  2KB  |  84 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 Button2;
  6. Global Button Button3;
  7. Global Button Button4;
  8. Global Group Group5;
  9. Global Int Int6;
  10. Global Layer Layer7;
  11. Global Slider Slider8;
  12.  
  13. Function func397(Int 0, Float 5.87747175411144e-39);
  14.  
  15. System.onScriptLoaded()
  16. {
  17. Layout Layout11;
  18. Layout11 = System.getContainer(( "main")).getLayout(( "shade"));
  19. Group5 = Layout11.getObject(( "group\.shade\.drawer"));
  20. Group5 = Group5.getObject(( "drawer\.shade"));
  21. Group5 = Group5.getObject(( "shade\.drawer"));
  22. Button4 = Group5.getObject(( "eq"));
  23. Button2 = Layout11.getObject(( "voldown"));
  24. Button3 = Layout11.getObject(( "volup"));
  25. Layer7 = Layout11.getObject(( "seekfill"));
  26. Slider8 = Layout11.getObject(( "seek"));
  27. func397(System.getPrivateInt(( "cczcolt"), ( "curshadedrawer"), 0), 0);
  28. return Null;
  29. }
  30.  
  31. Slider8.onSetPosition(int newpos)
  32. {
  33. Layer7.setXmlParam(( "w"), System.integerToString(( ( newpos / ( 2.54999995231628)) * ( 0.75))));
  34. return Null;
  35. }
  36.  
  37. Button4.onActivate(int activated)
  38. {
  39. func397(activated, ( 0.200000002980232));
  40. return Null;
  41. }
  42.  
  43. Button2.onLeftClick()
  44. {
  45. System.setVolume(( System.getVolume() - 25));
  46. return Null;
  47. }
  48.  
  49. Button3.onLeftClick()
  50. {
  51. System.setVolume(( System.getVolume() + 25));
  52. return Null;
  53. }
  54.  
  55. func397(Int 0, Float 5.87747175411144e-39)
  56. {
  57. if(Float31) {
  58. if(Int30) {
  59. Group5.setTargetY(0);
  60. } else {
  61. Group5.setTargetY(( - 63));
  62. }
  63. Group5.setTargetSpeed(Float31);
  64. Group5.gotoTarget();
  65. } else {
  66. if(Int30) {
  67. Group5.setXmlParam(( "y"), ( "0"));
  68. } else {
  69. Group5.setXmlParam(( "y"), ( "\-63"));
  70. }
  71. }
  72. Int6 = Int30;
  73. Button4.setActivatedNoCallback(Int30);
  74. return Null;
  75. }
  76.  
  77. System.onScriptUnloading()
  78. {
  79. System.setPrivateInt(( "cczcolt"), ( "curshadedrawer"), Int6);
  80. return Null;
  81. }
  82.  
  83.  
  84.