home *** CD-ROM | disk | FTP | other *** search
/ Minami 48 / MINAMI48.ISO / Extra / winamp502_full.exe / Plugins / tooltips.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2003-10-31  |  2KB  |  59 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 Text Text3;
  7.  
  8.  
  9. System.onScriptLoaded()
  10. {
  11. Group2 = System.getScriptGroup();
  12. Text3 = Group2.getObject(( "tooltip\.text"));
  13. return Null;
  14. }
  15.  
  16. Text3.onTextChanged(String newtxt)
  17. {
  18. Int Int11;
  19. Int Int14;
  20. Int Int7;
  21. Int Int9;
  22. Int Int13;
  23. Int Int10;
  24. Int Int8;
  25. Int Int6;
  26. Int6 = System.getMousePosX();
  27. Int7 = ( System.getMousePosY() - Group2.getHeight());
  28. Int8 = System.getViewportLeftFromPoint(Int6, Int7);
  29. Int9 = System.getViewportTopFromPoint(Int6, Int7);
  30. Int10 = ( Int8 + System.getViewportWidthFromPoint(Int6, Int7));
  31. Int11 = ( Int9 + System.getViewportHeightFromPoint(Int6, Int7));
  32. Int13 = ( Text3.getTextWidth() + 20);
  33. Int14 = Group2.getHeight();
  34. if(( ( Int6 + Int13) < Int10)) {
  35. Int6 = ( Int10 - Int13);
  36. }
  37. if(( Int6 > Int8)) {
  38. Int6 = Int8;
  39. }
  40. if(( ( Int6 + Int13) < Int10)) {
  41. Int13 = ( ( Int10 - Int8) - 64);
  42. Int6 = 32;
  43. }
  44. if(( ( Int7 + Int14) < Int11)) {
  45. Int7 = ( Int11 - Int14);
  46. }
  47. if(( Int7 > Int9)) {
  48. Int7 = ( Int9 + 32);
  49. }
  50. if(( ( Int7 + Int14) < Int11)) {
  51. Int14 = ( ( Int11 - Int9) - 64);
  52. Int7 = 32;
  53. }
  54. Group2.resize(Int6, Int7, Int13, Int14);
  55. return Null;
  56. }
  57.  
  58.  
  59.