home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 November
/
CDVD1105.ISO
/
Util
/
Winamp
/
Skins
/
Anime_Shogo.wal
/
scripts
/
eqscrpt.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2004-08-16
|
4KB
|
148 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;
Global Button Button20;
Global Button Button21;
Function func594(Int 0, Int 0);
Function func1008(Int 0);
System.onScriptLoaded()
{
Group13 = System.getScriptGroup();
Group11 = Group13.findObject(( "eq\.topdoor"));
Group12 = Group13.findObject(( "eq\.bottomdoor"));
Layer15 = Group13.findObject(( "topdoor\.logo"));
Layer16 = Group13.findObject(( "bottomdoor\.logo"));
Group14 = Group13.findObject(( "eq\.overlay"));
Button20 = Group13.findObject(( "close\.door"));
Button21 = Group13.findObject(( "close\.door\.dummy"));
Boolean18 = 1;
Boolean19 = System.getPrivateInt(System.getSkinName(), ( "doorEQ"), 0);
if(Boolean19) {
func594(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;
}
func594(Int 0, Int 0)
{
Group11.setXmlParam(( "h"), System.integerToString(( ( Int31 - 48) / 2)));
Layer15.setXmlParam(( "x"), System.integerToString(( ( ( Int32 - 44) / 2) - 47)));
Group12.setXmlParam(( "h"), System.integerToString(( ( Int31 - 48) / 2)));
Group12.setXmlParam(( "y"), System.integerToString(( ( ( Int31 - 48) / 2) + 24)));
Layer16.setXmlParam(( "x"), System.integerToString(( ( ( Int32 - 44) / 2) - 61)));
return Null;
}
Group13.onResize(int x, int y, int w, int h)
{
if(Boolean19) {
func594(h, w);
}
return Null;
}
Timer17.onTimer()
{
func1008(Group13.getHeight());
Timer17.stop();
return Null;
}
func1008(Int 0)
{
Int Int47;
if(Boolean18) {
Int47 = Group11.getXmlParam(( "h"));
Group11.setTargetY(( 24 - Int47));
Group11.setTargetSpeed(3);
Group11.gotoTarget();
Group12.setTargetY(( ( ( ( Int46 - 48) / 2) + ( ( Int46 - 48) / 2)) + 24));
Group12.setTargetSpeed(3);
Group12.gotoTarget();
Boolean18 = 0;
} else {
Group11.setTargetY(24);
Group11.setTargetSpeed(3);
Group11.gotoTarget();
Group12.setTargetY(( ( ( Int46 - 48) / 2) + 24));
Group12.setTargetSpeed(3);
Group12.gotoTarget();
Boolean18 = 1;
}
return Null;
}
Button20.onLeftButtonUp(int x, int y)
{
if(Boolean19) {
Group11.setXmlParam(( "h"), System.integerToString(( ( Group13.getHeight() - 48) / 2)));
Group11.setXmlParam(( "y"), System.integerToString(( 24 - Group11.getHeight())));
Layer15.setXmlParam(( "x"), System.integerToString(( ( ( Group13.getWidth() - 44) / 2) - 47)));
Group12.setXmlParam(( "h"), System.integerToString(( ( Group13.getHeight() - 48) / 2)));
Group12.setXmlParam(( "y"), System.integerToString(( ( ( ( Group13.getHeight() - 48) / 2) + ( ( Group13.getHeight() - 48) / 2)) + 24)));
Layer16.setXmlParam(( "x"), System.integerToString(( ( ( Group13.getWidth() - 44) / 2) - 61)));
Group14.show();
Group14.setTargetA(255);
Group14.setTargetSpeed(( 0.5));
Group14.gotoTarget();
} else {
Button21.leftClick();
}
return Null;
}
Group11.onTargetReached()
{
if(( ! Boolean18)) {
Group14.setTargetA(0);
Group14.setTargetSpeed(( 0.5));
Group14.gotoTarget();
Group11.hide();
Group12.hide();
} else {
Button21.leftClick();
}
return Null;
}
Group14.onTargetReached()
{
if(( Group14.getAlpha() == 0)) {
Group14.hide();
} else {
Group11.show();
Group12.show();
func1008(Group13.getHeight());
}
return Null;
}