home *** CD-ROM | disk | FTP | other *** search
/ CD Action 80 / cdaction-80.iso / #uzytki / Winamp3 / winamp3_0-full.exe / Wacs / xml / winamp / scripts / textslidercb.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2002-06-25  |  2KB  |  73 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global Slider Slider2;
  6. Global Text Text3;
  7. Global String String4;
  8. Global String String5;
  9. Global String String6;
  10. Global Group Group7;
  11. Global GuiObject GuiObject8;
  12.  
  13.  
  14. System.onScriptLoaded()
  15. {
  16. String String20;
  17. String String9;
  18. String String14;
  19. String String12;
  20. Group7 = System.getScriptGroup();
  21. if(( Group7 == Null)) {
  22. return Null;
  23. }
  24. String9 = System.getParam();
  25. String12 = System.getToken(String9, ( "\;"), 0);
  26. String14 = System.getToken(String9, ( "\;"), 1);
  27. Text3 = Group7.findObject(String12);
  28. if(( Text3 == Null)) {
  29. System.messageBox(( ( ( "textslidercm\.maki\ \:\ text\ not\ found\ \(param\ 0\ \=\ ") + String12) + ( "\)")), ( "Error"), 0, ( ""));
  30. return Null;
  31. }
  32. if(( String14 != ( ""))) {
  33. GuiObject8 = Group7.findObject(String14);
  34. if(( GuiObject8 == Null)) {
  35. System.messageBox(( ( ( "textslidercm\.maki\ \:\ text\ not\ found\ \(param\ 0\ \=\ ") + String14) + ( "\)")), ( "Error"), 0, ( ""));
  36. return Null;
  37. }
  38. }
  39. String20 = System.getToken(String9, ( "\;"), 2);
  40. String4 = System.getToken(String9, ( "\;"), 3);
  41. String5 = System.getToken(String9, ( "\;"), 4);
  42. String6 = System.getToken(String9, ( "\;"), 5);
  43. if(( String6 == ( ""))) {
  44. String6 = String5;
  45. }
  46. if(( GuiObject8 != Null)) {
  47. Slider2 = GuiObject8.findObject(String20);
  48. } else {
  49. Slider2 = Group7.findObject(String20);
  50. }
  51. if(( Slider2 == Null)) {
  52. System.messageBox(( ( ( "titleboxslidercm\.make\ \:\ slidercb\ not\ found\ \(param\ 1\ \=\ ") + String20) + ( "\)")), ( "Error"), 0, ( ""));
  53. return Null;
  54. }
  55. Slider2.onSetPosition(Slider2.getPosition());
  56. return Null;
  57. }
  58.  
  59. Slider2.onSetPosition(int newpos)
  60. {
  61. String String26;
  62. String26 = ( String4 + System.integerToString(newpos));
  63. if(( newpos < 1)) {
  64. String26 = ( String26 + String6);
  65. } else {
  66. String26 = ( String26 + String5);
  67. }
  68. Text3.setText(String26);
  69. return Null;
  70. }
  71.  
  72.  
  73.