home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 November
/
CDVD1105.ISO
/
Util
/
Winamp
/
Skins
/
Anime_Shogo.wal
/
scripts
/
volscrpt.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2004-08-08
|
2KB
|
80 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Layer Layer11;
Global Map Map12;
Global Boolean Boolean13;
Function func295(Int 0);
Function func563(Int 0, Int 0);
System.onScriptLoaded()
{
Group Group14;
Group14 = System.getScriptGroup();
Layer11 = Group14.findObject(( "Volume"));
Map12 = ( new Map);
Map12.loadMap(( "shogo\.vol\.map"));
func295(System.getVolume());
return Null;
}
System.onVolumeChanged(int newvol)
{
Int Int20;
func295(newvol);
Int20 = ( ( newvol * 100) / 255);
return Null;
}
func295(Int 0)
{
Region Region22;
Region22 = ( new Region);
Region22.loadFromMap(Map12, Int21, 1);
Layer11.setRegion(Region22);
delete Region22;
return Null;
}
Layer11.onLeftButtonDown(int x, int y)
{
Boolean13 = 1;
func563(x, y);
return Null;
}
Layer11.onLeftButtonUp(int x, int y)
{
if(Boolean13) {
Boolean13 = 0;
func563(x, y);
}
return Null;
}
Layer11.onMouseMove(int x, int y)
{
if(Boolean13) {
func563(x, y);
}
return Null;
}
func563(Int 0, Int 0)
{
Int Int31;
Int31 = Map12.getValue(( Int29 - Layer11.getLeft()), ( Int30 - Layer11.getTop()));
System.setVolume(Int31);
return Null;
}
System.onScriptUnloading()
{
delete Map12;
return Null;
}