Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
14
Src/resources/skins/Winamp Modern/scripts/menualign.m
Normal file
14
Src/resources/skins/Winamp Modern/scripts/menualign.m
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include <lib/std.mi>
|
||||
|
||||
System.onScriptLoaded() {
|
||||
group sg = getScriptGroup();
|
||||
string params = getParam();
|
||||
int offset = 0;
|
||||
|
||||
for (int a = 0; getToken(params,",",a) != ""; a++ )
|
||||
{
|
||||
guiobject tmp = sg.getObject(getToken(params,",",a));
|
||||
tmp.setXMLparam("x",integertostring(offset));
|
||||
offset += tmp.getAutoWidth();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue