about.m 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. #include <lib/std.mi>
  2. Global Text section2;
  3. Global Text section1;
  4. Global Text codername2;
  5. Global Text codername1;
  6. Global Timer Timer6;
  7. Global Int count = 0;
  8. Global Int Int8;
  9. Global Int Int9;
  10. Global Int Int10;
  11. Global Int Int11;
  12. Global Layer llamaanim;
  13. Global Double smidge;
  14. System.onScriptLoaded()
  15. {
  16. Group sg = System.getScriptGroup();
  17. llamaanim = sg.findObject(( "logo"));
  18. llamaanim.fx_setBgFx(0);
  19. llamaanim.fx_setWrap(1);
  20. llamaanim.fx_setBilinear(1);
  21. llamaanim.fx_setAlphaMode(0);
  22. llamaanim.fx_setGridSize(1, 1);
  23. llamaanim.fx_setRect(0);
  24. llamaanim.fx_setClear(1);
  25. llamaanim.fx_setLocalized(1);
  26. llamaanim.fx_setRealtime(1);
  27. llamaanim.fx_setSpeed(50);
  28. llamaanim.fx_setEnabled(1);
  29. section2 = sg.findObject(( "txth1"));
  30. section1 = sg.findObject(( "txth2"));
  31. codername2 = sg.findObject(( "txtm1"));
  32. codername1 = sg.findObject(( "txtm2"));
  33. Int9 = section1.getGuiX();
  34. Int8 = section1.getGuiW();
  35. Int10 = section1.getGuiW();
  36. Int11 = section1.getGuiH();
  37. Timer6 = ( new Timer);
  38. Timer6.setDelay(3000);
  39. Timer6.start();
  40. }
  41. System.onScriptUnloading()
  42. {
  43. delete Timer6;
  44. }
  45. Timer6.onTimer()
  46. {
  47. String section;
  48. GuiObject GuiObject61;
  49. GuiObject GuiObject59;
  50. String codername;
  51. GuiObject GuiObject60;
  52. GuiObject GuiObject62;
  53. if(( count == 0)) {
  54. section1.setXmlParam(( "x"), System.integerToString(( - Int8)));
  55. }
  56. count ++;
  57. if(( count == 1)) {
  58. section = ( "Main Development");
  59. codername = ( "Ben Allison");
  60. }
  61. if(( count == 2)) {
  62. section = ( "Development");
  63. codername = ( "Martin Poehlmann");
  64. }
  65. if(( count == 3)) {
  66. section = ( "Product Management");
  67. codername = ( "Matt Callaway");
  68. }
  69. if(( count == 4)) {
  70. section = ( "Engineering Management");
  71. codername = ( "Ben London");
  72. }
  73. if(( count == 5)) {
  74. section = ( "Bento Skin");
  75. codername = ( "Martin Poehlmann, Taber Buhl");
  76. }
  77. if(( count == 6)) {
  78. section = ( "Modern Skin");
  79. codername = ( "Sven Kistner");
  80. }
  81. if(( count == 7)) {
  82. section = ( "Documentation");
  83. codername = ( "Ghislain Lacroix");
  84. }
  85. if(( count == 8)) {
  86. section = ( "Former Architecture Development");
  87. codername = ( "B Underwood, F Gastellu");
  88. }
  89. if(( count == 9)) {
  90. section = ( "Former Development");
  91. codername = ( "C Thibault, J Frankel, M Gerard");
  92. }
  93. if(( count == 10)) {
  94. count = 0;
  95. section = ( "Powered by");
  96. codername = ( "Nullsoft Wasabi");
  97. }
  98. GuiObject59 = Null;
  99. GuiObject60 = Null;
  100. GuiObject61 = Null;
  101. GuiObject62 = Null;
  102. if(( System.frac(( count / 2)) != 0)) {
  103. GuiObject59 = section2;
  104. GuiObject60 = section1;
  105. GuiObject61 = codername2;
  106. GuiObject62 = codername1;
  107. section1.setText(section);
  108. codername1.setText(codername);
  109. } else {
  110. GuiObject59 = section1;
  111. GuiObject60 = section2;
  112. GuiObject61 = codername1;
  113. GuiObject62 = codername2;
  114. section2.setText(section);
  115. codername2.setText(codername);
  116. }
  117. GuiObject60.setTargetX(Int9);
  118. GuiObject59.setTargetX(( - Int8));
  119. GuiObject62.setTargetA(255);
  120. GuiObject61.setTargetA(0);
  121. GuiObject62.setTargetSpeed(2);
  122. GuiObject61.setTargetSpeed(2);
  123. GuiObject60.setTargetSpeed(2);
  124. GuiObject59.setTargetSpeed(2);
  125. GuiObject62.gotoTarget();
  126. GuiObject61.gotoTarget();
  127. GuiObject60.gotoTarget();
  128. GuiObject59.gotoTarget();
  129. }
  130. llamaanim.fx_onGetPixelR(double r, double d, double x, double y)
  131. {
  132. return ( r + ( System.cos(smidge) * ( 0.5)));
  133. }
  134. llamaanim.fx_onFrame()
  135. {
  136. smidge = ( smidge + ( 0.100000001490116));
  137. }