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 >
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;
}
}