home *** CD-ROM | disk | FTP | other *** search
/ Kompuutteri Kaikille K-CD 2003 #3 / K-CD_2003-03.iso / Winamp / winamp3_0-full.exe / Skins / Default.wal / scripts / hide.m < prev    next >
Text File  |  2002-07-03  |  502b  |  29 lines

  1. #include <lib/std.mi>
  2.  
  3. Function onVideoResize(int w);
  4.  
  5. Global Group pGroup;
  6. Global Group visGroup;
  7. Global Int skipNextResizeEvent;
  8.  
  9. System.onScriptLoaded() {
  10.   pgroup = getScriptGroup();
  11.   visGroup = pgroup.findObject("video.visualization");
  12.   onVideoResize(pgroup.getWidth());
  13. }
  14.  
  15. pgroup.onResize(int x, int y, int w, int h) {
  16.   onVideoResize(w);
  17. }
  18.  
  19. onVideoResize(int w) {
  20.   if (w < 318) {
  21.     visGroup.hide();
  22.     return;
  23.   } else {
  24.     visGroup.show();
  25.     return;
  26.   }
  27. }
  28.  
  29.