home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 January / soundCD_1.03.iso / players / WinAmp / winamp3_0-full.exe / Skins / Default.wal / scripts / center.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2002-07-03  |  979b  |  27 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global GuiObject GuiObject2;
  6. Global Group Group3;
  7.  
  8.  
  9. System.onScriptLoaded()
  10. {
  11. Group3 = System.getScriptGroup();
  12. GuiObject2 = Group3.getObject(System.getParam());
  13. return Null;
  14. }
  15.  
  16. Group3.onResize(int x, int y, int w, int h)
  17. {
  18. Int Int8;
  19. Int Int9;
  20. Int8 = GuiObject2.getWidth();
  21. Int9 = GuiObject2.getHeight();
  22. GuiObject2.resize(( ( w - Int8) / 2), ( ( h - Int9) / 2), Int8, Int9);
  23. return Null;
  24. }
  25.  
  26.  
  27.