Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/resources/skins/Winamp Modern/scripts/menualign.m

14 lines
334 B
Mathematica
Raw Permalink Normal View History

2024-09-24 12:54:57 +00:00
#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();
}
}