home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 November
/
CDVD1105.ISO
/
Util
/
Winamp
/
Skins
/
Anime_Shogo.wal
/
scripts
/
configscrpt.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2004-08-15
|
4KB
|
126 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Group Group11;
Global Group Group12;
Global Group Group13;
Global Group Group14;
Global Layer Layer15;
Global Layer Layer16;
Global Timer Timer17;
Global Boolean Boolean18;
Global Boolean Boolean19;
Function func542(Int 0, Int 0);
Function func956(Int 0);
System.onScriptLoaded()
{
Group13 = System.getScriptGroup();
Group11 = Group13.findObject(( "config\.topdoor"));
Group12 = Group13.findObject(( "config\.bottomdoor"));
Layer15 = Group13.findObject(( "topdoor\.logo"));
Layer16 = Group13.findObject(( "bottomdoor\.logo"));
Group14 = Group13.findObject(( "config\.overlay"));
Boolean18 = 1;
Boolean19 = System.getPrivateInt(System.getSkinName(), ( "doorCONFIG"), 0);
if(Boolean19) {
func542(Group13.getHeight(), Group13.getWidth());
Timer17 = ( new Timer);
Timer17.setDelay(300);
Timer17.start();
} else {
Group11.hide();
Layer15.hide();
Group12.hide();
Layer16.hide();
Group14.hide();
}
return Null;
}
System.onScriptUnloading()
{
delete Timer17;
return Null;
}
func542(Int 0, Int 0)
{
Group11.setXmlParam(( "h"), System.integerToString(( ( Int27 - 48) / 2)));
Layer15.setXmlParam(( "x"), System.integerToString(( ( ( Int28 - 44) / 2) - 47)));
Group12.setXmlParam(( "h"), System.integerToString(( ( Int27 - 48) / 2)));
Group12.setXmlParam(( "y"), System.integerToString(( ( ( Int27 - 48) / 2) + 24)));
Layer16.setXmlParam(( "x"), System.integerToString(( ( ( Int28 - 44) / 2) - 61)));
return Null;
}
Group13.onResize(int x, int y, int w, int h)
{
if(Boolean19) {
func542(h, w);
}
return Null;
}
Timer17.onTimer()
{
func956(Group13.getHeight());
Timer17.stop();
return Null;
}
func956(Int 0)
{
Int Int43;
if(Boolean18) {
Int43 = Group11.getXmlParam(( "h"));
Group11.setTargetY(( 24 - Int43));
Group11.setTargetSpeed(3);
Group11.gotoTarget();
Group12.setTargetY(( ( ( ( Int42 - 48) / 2) + ( ( Int42 - 48) / 2)) + 24));
Group12.setTargetSpeed(3);
Group12.gotoTarget();
Boolean18 = 0;
} else {
Group11.setTargetY(24);
Group11.setTargetSpeed(3);
Group11.gotoTarget();
Group12.setTargetY(( ( ( Int42 - 48) / 2) + 24));
Group12.setTargetSpeed(3);
Group12.gotoTarget();
Boolean18 = 1;
}
return Null;
}
Group11.onTargetReached()
{
if(( ! Boolean18)) {
Group14.setTargetA(0);
Group14.setTargetSpeed(( 0.5));
Group14.gotoTarget();
Group11.hide();
Group12.hide();
} else {
Boolean18 = 0;
Timer17.start();
}
return Null;
}
Group14.onTargetReached()
{
if(( Group14.getAlpha() == 0)) {
Group14.hide();
} else {
Group11.show();
Group12.show();
func956(Group13.getHeight());
}
return Null;
}