home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 November
/
CDVD1105.ISO
/
Util
/
Winamp
/
Skins
/
Anime_Shogo.wal
/
scripts
/
visscrpt.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2004-08-22
|
4KB
|
129 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 GuiObject GuiObject18;
Global Boolean Boolean19;
Global Boolean Boolean20;
Function func598(Int 0, Int 0);
Function func1012(Int 0);
System.onScriptLoaded()
{
Group13 = System.getScriptGroup();
GuiObject18 = Group13.findObject(( "vis\.content"));
Group11 = Group13.findObject(( "vis\.topdoor"));
Group12 = Group13.findObject(( "vis\.bottomdoor"));
Layer15 = Group13.findObject(( "topdoor\.logo"));
Layer16 = Group13.findObject(( "bottomdoor\.logo"));
Group14 = Group13.findObject(( "vis\.overlay"));
Boolean19 = 1;
Boolean20 = System.getPrivateInt(System.getSkinName(), ( "doorVIS"), 0);
if(Boolean20) {
GuiObject18.hide();
func598(Group13.getHeight(), Group13.getWidth());
Timer17 = ( new Timer);
Timer17.setDelay(300);
Timer17.start();
} else {
Group11.hide();
Layer15.hide();
Group12.hide();
Layer16.hide();
Group14.hide();
GuiObject18.show();
}
return Null;
}
System.onScriptUnloading()
{
delete Timer17;
return Null;
}
func598(Int 0, Int 0)
{
Group11.setXmlParam(( "h"), System.integerToString(( ( Int29 - 48) / 2)));
Layer15.setXmlParam(( "x"), System.integerToString(( ( ( Int30 - 44) / 2) - 47)));
Group12.setXmlParam(( "h"), System.integerToString(( ( Int29 - 48) / 2)));
Group12.setXmlParam(( "y"), System.integerToString(( ( ( Int29 - 48) / 2) + 24)));
Layer16.setXmlParam(( "x"), System.integerToString(( ( ( Int30 - 44) / 2) - 61)));
return Null;
}
Group13.onResize(int x, int y, int w, int h)
{
if(Boolean20) {
func598(h, w);
}
return Null;
}
Timer17.onTimer()
{
func1012(Group13.getHeight());
Timer17.stop();
return Null;
}
func1012(Int 0)
{
Int Int45;
if(Boolean19) {
Int45 = Group11.getXmlParam(( "h"));
Group11.setTargetY(( 24 - Int45));
Group11.setTargetSpeed(3);
Group11.gotoTarget();
Group12.setTargetY(( ( ( ( Int44 - 48) / 2) + ( ( Int44 - 48) / 2)) + 24));
Group12.setTargetSpeed(3);
Group12.gotoTarget();
Boolean19 = 0;
} else {
Group11.setTargetY(24);
Group11.setTargetSpeed(3);
Group11.gotoTarget();
Group12.setTargetY(( ( ( Int44 - 48) / 2) + 24));
Group12.setTargetSpeed(3);
Group12.gotoTarget();
Boolean19 = 1;
}
return Null;
}
Group11.onTargetReached()
{
if(( ! Boolean19)) {
GuiObject18.show();
Group14.setTargetA(0);
Group14.setTargetSpeed(( 0.5));
Group14.gotoTarget();
Group11.hide();
Group12.hide();
}
return Null;
}
Group14.onTargetReached()
{
if(( Group14.getAlpha() == 0)) {
Group14.hide();
} else {
Group11.show();
Group12.show();
GuiObject18.hide();
func1012(Group13.getHeight());
}
return Null;
}