home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 November / CDVD1105.ISO / Util / Winamp / Skins / Anime_Shogo.wal / scripts / libraryscrpt.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2004-08-22  |  4KB  |  129 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 Group11;
  6. Global Group Group12;
  7. Global Group Group13;
  8. Global Group Group14;
  9. Global Layer Layer15;
  10. Global Layer Layer16;
  11. Global Timer Timer17;
  12. Global GuiObject GuiObject18;
  13. Global Boolean Boolean19;
  14. Global Boolean Boolean20;
  15.  
  16. Function func598(Int 0, Int 0);
  17. Function func1012(Int 0);
  18.  
  19. System.onScriptLoaded()
  20. {
  21. Group13 = System.getScriptGroup();
  22. GuiObject18 = Group13.findObject(( "library\.content"));
  23. Group11 = Group13.findObject(( "library\.topdoor"));
  24. Group12 = Group13.findObject(( "library\.bottomdoor"));
  25. Layer15 = Group13.findObject(( "topdoor\.logo"));
  26. Layer16 = Group13.findObject(( "bottomdoor\.logo"));
  27. Group14 = Group13.findObject(( "library\.overlay"));
  28. Boolean19 = 1;
  29. Boolean20 = System.getPrivateInt(System.getSkinName(), ( "doorML"), 0);
  30. if(Boolean20) {
  31. GuiObject18.hide();
  32. func598(Group13.getHeight(), Group13.getWidth());
  33. Timer17 = ( new Timer);
  34. Timer17.setDelay(300);
  35. Timer17.start();
  36. } else {
  37. Group11.hide();
  38. Layer15.hide();
  39. Group12.hide();
  40. Layer16.hide();
  41. Group14.hide();
  42. GuiObject18.show();
  43. }
  44. return Null;
  45. }
  46.  
  47. System.onScriptUnloading()
  48. {
  49. delete Timer17;
  50. return Null;
  51. }
  52.  
  53. func598(Int 0, Int 0)
  54. {
  55. Group11.setXmlParam(( "h"), System.integerToString(( ( Int29 - 48) / 2)));
  56. Layer15.setXmlParam(( "x"), System.integerToString(( ( ( Int30 - 44) / 2) - 47)));
  57. Group12.setXmlParam(( "h"), System.integerToString(( ( Int29 - 48) / 2)));
  58. Group12.setXmlParam(( "y"), System.integerToString(( ( ( Int29 - 48) / 2) + 24)));
  59. Layer16.setXmlParam(( "x"), System.integerToString(( ( ( Int30 - 44) / 2) - 61)));
  60. return Null;
  61. }
  62.  
  63. Group13.onResize(int x, int y, int w, int h)
  64. {
  65. if(Boolean20) {
  66. func598(h, w);
  67. }
  68. return Null;
  69. }
  70.  
  71. Timer17.onTimer()
  72. {
  73. func1012(Group13.getHeight());
  74. Timer17.stop();
  75. return Null;
  76. }
  77.  
  78. func1012(Int 0)
  79. {
  80. Int Int45;
  81. if(Boolean19) {
  82. Int45 = Group11.getXmlParam(( "h"));
  83. Group11.setTargetY(( 24 - Int45));
  84. Group11.setTargetSpeed(3);
  85. Group11.gotoTarget();
  86. Group12.setTargetY(( ( ( ( Int44 - 48) / 2) + ( ( Int44 - 48) / 2)) + 24));
  87. Group12.setTargetSpeed(3);
  88. Group12.gotoTarget();
  89. Boolean19 = 0;
  90. } else {
  91. Group11.setTargetY(24);
  92. Group11.setTargetSpeed(3);
  93. Group11.gotoTarget();
  94. Group12.setTargetY(( ( ( Int44 - 48) / 2) + 24));
  95. Group12.setTargetSpeed(3);
  96. Group12.gotoTarget();
  97. Boolean19 = 1;
  98. }
  99. return Null;
  100. }
  101.  
  102. Group11.onTargetReached()
  103. {
  104. if(( ! Boolean19)) {
  105. GuiObject18.show();
  106. Group14.setTargetA(0);
  107. Group14.setTargetSpeed(( 0.5));
  108. Group14.gotoTarget();
  109. Group11.hide();
  110. Group12.hide();
  111. }
  112. return Null;
  113. }
  114.  
  115. Group14.onTargetReached()
  116. {
  117. if(( Group14.getAlpha() == 0)) {
  118. Group14.hide();
  119. } else {
  120. Group11.show();
  121. Group12.show();
  122. GuiObject18.hide();
  123. func1012(Group13.getHeight());
  124. }
  125. return Null;
  126. }
  127.  
  128.  
  129.