home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 November
/
CDVD1105.ISO
/
Util
/
Winamp
/
Skins
/
Van_Helsing.wal
/
scripts
/
player.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2004-10-13
|
4KB
|
154 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Int Int2;
Global Layout Layout17;
Global Group Group18;
Global Layer Layer19;
Global Button Button20;
Global Button Button21;
Global Button Button22;
Global AnimatedLayer AnimatedLayer23;
Global AnimatedLayer AnimatedLayer24;
Global Timer Timer25;
Global Int Int26;
Function func0();
Function func1016(Int 0);
func0()
{
Int Int9;
Int Int10;
Double Double3;
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;
}
Layout17 = System.getContainer(( "main")).getLayout(( "normal"));
AnimatedLayer23 = Layout17.findObject(( "ani\.cbutton"));
Layer19 = Layout17.findObject(( "mouse\.area"));
Group18 = Layout17.findObject(( "group\.photo"));
Button20 = Layout17.findObject(( "logo"));
Timer25 = ( new Timer);
Timer25.setDelay(400);
Button21 = Layout17.findObject(( "eq\.toggle"));
Button22 = Layout17.findObject(( "but\.cover"));
AnimatedLayer24 = Layout17.findObject(( "ani\.cover"));
return Null;
}
Button20.onLeftClick()
{
Int Int37;
Int Int41;
PopupMenu PopupMenu38;
if(Int2) {
return Null;
}
Int37 = 0;
PopupMenu38 = ( new PopupMenu);
PopupMenu38.addCommand(( "Visit\ Website"), 1, 0, 0);
PopupMenu38.addCommand(( "View\ Slide\ Show"), 2, 0, 0);
Int41 = PopupMenu38.popAtMouse();
if(( Int41 == 1)) {
System.navigateUrl(( "http\:\/\/www\.vanhelsing\.net\/"));
}
if(( Int41 == 2)) {
Group18.show();
}
return Null;
}
Button22.onLeftClick()
{
if(Int2) {
return Null;
}
Button22.hide();
AnimatedLayer24.gotoFrame(0);
AnimatedLayer24.setStartFrame(0);
AnimatedLayer24.setEndFrame(( AnimatedLayer24.getLength() - 1));
AnimatedLayer24.play();
Timer25.start();
return Null;
}
AnimatedLayer24.onStop()
{
if(Int2) {
return Null;
}
AnimatedLayer24.hide();
return Null;
}
Button21.onActivate(int activated)
{
if(Int2) {
return Null;
}
if(activated) {
Layout17.findObject(( "main\.eq")).show();
} else {
Layout17.findObject(( "main\.eq")).hide();
}
return Null;
}
Timer25.onTimer()
{
if(Int2) {
return Null;
}
func1016(Layer19.isMouseOverRect());
return Null;
}
func1016(Int 0)
{
if(AnimatedLayer23.isPlaying()) {
return Null;
}
if(Int45) {
if(( ! Int26)) {
AnimatedLayer23.setStartFrame(0);
AnimatedLayer23.setEndFrame(( AnimatedLayer23.getLength() - 1));
AnimatedLayer23.gotoFrame(0);
AnimatedLayer23.play();
}
} else {
if(Int26) {
AnimatedLayer23.setStartFrame(( AnimatedLayer23.getLength() - 1));
AnimatedLayer23.setEndFrame(0);
AnimatedLayer23.gotoFrame(( AnimatedLayer23.getLength() - 1));
AnimatedLayer23.play();
}
}
Int26 = Int45;
return Null;
}