home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 November / CDVD1105.ISO / Util / Winamp / Skins / Anime_Shogo.wal / scripts / eqscrpt.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2004-08-16  |  4KB  |  148 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 Boolean Boolean18;
  13. Global Boolean Boolean19;
  14. Global Button Button20;
  15. Global Button Button21;
  16.  
  17. Function func594(Int 0, Int 0);
  18. Function func1008(Int 0);
  19.  
  20. System.onScriptLoaded()
  21. {
  22. Group13 = System.getScriptGroup();
  23. Group11 = Group13.findObject(( "eq\.topdoor"));
  24. Group12 = Group13.findObject(( "eq\.bottomdoor"));
  25. Layer15 = Group13.findObject(( "topdoor\.logo"));
  26. Layer16 = Group13.findObject(( "bottomdoor\.logo"));
  27. Group14 = Group13.findObject(( "eq\.overlay"));
  28. Button20 = Group13.findObject(( "close\.door"));
  29. Button21 = Group13.findObject(( "close\.door\.dummy"));
  30. Boolean18 = 1;
  31. Boolean19 = System.getPrivateInt(System.getSkinName(), ( "doorEQ"), 0);
  32. if(Boolean19) {
  33. func594(Group13.getHeight(), Group13.getWidth());
  34. Timer17 = ( new Timer);
  35. Timer17.setDelay(300);
  36. Timer17.start();
  37. } else {
  38. Group11.hide();
  39. Layer15.hide();
  40. Group12.hide();
  41. Layer16.hide();
  42. Group14.hide();
  43. }
  44. return Null;
  45. }
  46.  
  47. System.onScriptUnloading()
  48. {
  49. delete Timer17;
  50. return Null;
  51. }
  52.  
  53. func594(Int 0, Int 0)
  54. {
  55. Group11.setXmlParam(( "h"), System.integerToString(( ( Int31 - 48) / 2)));
  56. Layer15.setXmlParam(( "x"), System.integerToString(( ( ( Int32 - 44) / 2) - 47)));
  57. Group12.setXmlParam(( "h"), System.integerToString(( ( Int31 - 48) / 2)));
  58. Group12.setXmlParam(( "y"), System.integerToString(( ( ( Int31 - 48) / 2) + 24)));
  59. Layer16.setXmlParam(( "x"), System.integerToString(( ( ( Int32 - 44) / 2) - 61)));
  60. return Null;
  61. }
  62.  
  63. Group13.onResize(int x, int y, int w, int h)
  64. {
  65. if(Boolean19) {
  66. func594(h, w);
  67. }
  68. return Null;
  69. }
  70.  
  71. Timer17.onTimer()
  72. {
  73. func1008(Group13.getHeight());
  74. Timer17.stop();
  75. return Null;
  76. }
  77.  
  78. func1008(Int 0)
  79. {
  80. Int Int47;
  81. if(Boolean18) {
  82. Int47 = Group11.getXmlParam(( "h"));
  83. Group11.setTargetY(( 24 - Int47));
  84. Group11.setTargetSpeed(3);
  85. Group11.gotoTarget();
  86. Group12.setTargetY(( ( ( ( Int46 - 48) / 2) + ( ( Int46 - 48) / 2)) + 24));
  87. Group12.setTargetSpeed(3);
  88. Group12.gotoTarget();
  89. Boolean18 = 0;
  90. } else {
  91. Group11.setTargetY(24);
  92. Group11.setTargetSpeed(3);
  93. Group11.gotoTarget();
  94. Group12.setTargetY(( ( ( Int46 - 48) / 2) + 24));
  95. Group12.setTargetSpeed(3);
  96. Group12.gotoTarget();
  97. Boolean18 = 1;
  98. }
  99. return Null;
  100. }
  101.  
  102. Button20.onLeftButtonUp(int x, int y)
  103. {
  104. if(Boolean19) {
  105. Group11.setXmlParam(( "h"), System.integerToString(( ( Group13.getHeight() - 48) / 2)));
  106. Group11.setXmlParam(( "y"), System.integerToString(( 24 - Group11.getHeight())));
  107. Layer15.setXmlParam(( "x"), System.integerToString(( ( ( Group13.getWidth() - 44) / 2) - 47)));
  108. Group12.setXmlParam(( "h"), System.integerToString(( ( Group13.getHeight() - 48) / 2)));
  109. Group12.setXmlParam(( "y"), System.integerToString(( ( ( ( Group13.getHeight() - 48) / 2) + ( ( Group13.getHeight() - 48) / 2)) + 24)));
  110. Layer16.setXmlParam(( "x"), System.integerToString(( ( ( Group13.getWidth() - 44) / 2) - 61)));
  111. Group14.show();
  112. Group14.setTargetA(255);
  113. Group14.setTargetSpeed(( 0.5));
  114. Group14.gotoTarget();
  115. } else {
  116. Button21.leftClick();
  117. }
  118. return Null;
  119. }
  120.  
  121. Group11.onTargetReached()
  122. {
  123. if(( ! Boolean18)) {
  124. Group14.setTargetA(0);
  125. Group14.setTargetSpeed(( 0.5));
  126. Group14.gotoTarget();
  127. Group11.hide();
  128. Group12.hide();
  129. } else {
  130. Button21.leftClick();
  131. }
  132. return Null;
  133. }
  134.  
  135. Group14.onTargetReached()
  136. {
  137. if(( Group14.getAlpha() == 0)) {
  138. Group14.hide();
  139. } else {
  140. Group11.show();
  141. Group12.show();
  142. func1008(Group13.getHeight());
  143. }
  144. return Null;
  145. }
  146.  
  147.  
  148.