home *** CD-ROM | disk | FTP | other *** search
Winamp Compiled Maki Script | 2004-07-14 | 11.8 KB | 449 lines |
- /* Note: a decompiler is no invitation to steal code.
- Please respect the the copyright */
-
- #include "std.mi"
- Global ConfigAttribute ConfigAttribute17;
- Global ConfigAttribute ConfigAttribute18;
- Global ConfigAttribute ConfigAttribute19;
- Global ConfigAttribute ConfigAttribute20;
- Global ConfigAttribute ConfigAttribute21;
- Global ConfigAttribute ConfigAttribute22;
- Global ConfigAttribute ConfigAttribute23;
- Global ConfigAttribute ConfigAttribute24;
- Global ConfigAttribute ConfigAttribute25;
- Global ConfigAttribute ConfigAttribute26;
- Global ConfigAttribute ConfigAttribute27;
- Global ConfigAttribute ConfigAttribute28;
- Global ConfigAttribute ConfigAttribute29;
- Global ConfigAttribute ConfigAttribute30;
- Global ConfigAttribute ConfigAttribute31;
- Global ConfigAttribute ConfigAttribute32;
- Global ConfigAttribute ConfigAttribute33;
- Global ConfigAttribute ConfigAttribute34;
- Global ConfigAttribute ConfigAttribute35;
- Global ConfigAttribute ConfigAttribute36;
- Global ConfigAttribute ConfigAttribute37;
- Global ConfigAttribute ConfigAttribute38;
- Global ConfigAttribute ConfigAttribute39;
- Global ConfigAttribute ConfigAttribute40;
- Global ConfigAttribute ConfigAttribute41;
- Global ConfigAttribute ConfigAttribute42;
- Global ConfigAttribute ConfigAttribute43;
- Global Group Group116;
- Global Group Group117;
- Global Group Group118;
- Global Group Group119;
- Global Group Group120;
- Global Group Group121;
- Global Group Group122;
- Global Group Group123;
- Global Group Group124;
- Global Group Group125;
- Global Group Group126;
- Global Group Group127;
- Global Group Group128;
- Global Layer Layer129;
- Global Layer Layer130;
- Global Layer Layer131;
- Global Button Button132;
- Global Button Button133;
- Global Group Group134;
- Global Group Group135;
- Global Group Group136;
- Global GuiObject GuiObject137;
- Global Layout Layout138;
- Global Int Int139;
- Global Boolean Boolean140;
- Global Timer Timer141;
-
- Function func242();
- Function func2784(Int 0);
- Function func2959(Int 0);
- Function func3255(Int 0);
- Function func3565(Int 0);
- Function func4201(Int 0);
- Function func4888();
-
- func242()
- {
- ConfigItem ConfigItem49;
- ConfigAttribute ConfigAttribute79;
- ConfigAttribute ConfigAttribute75;
- ConfigItem ConfigItem67;
- ConfigItem ConfigItem64;
- ConfigAttribute ConfigAttribute72;
- ConfigItem ConfigItem58;
- ConfigItem ConfigItem71;
- ConfigItem ConfigItem55;
- ConfigAttribute ConfigAttribute74;
- ConfigAttribute ConfigAttribute84;
- ConfigAttribute ConfigAttribute73;
- ConfigItem ConfigItem61;
- ConfigAttribute ConfigAttribute78;
- ConfigItem ConfigItem69;
- ConfigItem ConfigItem52;
- ConfigAttribute ConfigAttribute77;
- ConfigItem ConfigItem46;
- ConfigItem46 = Config.newItem(( "Winamp\ Modern"), ( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
- ConfigItem49 = Config.newItem(( "Drawers"), ( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
- ConfigItem52 = Config.newItem(( "Menus"), ( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
- ConfigItem55 = Config.newItem(( "Main\ Windowshade\ Mode"), ( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
- ConfigItem58 = Config.newItem(( "Vis\ Buttons"), ( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
- ConfigItem61 = Config.newItem(( "Notifications"), ( "\{1AB968B3\-8687\-4a35\-BA70\-FCF6D92FB57F\}"));
- ConfigItem64 = Config.newItem(( "Songticker"), ( "\{7061FDE0\-0E12\-11D8\-BB41\-0050DA442EF3\}"));
- ConfigItem67 = Config.newItem(( "Hidden"), ( "\{E9C2D926\-53CA\-400f\-9A4D\-85E31755A4CF\}"));
- ConfigItem69 = Config.getItem(( "\{1828D28F\-78DD\-4647\-8532\-EBA504B8FC04\}"));
- ConfigItem71 = Config.getItem(( "\{6559CA61\-7EB2\-4415\-A8A9\-A2AEEF762B7F\}"));
- ConfigAttribute72 = ConfigItem69.newAttribute(( "Winamp\ Modern"), ( ""));
- ConfigAttribute72.setData(( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
- ConfigAttribute73 = ConfigItem46.newAttribute(( "Drawers"), ( ""));
- ConfigAttribute73.setData(( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
- ConfigAttribute74 = ConfigItem46.newAttribute(( "Menus"), ( ""));
- ConfigAttribute74.setData(( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
- ConfigAttribute75 = ConfigItem46.newAttribute(( "Main\ Windowshade\ Mode"), ( ""));
- ConfigAttribute75.setData(( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
- ConfigAttribute77 = ConfigItem46.newAttribute(( "Vis\ Shortcut\ Button"), ( ""));
- ConfigAttribute77.setData(( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
- ConfigAttribute78 = ConfigItem46.newAttribute(( "Notifications"), ( ""));
- ConfigAttribute78.setData(( "\{1AB968B3\-8687\-4a35\-BA70\-FCF6D92FB57F\}"));
- ConfigAttribute79 = ConfigItem46.newAttribute(( "Songticker"), ( ""));
- ConfigAttribute79.setData(( "\{7061FDE0\-0E12\-11D8\-BB41\-0050DA442EF3\}"));
- ConfigAttribute17 = ConfigItem49.newAttribute(( "Animate\ Video\/Vis\ Drawer\ \(disabled\ if\ opacity\ \<\ 100\%\)"), ( "0"));
- ConfigAttribute18 = ConfigItem49.newAttribute(( "Animate\ Config\ Drawer"), ( "0"));
- ConfigAttribute84 = ConfigItem49.newAttribute(( "sep1"), ( ""));
- ConfigAttribute84.setData(( "\-"));
- ConfigAttribute21 = ConfigItem49.newAttribute(( "Open\ Video\/Vis\ from\ the\ top"), ( "0"));
- ConfigAttribute22 = ConfigItem49.newAttribute(( "Open\ Video\/Vis\ from\ the\ bottom"), ( "1"));
- ConfigAttribute23 = ConfigItem49.newAttribute(( "Bypass\ setting\ to\ keep\ in\ screen"), ( "1"));
- if(( ConfigAttribute21.getData() == ( "1"))) {
- ConfigAttribute21.onDataChanged();
- } else {
- ConfigAttribute22.onDataChanged();
- }
- ConfigAttribute25 = ConfigItem52.newAttribute(( "Show\ Menus\ in\ Main\ Window"), ( "1"));
- ConfigAttribute26 = ConfigItem52.newAttribute(( "Show\ Menus\ in\ Playlist\ Editor"), ( "1"));
- ConfigAttribute27 = ConfigItem52.newAttribute(( "Show\ Menus\ in\ Media\ Library"), ( "1"));
- ConfigAttribute84 = ConfigItem46.newAttribute(( "sep1"), ( ""));
- ConfigAttribute84.setData(( "\-"));
- ConfigAttribute19 = ConfigItem46.newAttribute(( "Detach\ Vis\ Window"), ( "0"));
- ConfigAttribute20 = ConfigItem46.newAttribute(( "Detach\ Video\ Window"), ( "0"));
- ConfigAttribute24 = ConfigItem71.newAttribute(( "Equalizer\ Alt\+G"), ( "0"));
- ConfigAttribute84 = ConfigItem46.newAttribute(( "sep2"), ( ""));
- ConfigAttribute84.setData(( "\-"));
- ConfigAttribute31 = ConfigItem46.newAttribute(( "Enable\ Beat\ Visualization"), ( "1"));
- ConfigAttribute28 = ConfigItem55.newAttribute(( "Link\ Position\ and\ Width"), ( "1"));
- ConfigAttribute29 = ConfigItem55.newAttribute(( "Link\ Position\,\ Unlink\ Width"), ( "0"));
- ConfigAttribute30 = ConfigItem55.newAttribute(( "Unlink\ Position\ and\ Width"), ( "0"));
- ConfigAttribute33 = ConfigItem58.newAttribute(( "Open\ Context\ Menu"), ( "1"));
- ConfigAttribute32 = ConfigItem58.newAttribute(( "Open\ Configuration"), ( "0"));
- ConfigAttribute36 = ConfigItem61.newAttribute(( "Show\ always"), ( "0"));
- ConfigAttribute35 = ConfigItem61.newAttribute(( "Show\ with\ windowshade\ and\ when\ minimized"), ( "0"));
- ConfigAttribute34 = ConfigItem61.newAttribute(( "Show\ only\ when\ minimized"), ( "0"));
- ConfigAttribute37 = ConfigItem61.newAttribute(( "Never\ show"), ( "1"));
- ConfigAttribute84 = ConfigItem61.newAttribute(( "sep1"), ( ""));
- ConfigAttribute84.setData(( "\-"));
- ConfigAttribute41 = ConfigItem61.newAttribute(( "Disable\ in\ fullscreen"), ( "1"));
- ConfigAttribute38 = ConfigItem67.newAttribute(( "Notifications\ fade\ in\ time"), ( "1000"));
- ConfigAttribute39 = ConfigItem67.newAttribute(( "Notifications\ fade\ out\ time"), ( "5000"));
- ConfigAttribute40 = ConfigItem67.newAttribute(( "Notifications\ display\ time"), ( "2000"));
- ConfigAttribute42 = ConfigItem64.newAttribute(( "Enable\ Songticker\ scrolling"), ( "1"));
- ConfigAttribute43 = ConfigItem64.newAttribute(( "Disable\ Songticker\ scrolling"), ( "0"));
- return Null;
- }
-
- System.onScriptLoaded()
- {
- Int Int164;
- Int Int166;
- Int Int163;
- Int Int168;
- func242();
- Group116 = System.getScriptGroup();
- Layout138 = Group116.getParentLayout();
- Group119 = Group116.findObject(( "config\.tabs"));
- Group120 = Group116.findObject(( "config\.tab\.eq\.on"));
- Group121 = Group116.findObject(( "config\.tab\.eq\.off"));
- Group122 = Group116.findObject(( "config\.tab\.options\.on"));
- Group123 = Group116.findObject(( "config\.tab\.options\.off"));
- Group124 = Group116.findObject(( "config\.tab\.colorthemes\.on"));
- Group125 = Group116.findObject(( "config\.tab\.colorthemes\.off"));
- GuiObject137 = Group116.findObject(( "colorthemes"));
- Group117 = Group116.findObject(( "player\.main"));
- Group118 = Group116.findObject(( "AVSGroup"));
- Group126 = Group116.findObject(( "player\.normal\.drawer\.eq"));
- Group127 = Group116.findObject(( "player\.normal\.drawer\.options"));
- Group128 = Group116.findObject(( "player\.normal\.drawer\.colorthemes"));
- Layer129 = Group116.findObject(( "mousetrapTabEQ"));
- Layer130 = Group116.findObject(( "mousetrapTabOPTIONS"));
- Layer131 = Group116.findObject(( "mousetrapTabCOLORTHEMES"));
- Button132 = Group116.findObject(( "drawer\.button\.close"));
- Button133 = Group116.findObject(( "drawer\.button\.open"));
- Group134 = Group116.findObject(( "player\.normal\.drawer"));
- Group135 = Group116.findObject(( "player\.normal\.drawer\.shadow"));
- Group136 = Group116.findObject(( "player\.normal\.drawer\.content"));
- Int163 = Group120.getWidth();
- Int164 = Group122.getWidth();
- Int166 = ( Int163 - 3);
- Int168 = ( ( Int163 + Int164) - 6);
- Group122.setXmlParam(( "x"), System.integerToString(Int166));
- Group123.setXmlParam(( "x"), System.integerToString(Int166));
- Group125.setXmlParam(( "x"), System.integerToString(Int168));
- Group124.setXmlParam(( "x"), System.integerToString(Int168));
- Int139 = 1;
- func2784(System.getPrivateInt(( "winamp5"), ( "ConfigTab"), 1));
- Int139 = 0;
- if(System.getPrivateInt(( "winamp5"), ( "DrawerOpen"), 0)) {
- func3255(0);
- func4201(1);
- } else {
- func4201(0);
- }
- Boolean140 = 1;
- Timer141 = ( new Timer);
- Timer141.setDelay(250);
- return Null;
- }
-
- System.onScriptUnloading()
- {
- delete Timer141;
- return Null;
- }
-
- func2784(Int 0)
- {
- Group120.hide();
- Group122.hide();
- Group124.hide();
- if(( Int174 == 1)) {
- Group120.show();
- }
- if(( Int174 == 2)) {
- Group122.show();
- }
- if(( Int174 == 3)) {
- Group124.show();
- }
- func2959(Int174);
- System.setPrivateInt(( "winamp5"), ( "ConfigTab"), Int174);
- func4888();
- return Null;
- }
-
- func2959(Int 0)
- {
- if(( Int175 == 1)) {
- Group126.show();
- Group127.hide();
- Group128.hide();
- }
- if(( Int175 == 2)) {
- Group126.hide();
- Group127.show();
- Group128.hide();
- }
- if(( Int175 == 3)) {
- Group126.hide();
- Group127.hide();
- Group128.show();
- }
- return Null;
- }
-
- Layer129.onLeftButtonDown(int x, int y)
- {
- func2784(1);
- return Null;
- }
-
- Layer130.onLeftButtonDown(int x, int y)
- {
- func2784(2);
- return Null;
- }
-
- Layer131.onLeftButtonDown(int x, int y)
- {
- func2784(3);
- return Null;
- }
-
- func3255(Int 0)
- {
- Button133.hide();
- Button132.show();
- Layout138.beforeRedock();
- if(( Int182 && ( ConfigAttribute18.getData() == ( "1")))) {
- System.lockUI();
- Group134.setTargetX(Group134.getGuiX());
- Group134.setTargetY(( - 147));
- Group134.setTargetW(Group134.getGuiW());
- Group134.setTargetH(Group134.getGuiH());
- Group134.setTargetSpeed(1);
- Group134.gotoTarget();
- } else {
- Group134.setXmlParam(( "y"), ( "\-147"));
- System.setPrivateInt(( "winamp5"), ( "DrawerOpen"), 1);
- GuiObject137.show();
- func4201(1);
- func4888();
- Layout138.redock();
- }
- Group135.show();
- return Null;
- }
-
- func3565(Int 0)
- {
- Layout138.beforeRedock();
- GuiObject137.hide();
- Button132.hide();
- Button133.show();
- if(( Int186 && ( ConfigAttribute18.getData() == ( "1")))) {
- System.lockUI();
- Group134.setTargetX(Group134.getGuiX());
- Group134.setTargetY(( - 263));
- Group134.setTargetW(Group134.getGuiW());
- Group134.setTargetH(Group134.getGuiH());
- Group134.setTargetSpeed(1);
- Group134.gotoTarget();
- } else {
- Group134.setXmlParam(( "y"), ( "\-263"));
- Group135.hide();
- System.setPrivateInt(( "winamp5"), ( "DrawerOpen"), 0);
- func4201(0);
- func4888();
- Layout138.redock();
- }
- return Null;
- }
-
- Button132.onLeftClick()
- {
- func3565(1);
- return Null;
- }
-
- Button133.onLeftClick()
- {
- func3255(1);
- return Null;
- }
-
- Group134.onTargetReached()
- {
- if(Button132.isVisible()) {
- System.setPrivateInt(( "winamp5"), ( "DrawerOpen"), 1);
- GuiObject137.show();
- func4201(1);
- } else {
- Group135.hide();
- System.setPrivateInt(( "winamp5"), ( "DrawerOpen"), 0);
- func4201(0);
- }
- func4888();
- Layout138.redock();
- System.unlockUI();
- return Null;
- }
-
- func4201(Int 0)
- {
- Int Int190;
- Int190 = 0;
- if(( ConfigAttribute25.getData() == ( "0"))) {
- Int190 = 17;
- }
- if(Int189) {
- Layout138.snapAdjust(0, 0, 0, ( 0 + Int190));
- } else {
- Layout138.snapAdjust(0, 0, 0, ( 116 + Int190));
- }
- return Null;
- }
-
- ConfigAttribute25.onDataChanged()
- {
- Int Int194;
- Int Int193;
- Int193 = 0;
- if(( ConfigAttribute25.getData() == ( "0"))) {
- Int193 = 17;
- }
- Layout138.beforeRedock();
- Int194 = System.getPrivateInt(( "winamp5"), ( "DrawerOpen"), 0);
- if(Int194) {
- Layout138.snapAdjust(0, 0, 0, ( 0 + Int193));
- } else {
- Layout138.snapAdjust(0, 0, 0, ( 116 + Int193));
- }
- Layout138.redock();
- return Null;
- }
-
- Layout138.onResize(int x, int y, int w, int h)
- {
- Int Int200;
- Int200 = ( ( w / 2) - 163);
- Group136.setXmlParam(( "x"), System.integerToString(Int200));
- return Null;
- }
-
- ConfigAttribute24.onDataChanged()
- {
- if(Int139) {
- return Null;
- }
- Int139 = 1;
- if(( ConfigAttribute24.getData() == ( "1"))) {
- Layout138.getContainer().switchToLayout(( "normal"));
- Timer141.start();
- }
- if(( ConfigAttribute24.getData() == ( "0"))) {
- func3565(1);
- }
- Int139 = 0;
- return Null;
- }
-
- Timer141.onTimer()
- {
- Timer141.stop();
- func2784(1);
- if(Button133.isVisible()) {
- func3255(1);
- }
- return Null;
- }
-
- func4888()
- {
- Int Int174;
- if(Int139) {
- return Null;
- }
- Int139 = 1;
- if(( ( Int174 == 1) && ( ! Button133.isVisible()))) {
- ConfigAttribute24.setData(( "1"));
- } else {
- ConfigAttribute24.setData(( "0"));
- }
- Int139 = 0;
- return Null;
- }
-
- System.onKeyDown(String key)
- {
- if(( key == ( "alt\+g"))) {
- if(( ConfigAttribute24.getData() == ( "0"))) {
- ConfigAttribute24.setData(( "1"));
- } else {
- ConfigAttribute24.setData(( "0"));
- }
- complete;
- }
- return Null;
- }
-
-
-