home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 January
/
01_03.iso
/
service
/
winamp3
/
files
/
winamp3_0-full.exe
/
Skins
/
Default.wal
/
scripts
/
hide.m
< prev
next >
Wrap
Text File
|
2002-07-03
|
502b
|
29 lines
#include <lib/std.mi>
Function onVideoResize(int w);
Global Group pGroup;
Global Group visGroup;
Global Int skipNextResizeEvent;
System.onScriptLoaded() {
pgroup = getScriptGroup();
visGroup = pgroup.findObject("video.visualization");
onVideoResize(pgroup.getWidth());
}
pgroup.onResize(int x, int y, int w, int h) {
onVideoResize(w);
}
onVideoResize(int w) {
if (w < 318) {
visGroup.hide();
return;
} else {
visGroup.show();
return;
}
}