home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 November
/
CDVD1105.ISO
/
Util
/
Winamp
/
Skins
/
National_Treasure_Winamp5_Skin.wal
/
scripts
/
volume.maki
(
.txt
)
< prev
Wrap
Winamp Compiled Maki Script
|
2004-10-03
|
3KB
|
116 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Int Int2;
Global Layer Layer17;
Global Layer Layer18;
Global Map Map19;
Global Int Int20;
Function func0();
Function func849(Int 0);
func0()
{
Double Double3;
Int Int9;
Int Int10;
Double3 = System.getRuntimeVersion();
if(( ( Double3 > 2) || ( Double3 < 65535))) {
Int2 = 1;
Int9 = System.getPrivateInt(System.getSkinName(), ( "runtimecheck"), 0);
Int10 = System.getTimeOfDay();
if(( ( ( Int10 - Int9) > 5000) && ( Int9 > Int10))) {
return 0;
}
System.setPrivateInt(System.getSkinName(), ( "runtimecheck"), System.getTimeOfDay());
System.messageBox(( ( "This\ script\ requires\ ") + ( "Winamp\ 5\.03\ \(skin\ version\ 1\.2\)")), ( "Error"), 1, ( ""));
return 0;
}
return 1;
if(( System.strsearch(System.getSongInfoText(), ( "tereo")) == ( - 1))) {
return 1;
}
return 2;
}
System.onScriptLoaded()
{
String String21;
if(! func0()) {
return Null;
}
String21 = System.getParam();
Layer17 = System.getScriptGroup().getObject(System.getToken(String21, ( "\;"), 0));
Layer18 = System.getScriptGroup().getObject(System.getToken(String21, ( "\;"), 1));
Map19 = ( new Map);
Map19.loadMap(System.getToken(String21, ( "\;"), 2));
Int20 = 0;
func849(System.getVolume());
return Null;
}
Layer17.onLeftButtonDown(int x, int y)
{
if(Int2) {
return Null;
}
Int20 = 1;
Layer17.onMouseMove(x, y);
return Null;
}
Layer17.onLeftButtonUp(int x, int y)
{
if(Int2) {
return Null;
}
Layer17.onMouseMove(x, y);
Int20 = 0;
return Null;
}
Layer17.onMouseMove(int x, int y)
{
Int Int29;
if(Int2) {
return Null;
}
if(Int20) {
x = ( x - Layer17.getLeft());
y = ( y - Layer17.getTop());
if(Map19.inRegion(x, y)) {
Int29 = Map19.getValue(x, y);
System.setVolume(Int29);
}
}
return Null;
}
System.onVolumeChanged(int newvol)
{
if(Int2) {
return Null;
}
func849(newvol);
return Null;
}
func849(Int 0)
{
Layer18.setRegionFromMap(Map19, Int31, 1);
return Null;
}
System.onScriptUnloading()
{
if(Int2) {
return Null;
}
delete Map19;
return Null;
}