mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 20:05:47 -04:00
Initial community commit
This commit is contained in:
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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user