Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
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");
|
||||
}
|
||||
}
|
||||
}
|
BIN
Src/resources/data/freeform/xml/menubutton/menubutton.maki
Normal file
BIN
Src/resources/data/freeform/xml/menubutton/menubutton.maki
Normal file
Binary file not shown.
26
Src/resources/data/freeform/xml/menubutton/menubutton.xml
Normal file
26
Src/resources/data/freeform/xml/menubutton/menubutton.xml
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<WinampAbstractionLayer version="0.7">
|
||||
|
||||
<groupdef id="wasabi.menubutton.down" inherit_group="wasabi.panel">
|
||||
<script id="menubutton" file="menubutton.maki" />
|
||||
</groupdef>
|
||||
|
||||
<groupdef id="wasabi.menubutton.group" >
|
||||
<group
|
||||
id="wasabi.menubutton.down"
|
||||
x="0" y="0"
|
||||
w="0" h="0"
|
||||
relatw="1" relath="1"
|
||||
visible="0"
|
||||
/>
|
||||
<Wasabi:Text
|
||||
id="wasabi.menubutton.text" color="white"
|
||||
x="3" y="3"
|
||||
w="-3" h="-6"
|
||||
relatw="1" relath="1"
|
||||
shadowx="1" shadowy="1" shadowcolor="black"
|
||||
/>
|
||||
<MenuSurface x="0" y="0" w="0" h="0" relatw="1" relath="1" />
|
||||
</groupdef>
|
||||
|
||||
</WinampAbstractionLayer>
|
Loading…
Add table
Add a link
Reference in a new issue