home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 November
/
CDVD1105.ISO
/
Util
/
Winamp
/
Skins
/
Pimeer_Modern_v2.wal
/
scripts
/
shadeseek.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2004-09-13
|
3KB
|
79 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Int Int16;
Global Int Int17;
Global Slider Slider19;
Global Layer Layer20;
Global Layer Layer21;
Global Map Map22;
Global Region Region23;
System.onScriptLoaded()
{
Layout Layout26;
Layout26 = System.getContainer(( "Main")).getLayout(( "shade"));
Slider19 = Layout26.getObject(( "shadehidseek"));
Layer20 = Layout26.getObject(( "shadeseek"));
Layer21 = Layout26.getObject(( "shadeseekfull"));
Region23 = ( new Region);
Region23.loadFromBitmap(( "shadeseekregion"));
Layer20.setRegion(Region23);
Map22 = ( new Map);
Map22.loadMap(( "shadeseekmap"));
Layer21.hide();
return Null;
}
Layer20.onLeftButtonDown(int x, int y)
{
Int16 = 1;
x = ( x - Layer20.getLeft());
y = ( y - Layer20.getTop());
if(Map22.inRegion(x, y)) {
Int17 = Map22.getValue(x, y);
Layer21.setRegionFromMap(Map22, Int17, 1);
}
return Null;
}
Layer20.onMouseMove(int x, int y)
{
if(Int16) {
x = ( x - Layer20.getLeft());
y = ( y - Layer20.getTop());
if(Map22.inRegion(x, y)) {
Int17 = Map22.getValue(x, y);
Layer21.setRegionFromMap(Map22, Int17, 1);
}
}
return Null;
}
Layer20.onLeftButtonUp(int x, int y)
{
Int17 = ( ( Int17 / 255) * System.getPlayItemLength());
System.seekTo(Int17);
Int16 = 0;
return Null;
}
Slider19.onPostedPosition(int newpos)
{
if(( ! Int16)) {
Layer21.show();
Layer21.setRegionFromMap(Map22, newpos, 1);
}
return Null;
}
System.onStop()
{
Layer21.hide();
return Null;
}