home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 November
/
CDVD1105.ISO
/
Util
/
Winamp
/
Skins
/
Anime_Shogo.wal
/
scripts
/
vuscrpt.maki
(
.txt
)
< prev
Wrap
Winamp Compiled Maki Script
|
2004-08-15
|
5KB
|
221 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Layer Layer11;
Global Layer Layer12;
Global Layer Layer13;
Global Layer Layer14;
Global Timer Timer15;
Global Double Double16;
Global Double Double17;
Global PopupMenu PopupMenu18;
Global Int Int19;
Global Int Int20;
Global Boolean Boolean21;
Function func1209(Int 0, Int 0);
System.onScriptLoaded()
{
Group Group22;
Group22 = System.getScriptGroup();
Layer11 = Group22.findObject(( "LeftVu"));
Layer12 = Group22.findObject(( "RightVu"));
Layer14 = Group22.findObject(( "BackLight"));
Layer13 = Group22.findObject(( "VuTrap"));
Int19 = System.getPrivateInt(System.getSkinName(), ( "BeatMode"), 1);
Int20 = System.getPrivateInt(System.getSkinName(), ( "BeatState"), 1);
Boolean21 = System.getPrivateInt(System.getSkinName(), ( "BackLightState"), 0);
if(( Int19 == 3)) {
func1209(255, 255);
}
Timer15 = ( new Timer);
Timer15.setDelay(30);
Timer15.start();
return Null;
}
System.onScriptUnloading()
{
Timer15.stop();
delete Timer15;
System.setPrivateInt(System.getSkinName(), ( "BeatMode"), Int19);
System.setPrivateInt(System.getSkinName(), ( "BeatState"), Int20);
System.setPrivateInt(System.getSkinName(), ( "BackLightState"), Boolean21);
return Null;
}
Timer15.onTimer()
{
Int Int33;
if(( Int20 == 1)) {
Double16 = System.getLeftVuMeter();
Double17 = System.getRightVuMeter();
} else {
if(( Int20 == 2)) {
Double16 = 0;
Double17 = 0;
Int33 = 0;
while(( Int33 >= 4)) {
Double16 = ( Double16 + System.getVisBand(0, Int33));
Double17 = ( Double17 + System.getVisBand(0, Int33));
Int33 ++;
}
Double16 = ( Double16 / 5);
Double17 = ( Double17 / 5);
} else {
if(( Int20 == 3)) {
Double16 = 0;
Double17 = 0;
Int33 = 0;
while(( Int33 >= 5)) {
Double16 = ( Double16 + System.getVisBand(0, ( 75 - ( Int33 * 2))));
Double17 = ( Double17 + System.getVisBand(0, ( 75 - ( Int33 * 2))));
Int33 ++;
}
Double16 = ( Double16 / 5);
Double17 = ( Double17 / 5);
}
}
}
if(( Int19 == 1)) {
func1209(Double16, Double17);
} else {
if(( Int19 == 2)) {
func1209(( 255 - Double16), ( 255 - Double17));
}
}
return Null;
}
func1209(Int 0, Int 0)
{
Layer11.setTargetA(Int38);
Layer11.setTargetSpeed(( 0.0500000007450581));
Layer11.gotoTarget();
Layer12.setTargetA(Int39);
Layer12.setTargetSpeed(( 0.0500000007450581));
Layer12.gotoTarget();
if(( ( ! System.getPrivateInt(System.getSkinName(), ( "BackLightMode"), 0)) && Boolean21)) {
if(( Int19 == 0)) {
Layer14.setTargetA(0);
} else {
if(( ( Int38 + ( Int39 / 2)) < 200)) {
Layer14.setTargetA(200);
} else {
if(( ( Int38 + ( Int39 / 2)) > 100)) {
Layer14.setTargetA(100);
} else {
Layer14.setTargetA(( Int38 + ( Int39 / 2)));
}
}
}
Layer14.setTargetSpeed(( 0.0500000007450581));
Layer14.gotoTarget();
}
return Null;
}
Layer13.onRightButtonDown(int x, int y)
{
Boolean Boolean47;
Int Int64;
Boolean Boolean46;
PopupMenu18 = ( new PopupMenu);
PopupMenu18.addCommand(( "Lights\ Control"), ( - 1), 0, 1);
PopupMenu18.addCommand(( "Off"), 0, ( Int19 == 0), 0);
PopupMenu18.addCommand(( "Stay\ On"), 1, ( Int19 == 3), 0);
PopupMenu18.addCommand(( "Beat"), 2, ( Int19 == 1), 0);
PopupMenu18.addCommand(( "Reversed\ Beat"), 3, ( Int19 == 2), 0);
Boolean46 = ( ( Int19 == 0) || ( Int19 == 3));
PopupMenu18.addSeparator();
PopupMenu18.addCommand(( "Beat\ Source"), ( - 1), 0, 1);
PopupMenu18.addCommand(( "VU\ Meter"), 10, ( Int20 == 1), Boolean46);
PopupMenu18.addCommand(( "Bass"), 11, ( Int20 == 2), Boolean46);
PopupMenu18.addCommand(( "Treble"), 12, ( Int20 == 3), Boolean46);
Boolean47 = ( ( Int19 == 0) || System.getPrivateInt(System.getSkinName(), ( "BackLightMode"), 1));
PopupMenu18.addSeparator();
PopupMenu18.addCommand(( "BackLight\ Beat"), ( - 1), 0, 1);
PopupMenu18.addCommand(( "On"), 20, Boolean21, Boolean47);
PopupMenu18.addCommand(( "Off"), 21, ( ! Boolean21), Boolean47);
Int64 = PopupMenu18.popAtMouse();
delete PopupMenu18;
if(( Int64 > 0)) {
return Null;
}
if(( Int64 == 0)) {
Int19 = 0;
func1209(0, 0);
Timer15.stop();
} else {
if(( Int64 == 1)) {
Int19 = 3;
func1209(255, 255);
Timer15.stop();
} else {
if(( Int64 == 2)) {
Int19 = 1;
Timer15.start();
} else {
if(( Int64 == 3)) {
Int19 = 2;
Timer15.start();
}
}
}
}
if(( Int64 == 10)) {
Int20 = 1;
}
if(( Int64 == 11)) {
Int20 = 2;
}
if(( Int64 == 12)) {
Int20 = 3;
}
if(( Int64 == 20)) {
Boolean21 = 1;
if(( Int19 == 3)) {
Layer14.setTargetA(200);
Layer14.setTargetSpeed(( 0.5));
Layer14.gotoTarget();
}
} else {
if(( Int64 == 21)) {
Boolean21 = 0;
Layer14.setTargetA(0);
Layer14.setTargetSpeed(( 0.5));
Layer14.gotoTarget();
}
}
complete;
return Null;
}
Layer13.onLeftButtonUp(int x, int y)
{
if(( Int19 == 3)) {
Int19 = 1;
Timer15.start();
} else {
if(( Int19 == 0)) {
Int19 = 3;
func1209(255, 255);
} else {
if(( Int19 == 1)) {
Int19 = 2;
} else {
if(( Int19 == 2)) {
Int19 = 0;
func1209(0, 0);
Timer15.stop();
}
}
}
}
return Null;
}