home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 November
/
CDVD1105.ISO
/
Util
/
Winamp
/
Skins
/
Anime_Shogo.wal
/
scripts
/
eqbyregion.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2004-08-17
|
8KB
|
424 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 Layer Layer15;
Global Layer Layer16;
Global Layer Layer17;
Global Layer Layer18;
Global Layer Layer19;
Global Layer Layer20;
Global Layer Layer21;
Global Map Map22;
Global Boolean Boolean23;
Function func1370(Int 0, Layer 0);
Function func3567(Layer 0, Int 0, Int 0, Int 0);
System.onScriptLoaded()
{
Group Group24;
Group24 = System.getScriptGroup();
Layer11 = Group24.findObject(( "EQPreamp"));
Layer12 = Group24.findObject(( "EQBar0"));
Layer13 = Group24.findObject(( "EQBar1"));
Layer14 = Group24.findObject(( "EQBar2"));
Layer15 = Group24.findObject(( "EQBar3"));
Layer16 = Group24.findObject(( "EQBar4"));
Layer17 = Group24.findObject(( "EQBar5"));
Layer18 = Group24.findObject(( "EQBar6"));
Layer19 = Group24.findObject(( "EQBar7"));
Layer20 = Group24.findObject(( "EQBar8"));
Layer21 = Group24.findObject(( "EQBar9"));
Map22 = ( new Map);
Map22.loadMap(( "eq\.bar\.map"));
func1370(( 128 - System.getEqPreamp()), Layer11);
func1370(( 128 - System.getEqBand(0)), Layer12);
func1370(( 128 - System.getEqBand(1)), Layer13);
func1370(( 128 - System.getEqBand(2)), Layer14);
func1370(( 128 - System.getEqBand(3)), Layer15);
func1370(( 128 - System.getEqBand(4)), Layer16);
func1370(( 128 - System.getEqBand(5)), Layer17);
func1370(( 128 - System.getEqBand(6)), Layer18);
func1370(( 128 - System.getEqBand(7)), Layer19);
func1370(( 128 - System.getEqBand(8)), Layer20);
func1370(( 128 - System.getEqBand(9)), Layer21);
return Null;
}
System.onEqPreampChanged(int newvalue)
{
func1370(( 128 - newvalue), Layer11);
return Null;
}
System.onEqBandChanged(int band, int newvalue)
{
if(( band == 0)) {
func1370(( 128 - newvalue), Layer12);
} else {
if(( band == 1)) {
func1370(( 128 - newvalue), Layer13);
} else {
if(( band == 2)) {
func1370(( 128 - newvalue), Layer14);
} else {
if(( band == 3)) {
func1370(( 128 - newvalue), Layer15);
} else {
if(( band == 4)) {
func1370(( 128 - newvalue), Layer16);
} else {
if(( band == 5)) {
func1370(( 128 - newvalue), Layer17);
} else {
if(( band == 6)) {
func1370(( 128 - newvalue), Layer18);
} else {
if(( band == 7)) {
func1370(( 128 - newvalue), Layer19);
} else {
if(( band == 8)) {
func1370(( 128 - newvalue), Layer20);
} else {
if(( band == 9)) {
func1370(( 128 - newvalue), Layer21);
}
}
}
}
}
}
}
}
}
}
return Null;
}
func1370(Int 0, Layer 0)
{
Region Region51;
Region51 = ( new Region);
Region51.loadFromMap(Map22, Int49, 0);
Layer50.setRegion(Region51);
delete Region51;
return Null;
}
Layer11.onLeftButtonDown(int x, int y)
{
func3567(Layer11, 10, x, y);
Boolean23 = 1;
return Null;
}
Layer11.onLeftButtonUp(int x, int y)
{
if(Boolean23) {
Boolean23 = 0;
}
return Null;
}
Layer11.onMouseMove(int x, int y)
{
if(Boolean23) {
func3567(Layer11, 10, x, y);
}
return Null;
}
Layer12.onLeftButtonDown(int x, int y)
{
func3567(Layer12, 0, x, y);
Boolean23 = 1;
return Null;
}
Layer12.onLeftButtonUp(int x, int y)
{
if(Boolean23) {
Boolean23 = 0;
}
return Null;
}
Layer12.onMouseMove(int x, int y)
{
if(Boolean23) {
func3567(Layer12, 0, x, y);
}
return Null;
}
Layer13.onLeftButtonDown(int x, int y)
{
func3567(Layer13, 1, x, y);
Boolean23 = 1;
return Null;
}
Layer13.onLeftButtonUp(int x, int y)
{
if(Boolean23) {
Boolean23 = 0;
}
return Null;
}
Layer13.onMouseMove(int x, int y)
{
if(Boolean23) {
func3567(Layer13, 1, x, y);
}
return Null;
}
Layer14.onLeftButtonDown(int x, int y)
{
func3567(Layer14, 2, x, y);
Boolean23 = 1;
return Null;
}
Layer14.onLeftButtonUp(int x, int y)
{
if(Boolean23) {
Boolean23 = 0;
}
return Null;
}
Layer14.onMouseMove(int x, int y)
{
if(Boolean23) {
func3567(Layer14, 2, x, y);
}
return Null;
}
Layer15.onLeftButtonDown(int x, int y)
{
func3567(Layer15, 3, x, y);
Boolean23 = 1;
return Null;
}
Layer15.onLeftButtonUp(int x, int y)
{
if(Boolean23) {
Boolean23 = 0;
}
return Null;
}
Layer15.onMouseMove(int x, int y)
{
if(Boolean23) {
func3567(Layer15, 3, x, y);
}
return Null;
}
Layer16.onLeftButtonDown(int x, int y)
{
func3567(Layer16, 4, x, y);
Boolean23 = 1;
return Null;
}
Layer16.onLeftButtonUp(int x, int y)
{
if(Boolean23) {
Boolean23 = 0;
}
return Null;
}
Layer16.onMouseMove(int x, int y)
{
if(Boolean23) {
func3567(Layer16, 4, x, y);
}
return Null;
}
Layer17.onLeftButtonDown(int x, int y)
{
func3567(Layer17, 5, x, y);
Boolean23 = 1;
return Null;
}
Layer17.onLeftButtonUp(int x, int y)
{
if(Boolean23) {
Boolean23 = 0;
}
return Null;
}
Layer17.onMouseMove(int x, int y)
{
if(Boolean23) {
func3567(Layer17, 5, x, y);
}
return Null;
}
Layer18.onLeftButtonDown(int x, int y)
{
func3567(Layer18, 6, x, y);
Boolean23 = 1;
return Null;
}
Layer18.onLeftButtonUp(int x, int y)
{
if(Boolean23) {
Boolean23 = 0;
}
return Null;
}
Layer18.onMouseMove(int x, int y)
{
if(Boolean23) {
func3567(Layer18, 6, x, y);
}
return Null;
}
Layer19.onLeftButtonDown(int x, int y)
{
func3567(Layer19, 7, x, y);
Boolean23 = 1;
return Null;
}
Layer19.onLeftButtonUp(int x, int y)
{
if(Boolean23) {
Boolean23 = 0;
}
return Null;
}
Layer19.onMouseMove(int x, int y)
{
if(Boolean23) {
func3567(Layer19, 7, x, y);
}
return Null;
}
Layer20.onLeftButtonDown(int x, int y)
{
func3567(Layer20, 8, x, y);
Boolean23 = 1;
return Null;
}
Layer20.onLeftButtonUp(int x, int y)
{
if(Boolean23) {
Boolean23 = 0;
}
return Null;
}
Layer20.onMouseMove(int x, int y)
{
if(Boolean23) {
func3567(Layer20, 8, x, y);
}
return Null;
}
Layer21.onLeftButtonDown(int x, int y)
{
func3567(Layer21, 9, x, y);
Boolean23 = 1;
return Null;
}
Layer21.onLeftButtonUp(int x, int y)
{
if(Boolean23) {
Boolean23 = 0;
}
return Null;
}
Layer21.onMouseMove(int x, int y)
{
if(Boolean23) {
func3567(Layer21, 9, x, y);
}
return Null;
}
func3567(Layer 0, Int 0, Int 0, Int 0)
{
Int Int123;
Int123 = Map22.getValue(( Int121 - Layer119.getLeft()), ( Int122 - Layer119.getTop()));
Int123 = ( 128 - Int123);
if(( Int120 == 0)) {
System.setEqBand(0, Int123);
} else {
if(( Int120 == 1)) {
System.setEqBand(1, Int123);
} else {
if(( Int120 == 2)) {
System.setEqBand(2, Int123);
} else {
if(( Int120 == 3)) {
System.setEqBand(3, Int123);
} else {
if(( Int120 == 4)) {
System.setEqBand(4, Int123);
} else {
if(( Int120 == 5)) {
System.setEqBand(5, Int123);
} else {
if(( Int120 == 6)) {
System.setEqBand(6, Int123);
} else {
if(( Int120 == 7)) {
System.setEqBand(7, Int123);
} else {
if(( Int120 == 8)) {
System.setEqBand(8, Int123);
} else {
if(( Int120 == 9)) {
System.setEqBand(9, Int123);
} else {
if(( Int120 == 10)) {
System.setEqPreamp(Int123);
}
}
}
}
}
}
}
}
}
}
}
return Null;
}
System.onScriptUnloading()
{
delete Map22;
return Null;
}