home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 July & August / Gamestar_64_2004-07-08_dvd.iso / Programy / winamp501_full.exe / $_14327_ / seekshade.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2003-11-16  |  2KB  |  75 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 Group2;
  6. Global Slider Slider3;
  7. Global Int Int4;
  8. Global Timer Timer5;
  9. Global Text Text6;
  10.  
  11.  
  12. System.onScriptLoaded()
  13. {
  14. Group2 = System.getScriptGroup();
  15. Slider3 = Group2.findObject(( "shadeSeekerGhost"));
  16. Text6 = Group2.findObject(( "SongtickerShade"));
  17. Timer5 = ( new Timer);
  18. Timer5.setDelay(1000);
  19. return Null;
  20. }
  21.  
  22. Timer5.onTimer()
  23. {
  24. Text6.setText(( ""));
  25. Timer5.stop();
  26. return Null;
  27. }
  28.  
  29. System.onScriptUnloading()
  30. {
  31. delete Timer5;
  32. return Null;
  33. }
  34.  
  35. Slider3.onSetPosition(int newpos)
  36. {
  37. Int Int17;
  38. Float Float12;
  39. Float Float15;
  40. if(Int4) {
  41. Float12 = newpos;
  42. Float12 = ( ( Float12 / 255) * 100);
  43. Float15 = System.getPlayItemLength();
  44. if(( Float15 != 0)) {
  45. Int17 = ( ( Float15 * Float12) / 100);
  46. Timer5.start();
  47. Text6.setText(( ( ( ( ( ( ( "SEEK\:") + System.integerToTime(Int17)) + ( "\/")) + System.integerToTime(Float15)) + ( "\ \(")) + System.integerToString(Float12)) + ( "\%\)\ ")));
  48. }
  49. }
  50. return Null;
  51. }
  52.  
  53. Slider3.onLeftButtonDown(int x, int y)
  54. {
  55. Int4 = 1;
  56. return Null;
  57. }
  58.  
  59. Slider3.onLeftButtonUp(int x, int y)
  60. {
  61. Int4 = 0;
  62. Timer5.start();
  63. Text6.setText(( ""));
  64. return Null;
  65. }
  66.  
  67. Slider3.onSetFinalPosition(int pos)
  68. {
  69. Timer5.start();
  70. Text6.setText(( ""));
  71. return Null;
  72. }
  73.  
  74.  
  75.