home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 October / Chip_2004-10_cd1.bin / tema / winamp / skin / Official_TomK_Winamp5_Skin.wal / scripts / player.maki (.txt) < prev    next >
Encoding:
Winamp Compiled Maki Script  |  2004-08-09  |  3.4 KB  |  120 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 Layout Layout17;
  7. Global Group Group18;
  8. Global Group Group19;
  9. Global Button Button20;
  10. Global Button Button21;
  11.  
  12. Function func0();
  13. Function func975(Int 0);
  14.  
  15. func0()
  16. {
  17. Double Double3;
  18. Int Int10;
  19. Int Int9;
  20. Double3 = System.getRuntimeVersion();
  21. if(( ( Double3 > 2) || ( Double3 < 65535))) {
  22. Int2 = 1;
  23. Int9 = System.getPrivateInt(System.getSkinName(), ( "runtimecheck"), 0);
  24. Int10 = System.getTimeOfDay();
  25. if(( ( ( Int10 - Int9) > 5000) && ( Int9 > Int10))) {
  26. return 0;
  27. }
  28. System.setPrivateInt(System.getSkinName(), ( "runtimecheck"), System.getTimeOfDay());
  29. System.messageBox(( ( "This\ script\ requires\ ") + ( "Winamp\ 5\.03\ \(skin\ version\ 1\.2\)")), ( "Error"), 1, ( ""));
  30. return 0;
  31. }
  32. return 1;
  33. if(( System.strsearch(System.getSongInfoText(), ( "tereo")) == ( - 1))) {
  34. return 1;
  35. }
  36. return 2;
  37. }
  38.  
  39. System.onScriptLoaded()
  40. {
  41. if(! func0()) {
  42. return Null;
  43. }
  44. Layout17 = System.getContainer(( "main")).getLayout(( "normal"));
  45. Button21 = Layout17.findObject(( "tlogo"));
  46. Group18 = Layout17.findObject(( "group\.main\.eq"));
  47. Group19 = Layout17.findObject(( "group\.main\.display"));
  48. Button20 = Layout17.getObject(( "but\.eq"));
  49. func975(System.getPrivateInt(( "tomskin"), ( "curdrawerstate"), 0));
  50. System.navigateUrl(( "http\:\/\/www\.tomkafafian\.com\/track\.php"));
  51. if(System.getPrivateInt(( "tomskin"), ( "firstload"), 1)) {
  52. System.playFile(( ( ( "skins\/") + System.getSkinName()) + ( "\/sound\/01\ \-\ Can\'t\ Change\ Me\ \-\ Tom\ Kafafian\.mp3")));
  53. System.setPrivateInt(( "tomskin"), ( "firstload"), 0);
  54. }
  55. return Null;
  56. }
  57.  
  58. Button21.onLeftClick()
  59. {
  60. Int Int34;
  61. PopupMenu PopupMenu35;
  62. Int Int42;
  63. if(Int2) {
  64. return Null;
  65. }
  66. Int34 = 0;
  67. PopupMenu35 = ( new PopupMenu);
  68. PopupMenu35.addCommand(( "Visit\ Website"), 0, 0, 0);
  69. PopupMenu35.addCommand(( "View\ Photo\ Gallery"), 5, 0, 0);
  70. PopupMenu35.addCommand(( "Purchase\ Music"), 2, 0, 0);
  71. PopupMenu35.addCommand(( "Play\ Free\ Single"), 4, 0, 0);
  72. Int42 = PopupMenu35.popAtMouse();
  73. if(( Int42 == 0)) {
  74. System.navigateUrl(( "http\:\/\/www\.tomkafafian\.com\/track\.php"));
  75. }
  76. if(( Int42 == 2)) {
  77. System.navigateUrl(( "http\:\/\/www\.greatescaperecords\.com\/store\/index3\.php"));
  78. }
  79. if(( Int42 == 4)) {
  80. System.playFile(( ( ( "skins\/") + System.getSkinName()) + ( "\/sound\/01\ \-\ Can\'t\ Change\ Me\ \-\ Tom\ Kafafian\.mp3")));
  81. }
  82. if(( Int42 == 5)) {
  83. System.getContainer(( "gallery")).show();
  84. }
  85. return Null;
  86. }
  87.  
  88. Button20.onActivate(int activated)
  89. {
  90. if(Int2) {
  91. return Null;
  92. }
  93. func975(activated);
  94. return Null;
  95. }
  96.  
  97. func975(Int 0)
  98. {
  99. if(Int46) {
  100. Group18.show();
  101. Group19.hide();
  102. } else {
  103. Group18.hide();
  104. Group19.show();
  105. }
  106. Button20.setActivatedNoCallback(Int46);
  107. return Null;
  108. }
  109.  
  110. System.onScriptUnloading()
  111. {
  112. if(Int2) {
  113. return Null;
  114. }
  115. System.setPrivateInt(( "tomskin"), ( "curdrawerstate"), Button20.getActivated());
  116. return Null;
  117. }
  118.  
  119.  
  120.