mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 14:55:46 -04:00
Initial community commit
This commit is contained in:
21
Src/resources/data/freeform/xml/menubutton/menubutton.m
Normal file
21
Src/resources/data/freeform/xml/menubutton/menubutton.m
Normal file
@ -0,0 +1,21 @@
|
||||
#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");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user