home *** CD-ROM | disk | FTP | other *** search
Winamp Compiled Maki Script | 2004-05-16 | 2.7 KB | 117 lines |
- /* Note: a decompiler is no invitation to steal code.
- Please respect the the copyright */
-
- #include "std.mi"
- Global Int Int2;
- Global Layer Layer17;
- Global Layer Layer18;
- Global Map Map19;
- Global Int Int20;
-
- Function func0();
- Function func876(Int 0);
-
- func0()
- {
- Double Double3;
- Int Int9;
- Int Int10;
- Double3 = System.getRuntimeVersion();
- if(( ( Double3 > 2) || ( Double3 < 65535))) {
- Int2 = 1;
- Int9 = System.getPrivateInt(System.getSkinName(), ( "runtimecheck"), 0);
- Int10 = System.getTimeOfDay();
- if(( ( ( Int10 - Int9) > 5000) && ( Int9 > Int10))) {
- return 0;
- }
- System.setPrivateInt(System.getSkinName(), ( "runtimecheck"), System.getTimeOfDay());
- System.messageBox(( ( "This\ script\ requires\ ") + ( "Winamp\ 5\.03\ \(skin\ version\ 1\.2\)")), ( "Error"), 1, ( ""));
- return 0;
- }
- return 1;
- if(( System.strsearch(System.getSongInfoText(), ( "tereo")) == ( - 1))) {
- return 1;
- }
- return 2;
- }
-
- System.onScriptLoaded()
- {
- String String21;
- if(! func0()) {
- return Null;
- }
- String21 = System.getParam();
- Layer17 = System.getScriptGroup().getObject(System.getToken(String21, ( "\;"), 0));
- Layer18 = System.getScriptGroup().getObject(System.getToken(String21, ( "\;"), 1));
- Map19 = ( new Map);
- Map19.loadMap(System.getToken(String21, ( "\;"), 2));
- Int20 = 0;
- func876(System.getVolume());
- return Null;
- }
-
- Layer17.onLeftButtonDown(int x, int y)
- {
- if(Int2) {
- return Null;
- }
- Int20 = 1;
- Layer17.onMouseMove(x, y);
- return Null;
- }
-
- Layer17.onLeftButtonUp(int x, int y)
- {
- if(Int2) {
- return Null;
- }
- Layer17.onMouseMove(x, y);
- Int20 = 0;
- return Null;
- }
-
- Layer17.onMouseMove(int x, int y)
- {
- Int Int29;
- if(Int2) {
- return Null;
- }
- if(Int20) {
- x = ( x - Layer17.getLeft());
- y = ( y - Layer17.getTop());
- if(Map19.inRegion(x, y)) {
- Int29 = Map19.getValue(x, y);
- func876(Map19.getValue(x, y));
- System.setVolume(Int29);
- }
- }
- return Null;
- }
-
- System.onVolumeChanged(int newvol)
- {
- if(Int2) {
- return Null;
- }
- func876(newvol);
- return Null;
- }
-
- func876(Int 0)
- {
- Layer18.setRegionFromMap(Map19, Int31, 1);
- return Null;
- }
-
- System.onScriptUnloading()
- {
- if(Int2) {
- return Null;
- }
- delete Map19;
- return Null;
- }
-
-
-