home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2004 May
/
PCWorld_2004-05_cd.bin
/
software
/
temacd
/
winamp
/
winamp503_snowpatrol.exe
/
Plugins
/
menubutton.m
< prev
next >
Wrap
Text File
|
2003-01-31
|
404b
|
22 lines
#include <lib/std.mi>
Global Group pg;
System.onScriptLoaded() {
pg = getScriptGroup();
}
pg.onSetVisible(int v) {
GuiObject t = pg.findObject("wasabi.menubutton.text");
if (t != NULL) {
if (v) {
t.setXmlParam("offsetx", "1");
t.setXmlParam("offsety", "1");
} else {
t.setXmlParam("offsetx", "0");
t.setXmlParam("offsety", "0");
}
}
}