I started creating a modified Modern skin by starting with the original "Winamp Modern" skin. My object was to have a skin that would be used by many different people to setup a dance program. The look was not important but removing things that could interrupt dances or cause problems was important. The result "Winamp Modern Folk Dancer" skin was a success, but now I want to modify the Albumart window so it can be locked in place and not inadvertently moved. So I logically started by trying to compile Albumart.m and found that the source was defective, or so old that it was now wrong. Here it is. The statement with the arrow causes the compiler to gag. Can anyone please give me some suggestions on how to fix it, or provide a Winamp5 version that works. The other .m files compile OK.
-------------------------------------------------------------
#include <lib/std.mi>
#include "attribs.m"
Global Container albumart;
System.onScriptLoaded()
{
initAttribs();
albumart = System.getContainer("winamp.albumart");
albumart_visible_attrib.onDataChanged(); <==============
}
albumart_visible_attrib.onDataChanged ()
{
if (getData() == "1")
{
albumart.show();
}
else
{
albumart.close();
}
}
System.onKeyDown(String key)
{
if (key == "alt+a")
{
if (albumart_visible_attrib.getData() == "0")
albumart_visible_attrib.setData("1");
else
albumart_visible_attrib.setData("0");
complete;
}
}
-------------------------------------------------------------
#include <lib/std.mi>
#include "attribs.m"
Global Container albumart;
System.onScriptLoaded()
{
initAttribs();
albumart = System.getContainer("winamp.albumart");
albumart_visible_attrib.onDataChanged(); <==============
}
albumart_visible_attrib.onDataChanged ()
{
if (getData() == "1")
{
albumart.show();
}
else
{
albumart.close();
}
}
System.onKeyDown(String key)
{
if (key == "alt+a")
{
if (albumart_visible_attrib.getData() == "0")
albumart_visible_attrib.setData("1");
else
albumart_visible_attrib.setData("0");
complete;
}
}
Comment