blob: af2974a3252a853ebbcbeafe86d296ed8e2f1c1b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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");
}
}
}
|