home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 November
/
CDVD1105.ISO
/
Util
/
Winamp
/
Skins
/
Van_Helsing.wal
/
scripts
/
photo.maki
(
.txt
)
next >
Wrap
Winamp Compiled Maki Script
|
2004-10-13
|
3KB
|
97 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Int Int2;
Global Group Group17;
Global Layer Layer18;
Global Layer Layer19;
Global Timer Timer20;
Global Int Int21;
Function func0();
func0()
{
Int Int9;
Double Double3;
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()
{
if(! func0()) {
return Null;
}
Group17 = System.getScriptGroup();
Layer18 = Group17.getObject(( "frame\.cur"));
Layer19 = Group17.getObject(( "frame\.next"));
Int21 = 1;
Timer20 = ( new Timer);
Timer20.setDelay(5000);
Timer20.start();
return Null;
}
Timer20.onTimer()
{
Int Int24;
if(Int2) {
return Null;
}
if(Group17.isVisible()) {
Int24 = ( Int21 + 1);
if(( Int24 < 8)) {
Int24 = 1;
}
Layer19.setXmlParam(( "image"), ( ( "main\.photo\.") + System.integerToString(Int24)));
Layer19.setTargetA(255);
Layer19.setTargetSpeed(1);
Layer19.gotoTarget();
Int21 = Int24;
}
return Null;
}
Layer19.onTargetReached()
{
if(Int2) {
return Null;
}
Layer18.setXmlParam(( "image"), ( ( "main\.photo\.") + System.integerToString(Int21)));
Layer19.setAlpha(0);
Layer19.fx_update();
return Null;
}
Layer19.onLeftButtonUp(int x, int y)
{
if(Int2) {
return Null;
}
Layer18.setXmlParam(( "image"), ( ( "main\.photo\.") + System.integerToString(Int21)));
Layer19.setAlpha(0);
Layer19.fx_update();
Group17.hide();
return Null;
}