home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 November
/
CDVD1105.ISO
/
Util
/
Winamp
/
Skins
/
CCZ_Skateboard.wal
/
maki
/
volume.maki
(
.txt
)
< prev
Wrap
Winamp Compiled Maki Script
|
2004-10-12
|
3KB
|
63 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Group Group16;
Global Layer Layer17;
Global Map Map18;
Global Boolean Boolean19;
System.onScriptLoaded()
{
String String24;
String String23;
Group16 = System.getScriptGroup();
Boolean19 = 0;
System.debugString(( "onScriptLoaded\(\)"), 9);
if(( Group16 == Null)) {
return Null;
}
String23 = System.getToken(System.getParam(), ( "\;"), 0);
String24 = System.getToken(System.getParam(), ( "\;"), 1);
Layer17 = Group16.getObject(String23);
Map18 = ( new Map);
Map18.loadMap(String24);
System.onVolumeChanged(System.getVolume());
return Null;
}
System.onVolumeChanged(int newvol)
{
Layer17.setRegionFromMap(Map18, newvol, 1);
return Null;
}
Layer17.onLeftButtonDown(int x, int y)
{
Boolean19 = 1;
return Null;
}
Layer17.onLeftButtonUp(int x, int y)
{
Boolean19 = 0;
return Null;
}
Layer17.onMouseMove(int x, int y)
{
Int Int32;
if(( Boolean19 == 1)) {
x = ( x - Layer17.getLeft());
y = ( y - Layer17.getTop());
if(Map18.inRegion(x, y)) {
Int32 = Map18.getValue(x, y);
System.setVolume(Int32);
}
}
return Null;
}