home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 November / CDVD1105.ISO / Util / Winamp / Skins / Van_Helsing.wal / scripts / select-language.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2004-10-04  |  2KB  |  98 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 Button Button17;
  7. Global Button Button18;
  8. Global Button Button19;
  9. Global Button Button20;
  10.  
  11. Function func0();
  12. Function func563(Int 0);
  13.  
  14. func0()
  15. {
  16. Int Int10;
  17. Int Int9;
  18. Double Double3;
  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. Group Group21;
  41. if(! func0()) {
  42. return Null;
  43. }
  44. Group21 = System.getScriptGroup();
  45. Button17 = Group21.getObject(( "lang\.english"));
  46. Button18 = Group21.getObject(( "lang\.german"));
  47. Button19 = Group21.getObject(( "lang\.spanish"));
  48. Button20 = Group21.getObject(( "lang\.french"));
  49. return Null;
  50. }
  51.  
  52. Button17.onLeftClick()
  53. {
  54. if(Int2) {
  55. return Null;
  56. }
  57. func563(0);
  58. return Null;
  59. }
  60.  
  61. Button18.onLeftClick()
  62. {
  63. if(Int2) {
  64. return Null;
  65. }
  66. func563(1);
  67. return Null;
  68. }
  69.  
  70. Button19.onLeftClick()
  71. {
  72. if(Int2) {
  73. return Null;
  74. }
  75. func563(2);
  76. return Null;
  77. }
  78.  
  79. Button20.onLeftClick()
  80. {
  81. if(Int2) {
  82. return Null;
  83. }
  84. func563(3);
  85. return Null;
  86. }
  87.  
  88. func563(Int 0)
  89. {
  90. Layout Layout32;
  91. System.setPrivateInt(( "nationaltreasure"), ( "curlogo"), Int27);
  92. Layout32 = System.getContainer(( "main")).getLayout(( "normal"));
  93. Layout32.onNotify(( "lchange"), ( "lang"), Int27, 0);
  94. return Null;
  95. }
  96.  
  97.  
  98.