home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 November
/
CDVD1105.ISO
/
Util
/
Winamp
/
Skins
/
Van_Helsing.wal
/
scripts
/
seek.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2004-05-16
|
3KB
|
157 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;
Global Timer Timer21;
Function func0();
Function func1287(Int 0);
func0()
{
Double Double3;
Int Int10;
Int Int9;
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 String22;
Int Int25;
if(! func0()) {
return Null;
}
String22 = System.getParam();
Layer17 = System.getScriptGroup().getObject(System.getToken(String22, ( "\;"), 0));
Layer18 = System.getScriptGroup().getObject(System.getToken(String22, ( "\;"), 1));
Map19 = ( new Map);
Map19.loadMap(System.getToken(String22, ( "\;"), 2));
Int20 = 0;
Layer18.setRegionFromMap(Map19, 0, 1);
Timer21 = ( new Timer);
Timer21.setDelay(1000);
Int25 = System.getStatus();
if(( ( Int25 == 1) || ( Int25 == ( - 1)))) {
Timer21.start();
}
return Null;
}
Timer21.onTimer()
{
if(Int2) {
return Null;
}
if(( System.getPosition() != 0)) {
func1287(( ( System.getPosition() / System.getPlayItemLength()) * 255));
}
return Null;
}
System.onPlay()
{
if(Int2) {
return Null;
}
Timer21.start();
return Null;
}
System.onStop()
{
if(Int2) {
return Null;
}
Timer21.stop();
Layer18.setRegionFromMap(Map19, 0, 1);
return Null;
}
Layer17.onLeftButtonDown(int x, int y)
{
if(Int2) {
return Null;
}
Int20 = 1;
Layer17.onMouseMove(x, y);
Timer21.stop();
return Null;
}
Layer17.onLeftButtonUp(int x, int y)
{
if(Int2) {
return Null;
}
Layer17.onMouseMove(x, y);
x = ( x - Layer17.getLeft());
y = ( y - Layer17.getTop());
if(Map19.inRegion(x, y)) {
System.seekTo(( ( Map19.getValue(x, y) / 255) * System.getPlayItemLength()));
}
Int20 = 0;
Timer21.start();
return Null;
}
Layer17.onMouseMove(int x, int y)
{
Int Int35;
Int Int33;
if(Int2) {
return Null;
}
if(( Int20 && ( ( System.getStatus() == 1) || ( System.getStatus() == ( - 1))))) {
x = ( x - Layer17.getLeft());
y = ( y - Layer17.getTop());
if(Map19.inRegion(x, y)) {
Int33 = Map19.getValue(x, y);
func1287(Int33);
Int35 = ( ( Int33 / 255) * 100);
}
}
return Null;
}
func1287(Int 0)
{
if(( ( System.getStatus() == 1) || ( System.getStatus() == ( - 1)))) {
Layer18.setRegionFromMap(Map19, Int36, 1);
}
return Null;
}
System.onScriptUnloading()
{
if(Int2) {
return Null;
}
delete Map19;
delete Timer21;
return Null;
}