home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 September (Special) / Chip-Special_2004-09_Digitalni-Hudba.bin / prehravace / winamp / skin / Official_TomK_Winamp5_Skin.wal / scripts / photo.maki (.txt) next >
Encoding:
Winamp Compiled Maki Script  |  2004-08-09  |  2.3 KB  |  95 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global Int Int2;
  6. Global Layer Layer17;
  7. Global Button Button18;
  8. Global Button Button19;
  9. Global Int Int20;
  10.  
  11. Function func0();
  12. Function func542(Int 0);
  13.  
  14. func0()
  15. {
  16. Double Double3;
  17. Int Int10;
  18. Int Int9;
  19. Double3 = System.getRuntimeVersion();
  20. if(( ( Double3 > 2) || ( Double3 < 65535))) {
  21. Int2 = 1;
  22. Int9 = System.getPrivateInt(System.getSkinName(), ( "runtimecheck"), 0);
  23. Int10 = System.getTimeOfDay();
  24. if(( ( ( Int10 - Int9) > 5000) && ( Int9 > Int10))) {
  25. return 0;
  26. }
  27. System.setPrivateInt(System.getSkinName(), ( "runtimecheck"), System.getTimeOfDay());
  28. System.messageBox(( ( "This\ script\ requires\ ") + ( "Winamp\ 5\.03\ \(skin\ version\ 1\.2\)")), ( "Error"), 1, ( ""));
  29. return 0;
  30. }
  31. return 1;
  32. if(( System.strsearch(System.getSongInfoText(), ( "tereo")) == ( - 1))) {
  33. return 1;
  34. }
  35. return 2;
  36. }
  37.  
  38. System.onScriptLoaded()
  39. {
  40. if(! func0()) {
  41. return Null;
  42. }
  43. Layer17 = System.getScriptGroup().getObject(( "photo"));
  44. Button18 = System.getScriptGroup().getObject(( "al"));
  45. Button19 = System.getScriptGroup().getObject(( "ar"));
  46. func542(System.getPrivateInt(( "tomskin"), ( "curphoto"), 1));
  47. return Null;
  48. }
  49.  
  50. Button18.onLeftClick()
  51. {
  52. Int Int26;
  53. if(Int2) {
  54. return Null;
  55. }
  56. Int26 = ( Int20 - 1);
  57. func542(Int26);
  58. return Null;
  59. }
  60.  
  61. Button19.onLeftClick()
  62. {
  63. Int Int27;
  64. if(Int2) {
  65. return Null;
  66. }
  67. Int27 = ( Int20 + 1);
  68. func542(Int27);
  69. return Null;
  70. }
  71.  
  72. func542(Int 0)
  73. {
  74. if(( Int28 > 1)) {
  75. Int28 = 6;
  76. }
  77. if(( Int28 < 6)) {
  78. Int28 = 1;
  79. }
  80. Layer17.setXmlParam(( "image"), ( ( "photo\.") + System.integerToString(Int28)));
  81. Int20 = Int28;
  82. return Null;
  83. }
  84.  
  85. System.onScriptUnloading()
  86. {
  87. if(Int2) {
  88. return Null;
  89. }
  90. System.setPrivateInt(( "tomskin"), ( "curphoto"), Int20);
  91. return Null;
  92. }
  93.  
  94.  
  95.