home *** CD-ROM | disk | FTP | other *** search
Winamp Compiled Maki Script | 2003-10-22 | 11.9 KB | 598 lines |
- /* Note: a decompiler is no invitation to steal code.
- Please respect the the copyright */
-
- #include "std.mi"
- Global ConfigAttribute ConfigAttribute3;
- Global ConfigAttribute ConfigAttribute4;
- Global ConfigAttribute ConfigAttribute5;
- Global ConfigAttribute ConfigAttribute6;
- Global ConfigAttribute ConfigAttribute7;
- Global ConfigAttribute ConfigAttribute8;
- Global ConfigAttribute ConfigAttribute9;
- Global ConfigAttribute ConfigAttribute10;
- Global ConfigAttribute ConfigAttribute11;
- Global ConfigAttribute ConfigAttribute12;
- Global ConfigAttribute ConfigAttribute13;
- Global ConfigAttribute ConfigAttribute14;
- Global ConfigAttribute ConfigAttribute15;
- Global ConfigAttribute ConfigAttribute16;
- Global ConfigAttribute ConfigAttribute17;
- Global ConfigAttribute ConfigAttribute18;
- Global ConfigAttribute ConfigAttribute19;
- Global Group Group68;
- Global Group Group69;
- Global Group Group70;
- Global Group Group71;
- Global Group Group72;
- Global Group Group73;
- Global Group Group74;
- Global Group Group75;
- Global Group Group76;
- Global Group Group77;
- Global Group Group78;
- Global Group Group79;
- Global Group Group80;
- Global Layer Layer81;
- Global Layer Layer82;
- Global Layer Layer83;
- Global Button Button84;
- Global Button Button85;
- Global Group Group86;
- Global Group Group87;
- Global Group Group88;
- Global GuiObject GuiObject89;
- Global Layout Layout90;
- Global Int Int91;
- Global ToggleButton ToggleButton92;
- Global ToggleButton ToggleButton93;
- Global ToggleButton ToggleButton94;
- Global ToggleButton ToggleButton95;
- Global ToggleButton ToggleButton96;
- Global ToggleButton ToggleButton97;
- Global ToggleButton ToggleButton98;
- Global ToggleButton ToggleButton99;
- Global ToggleButton ToggleButton100;
- Global ToggleButton ToggleButton101;
- Global ToggleButton ToggleButton102;
- Global ToggleButton ToggleButton103;
- Global ToggleButton ToggleButton104;
- Global Boolean Boolean106;
-
- Function func0();
- Function func2494(Int 0);
- Function func2662(Int 0);
- Function func2901(Int 0);
- Function func3213(Int 0);
- Function func3791(Int 0);
- Function func4368();
-
- func0()
- {
- ConfigAttribute ConfigAttribute50;
- ConfigItem ConfigItem38;
- ConfigAttribute ConfigAttribute43;
- ConfigAttribute ConfigAttribute45;
- ConfigAttribute ConfigAttribute41;
- ConfigAttribute ConfigAttribute40;
- ConfigItem ConfigItem25;
- ConfigItem ConfigItem22;
- ConfigItem ConfigItem31;
- ConfigAttribute ConfigAttribute42;
- ConfigItem ConfigItem28;
- ConfigItem ConfigItem36;
- ConfigItem ConfigItem34;
- ConfigItem22 = Config.newItem(( "Winamp\ Modern"), ( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
- ConfigItem25 = Config.newItem(( "Drawers"), ( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
- ConfigItem28 = Config.newItem(( "Menus"), ( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
- ConfigItem31 = Config.newItem(( "Main\ Windowshade\ Mode"), ( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
- ConfigItem34 = Config.newItem(( "Vis\ Buttons"), ( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
- ConfigItem36 = Config.getItem(( "\{1828D28F\-78DD\-4647\-8532\-EBA504B8FC04\}"));
- ConfigItem38 = Config.getItem(( "\{6559CA61\-7EB2\-4415\-A8A9\-A2AEEF762B7F\}"));
- ConfigAttribute40 = ConfigItem36.newAttribute(( "Winamp\ Modern"), ( ""));
- ConfigAttribute40.setData(( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
- ConfigAttribute41 = ConfigItem22.newAttribute(( "Drawers"), ( ""));
- ConfigAttribute41.setData(( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
- ConfigAttribute42 = ConfigItem22.newAttribute(( "Menus"), ( ""));
- ConfigAttribute42.setData(( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
- ConfigAttribute43 = ConfigItem22.newAttribute(( "Main\ Windowshade\ Mode"), ( ""));
- ConfigAttribute43.setData(( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
- ConfigAttribute45 = ConfigItem22.newAttribute(( "Vis\ Shortcut\ Button"), ( ""));
- ConfigAttribute45.setData(( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
- ConfigAttribute3 = ConfigItem25.newAttribute(( "Animate\ Video\/Vis\ Drawer"), ( "0"));
- ConfigAttribute4 = ConfigItem25.newAttribute(( "Animate\ Config\ Drawer"), ( "0"));
- ConfigAttribute50 = ConfigItem25.newAttribute(( "sep1"), ( ""));
- ConfigAttribute50.setData(( "\-"));
- ConfigAttribute7 = ConfigItem25.newAttribute(( "Open\ Video\/Vis\ from\ the\ top"), ( "0"));
- ConfigAttribute8 = ConfigItem25.newAttribute(( "Open\ Video\/Vis\ from\ the\ bottom"), ( "1"));
- ConfigAttribute9 = ConfigItem25.newAttribute(( "Bypass\ setting\ to\ keep\ in\ screen"), ( "1"));
- if(( ConfigAttribute7.getData() == ( "1"))) {
- ConfigAttribute7.onDataChanged();
- } else {
- ConfigAttribute8.onDataChanged();
- }
- ConfigAttribute11 = ConfigItem28.newAttribute(( "Show\ Menus\ in\ Main\ Window"), ( "1"));
- ConfigAttribute12 = ConfigItem28.newAttribute(( "Show\ Menus\ in\ Playlist\ Editor"), ( "1"));
- ConfigAttribute13 = ConfigItem28.newAttribute(( "Show\ Menus\ in\ Media\ Library"), ( "1"));
- ConfigAttribute5 = ConfigItem22.newAttribute(( "Detach\ Vis\ Window"), ( "0"));
- ConfigAttribute6 = ConfigItem22.newAttribute(( "Detach\ Video\ Window"), ( "0"));
- ConfigAttribute10 = ConfigItem38.newAttribute(( "Equalizer\ Alt\+G"), ( "0"));
- ConfigAttribute17 = ConfigItem22.newAttribute(( "Enable\ Beat\ Visualization"), ( "1"));
- ConfigAttribute14 = ConfigItem31.newAttribute(( "Link\ Position\ and\ Width"), ( "1"));
- ConfigAttribute15 = ConfigItem31.newAttribute(( "Link\ Position\,\ Unlink\ Width"), ( "0"));
- ConfigAttribute16 = ConfigItem31.newAttribute(( "Unlink\ Position\ and\ Width"), ( "0"));
- ConfigAttribute19 = ConfigItem34.newAttribute(( "Open\ Context\ Menu"), ( "1"));
- ConfigAttribute18 = ConfigItem34.newAttribute(( "Open\ Configuration"), ( "0"));
- return Null;
- }
-
- System.onScriptLoaded()
- {
- Int Int141;
- Int Int144;
- Int Int146;
- Int Int142;
- func0();
- Group68 = System.getScriptGroup();
- Layout90 = Group68.getParentLayout();
- Group71 = Group68.findObject(( "config\.tabs"));
- Group72 = Group68.findObject(( "config\.tab\.eq\.on"));
- Group73 = Group68.findObject(( "config\.tab\.eq\.off"));
- Group74 = Group68.findObject(( "config\.tab\.options\.on"));
- Group75 = Group68.findObject(( "config\.tab\.options\.off"));
- Group76 = Group68.findObject(( "config\.tab\.colorthemes\.on"));
- Group77 = Group68.findObject(( "config\.tab\.colorthemes\.off"));
- GuiObject89 = Group68.findObject(( "colorthemes"));
- Group69 = Group68.findObject(( "player\.main"));
- Group70 = Group68.findObject(( "AVSGroup"));
- Group78 = Group68.findObject(( "player\.normal\.drawer\.eq"));
- Group79 = Group68.findObject(( "player\.normal\.drawer\.options"));
- Group80 = Group68.findObject(( "player\.normal\.drawer\.colorthemes"));
- Layer81 = Group68.findObject(( "mousetrapTabEQ"));
- Layer82 = Group68.findObject(( "mousetrapTabOPTIONS"));
- Layer83 = Group68.findObject(( "mousetrapTabCOLORTHEMES"));
- Button84 = Group68.findObject(( "drawer\.button\.close"));
- Button85 = Group68.findObject(( "drawer\.button\.open"));
- Group86 = Group68.findObject(( "player\.normal\.drawer"));
- Group87 = Group68.findObject(( "player\.normal\.drawer\.shadow"));
- Group88 = Group68.findObject(( "player\.normal\.drawer\.content"));
- ToggleButton92 = Group68.findObject(( "options\.animate"));
- ToggleButton93 = Group68.findObject(( "options\.openfromtop"));
- ToggleButton94 = Group68.findObject(( "options\.openfrombottom"));
- ToggleButton95 = Group68.findObject(( "options\.bypass"));
- ToggleButton96 = Group68.findObject(( "options\.menumain"));
- ToggleButton97 = Group68.findObject(( "options\.menupl"));
- ToggleButton98 = Group68.findObject(( "options\.menuml"));
- ToggleButton99 = Group68.findObject(( "options\.detachvis"));
- ToggleButton100 = Group68.findObject(( "options\.detachvideo"));
- ToggleButton103 = Group68.findObject(( "options\.unlink"));
- ToggleButton101 = Group68.findObject(( "options\.linkposition"));
- ToggleButton102 = Group68.findObject(( "options\.linkpositionwidth"));
- ToggleButton104 = Group68.findObject(( "options\.beatvis"));
- ToggleButton92.setActivated(System.StringToInteger(ConfigAttribute3.getData()));
- ToggleButton93.setActivated(System.StringToInteger(ConfigAttribute7.getData()));
- ToggleButton94.setActivated(System.StringToInteger(ConfigAttribute8.getData()));
- ToggleButton95.setActivated(System.StringToInteger(ConfigAttribute9.getData()));
- ToggleButton96.setActivated(System.StringToInteger(ConfigAttribute11.getData()));
- ToggleButton97.setActivated(System.StringToInteger(ConfigAttribute12.getData()));
- ToggleButton98.setActivated(System.StringToInteger(ConfigAttribute13.getData()));
- ToggleButton99.setActivated(System.StringToInteger(ConfigAttribute5.getData()));
- ToggleButton100.setActivated(System.StringToInteger(ConfigAttribute6.getData()));
- ToggleButton103.setActivated(System.StringToInteger(ConfigAttribute16.getData()));
- ToggleButton101.setActivated(System.StringToInteger(ConfigAttribute15.getData()));
- ToggleButton102.setActivated(System.StringToInteger(ConfigAttribute14.getData()));
- ToggleButton104.setActivated(System.StringToInteger(ConfigAttribute17.getData()));
- Int141 = Group72.getWidth();
- Int142 = Group74.getWidth();
- Int144 = ( Int141 - 3);
- Int146 = ( ( Int141 + Int142) - 6);
- Group74.setXmlParam(( "x"), System.integerToString(Int144));
- Group75.setXmlParam(( "x"), System.integerToString(Int144));
- Group77.setXmlParam(( "x"), System.integerToString(Int146));
- Group76.setXmlParam(( "x"), System.integerToString(Int146));
- Int91 = 1;
- func2494(System.getPrivateInt(( "winamp5"), ( "ConfigTab"), 1));
- Int91 = 0;
- if(System.getPrivateInt(( "winamp5"), ( "DrawerOpen"), 0)) {
- func2901(0);
- func3791(1);
- } else {
- func3791(0);
- }
- Boolean106 = 1;
- return Null;
- }
-
- func2494(Int 0)
- {
- Group72.hide();
- Group74.hide();
- Group76.hide();
- if(( Int152 == 1)) {
- Group72.show();
- }
- if(( Int152 == 2)) {
- Group74.show();
- }
- if(( Int152 == 3)) {
- Group76.show();
- }
- func2662(Int152);
- System.setPrivateInt(( "winamp5"), ( "ConfigTab"), Int152);
- func4368();
- return Null;
- }
-
- func2662(Int 0)
- {
- if(( Int154 == 1)) {
- Group78.show();
- Group79.hide();
- Group80.hide();
- }
- if(( Int154 == 2)) {
- Group78.hide();
- Group79.show();
- Group80.hide();
- }
- if(( Int154 == 3)) {
- Group78.hide();
- Group79.hide();
- Group80.show();
- }
- return Null;
- }
-
- Layer81.onLeftButtonDown(int x, int y)
- {
- func2494(1);
- return Null;
- }
-
- Layer82.onLeftButtonDown(int x, int y)
- {
- func2494(2);
- return Null;
- }
-
- Layer83.onLeftButtonDown(int x, int y)
- {
- func2494(3);
- return Null;
- }
-
- func2901(Int 0)
- {
- Layout90.beforeRedock();
- if(( Int161 && ( ConfigAttribute4.getData() == ( "1")))) {
- System.lockUI();
- Group86.setTargetX(Group86.getGuiX());
- Group86.setTargetY(( - 147));
- Group86.setTargetW(Group86.getGuiW());
- Group86.setTargetH(Group86.getGuiH());
- Group86.setTargetSpeed(1);
- Group86.gotoTarget();
- } else {
- Group86.setXmlParam(( "y"), ( "\-147"));
- System.setPrivateInt(( "winamp5"), ( "DrawerOpen"), 1);
- GuiObject89.show();
- func3791(1);
- func4368();
- Layout90.redock();
- }
- Button85.hide();
- Button84.show();
- Group87.show();
- Layout90.setXmlParam(( "minimum_h"), ( "397"));
- return Null;
- }
-
- func3213(Int 0)
- {
- Layout90.beforeRedock();
- Layout90.setXmlParam(( "minimum_h"), ( "280"));
- GuiObject89.hide();
- if(( Int167 && ( ConfigAttribute4.getData() == ( "1")))) {
- System.lockUI();
- Group86.setTargetX(Group86.getGuiX());
- Group86.setTargetY(( - 263));
- Group86.setTargetW(Group86.getGuiW());
- Group86.setTargetH(Group86.getGuiH());
- Group86.setTargetSpeed(1);
- Group86.gotoTarget();
- } else {
- Group86.setXmlParam(( "y"), ( "\-263"));
- Group87.hide();
- System.setPrivateInt(( "winamp5"), ( "DrawerOpen"), 0);
- func3791(0);
- func4368();
- Layout90.redock();
- }
- Button84.hide();
- Button85.show();
- return Null;
- }
-
- Button84.onLeftClick()
- {
- func3213(1);
- return Null;
- }
-
- Button85.onLeftClick()
- {
- func2901(1);
- return Null;
- }
-
- Group86.onTargetReached()
- {
- if(Button84.isVisible()) {
- System.setPrivateInt(( "winamp5"), ( "DrawerOpen"), 1);
- GuiObject89.show();
- func3791(1);
- } else {
- Group87.hide();
- System.setPrivateInt(( "winamp5"), ( "DrawerOpen"), 0);
- func3791(0);
- }
- func4368();
- Layout90.redock();
- System.unlockUI();
- return Null;
- }
-
- func3791(Int 0)
- {
- Int Int172;
- Int172 = 0;
- if(( ConfigAttribute11.getData() == ( "0"))) {
- Int172 = 17;
- }
- if(Int171) {
- Layout90.snapAdjust(0, 0, 0, ( 0 + Int172));
- } else {
- Layout90.snapAdjust(0, 0, 0, ( 116 + Int172));
- }
- return Null;
- }
-
- ConfigAttribute11.onDataChanged()
- {
- Int Int175;
- Int Int176;
- Int175 = 0;
- if(( ConfigAttribute11.getData() == ( "0"))) {
- Int175 = 17;
- }
- Layout90.beforeRedock();
- Int176 = System.getPrivateInt(( "winamp5"), ( "DrawerOpen"), 0);
- if(Int176) {
- Layout90.snapAdjust(0, 0, 0, ( 0 + Int175));
- } else {
- Layout90.snapAdjust(0, 0, 0, ( 116 + Int175));
- }
- Layout90.redock();
- return Null;
- }
-
- Layout90.onResize(int x, int y, int w, int h)
- {
- Int Int182;
- Int182 = ( ( w / 2) - 163);
- Group88.setXmlParam(( "x"), System.integerToString(Int182));
- return Null;
- }
-
- ConfigAttribute10.onDataChanged()
- {
- if(Int91) {
- return Null;
- }
- Int91 = 1;
- if(( ConfigAttribute10.getData() == ( "1"))) {
- Layout90.getContainer().switchToLayout(( "normal"));
- func2494(1);
- if(Button85.isVisible()) {
- func2901(1);
- }
- }
- if(( ConfigAttribute10.getData() == ( "0"))) {
- func3213(1);
- }
- Int91 = 0;
- return Null;
- }
-
- func4368()
- {
- Int Int152;
- if(Int91) {
- return Null;
- }
- Int91 = 1;
- if(( ( Int152 == 1) && ( ! Button85.isVisible()))) {
- ConfigAttribute10.setData(( "1"));
- } else {
- ConfigAttribute10.setData(( "0"));
- }
- Int91 = 0;
- return Null;
- }
-
- System.onKeyDown(String key)
- {
- if(( key == ( "alt\+g"))) {
- if(( ConfigAttribute10.getData() == ( "0"))) {
- ConfigAttribute10.setData(( "1"));
- } else {
- ConfigAttribute10.setData(( "0"));
- }
- complete;
- }
- return Null;
- }
-
- ToggleButton96.onToggle(Boolean onoff)
- {
- ConfigAttribute11.setData(System.integerToString(onoff));
- return Null;
- }
-
- ToggleButton97.onToggle(Boolean onoff)
- {
- ConfigAttribute12.setData(System.integerToString(onoff));
- return Null;
- }
-
- ConfigAttribute12.onDataChanged()
- {
- ToggleButton97.setActivated(System.StringToInteger(ConfigAttribute12.getData()));
- return Null;
- }
-
- ToggleButton98.onToggle(Boolean onoff)
- {
- ConfigAttribute13.setData(System.integerToString(onoff));
- return Null;
- }
-
- ConfigAttribute13.onDataChanged()
- {
- ToggleButton98.setActivated(System.StringToInteger(ConfigAttribute13.getData()));
- return Null;
- }
-
- ToggleButton92.onToggle(Boolean onoff)
- {
- ConfigAttribute3.setData(System.integerToString(onoff));
- return Null;
- }
-
- ConfigAttribute3.onDataChanged()
- {
- ToggleButton92.setActivated(System.StringToInteger(ConfigAttribute3.getData()));
- return Null;
- }
-
- ToggleButton93.onToggle(Boolean onoff)
- {
- ConfigAttribute7.setData(System.integerToString(onoff));
- return Null;
- }
-
- ConfigAttribute7.onDataChanged()
- {
- if(Boolean106) {
- ToggleButton93.setActivated(System.StringToInteger(ConfigAttribute7.getData()));
- }
- return Null;
- }
-
- ToggleButton94.onToggle(Boolean onoff)
- {
- ConfigAttribute8.setData(System.integerToString(onoff));
- return Null;
- }
-
- ConfigAttribute8.onDataChanged()
- {
- if(Boolean106) {
- ToggleButton94.setActivated(System.StringToInteger(ConfigAttribute8.getData()));
- }
- return Null;
- }
-
- ToggleButton95.onToggle(Boolean onoff)
- {
- ConfigAttribute9.setData(System.integerToString(onoff));
- return Null;
- }
-
- ConfigAttribute9.onDataChanged()
- {
- ToggleButton95.setActivated(System.StringToInteger(ConfigAttribute9.getData()));
- return Null;
- }
-
- ToggleButton99.onToggle(Boolean onoff)
- {
- ConfigAttribute5.setData(System.integerToString(onoff));
- return Null;
- }
-
- ConfigAttribute5.onDataChanged()
- {
- ToggleButton99.setActivated(System.StringToInteger(ConfigAttribute5.getData()));
- return Null;
- }
-
- ToggleButton100.onToggle(Boolean onoff)
- {
- ConfigAttribute6.setData(System.integerToString(onoff));
- return Null;
- }
-
- ConfigAttribute6.onDataChanged()
- {
- ToggleButton100.setActivated(System.StringToInteger(ConfigAttribute6.getData()));
- return Null;
- }
-
- ToggleButton103.onToggle(Boolean onoff)
- {
- ConfigAttribute16.setData(System.integerToString(onoff));
- return Null;
- }
-
- ConfigAttribute16.onDataChanged()
- {
- if(Boolean106) {
- ToggleButton103.setActivated(System.StringToInteger(ConfigAttribute16.getData()));
- }
- return Null;
- }
-
- ToggleButton101.onToggle(Boolean onoff)
- {
- ConfigAttribute15.setData(System.integerToString(onoff));
- return Null;
- }
-
- ConfigAttribute15.onDataChanged()
- {
- if(Boolean106) {
- ToggleButton101.setActivated(System.StringToInteger(ConfigAttribute15.getData()));
- }
- return Null;
- }
-
- ToggleButton102.onToggle(Boolean onoff)
- {
- ConfigAttribute14.setData(System.integerToString(onoff));
- return Null;
- }
-
- ConfigAttribute14.onDataChanged()
- {
- if(Boolean106) {
- ToggleButton102.setActivated(System.StringToInteger(ConfigAttribute14.getData()));
- }
- return Null;
- }
-
- ToggleButton104.onToggle(Boolean onoff)
- {
- ConfigAttribute17.setData(System.integerToString(onoff));
- return Null;
- }
-
- ConfigAttribute17.onDataChanged()
- {
- if(Boolean106) {
- ToggleButton104.setActivated(System.StringToInteger(ConfigAttribute17.getData()));
- }
- return Null;
- }
-
-
-