home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 February
/
Chip_2004-02_cd1.bin
/
software
/
winamp
/
winamp.exe
/
$_14327_
/
configtabs.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2003-11-16
|
11KB
|
449 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 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 Group Group103;
Global Group Group104;
Global Group Group105;
Global Group Group106;
Global Group Group107;
Global Group Group108;
Global Group Group109;
Global Group Group110;
Global Group Group111;
Global Group Group112;
Global Group Group113;
Global Group Group114;
Global Group Group115;
Global Layer Layer116;
Global Layer Layer117;
Global Layer Layer118;
Global Button Button119;
Global Button Button120;
Global Group Group121;
Global Group Group122;
Global Group Group123;
Global GuiObject GuiObject124;
Global Layout Layout125;
Global Int Int126;
Global Boolean Boolean128;
Global Timer Timer129;
Function func0();
Function func2412(Int 0);
Function func2580(Int 0);
Function func2819(Int 0);
Function func3110(Int 0);
Function func3667(Int 0);
Function func4272();
func0()
{
ConfigItem ConfigItem44;
ConfigItem ConfigItem53;
ConfigAttribute ConfigAttribute61;
ConfigAttribute ConfigAttribute65;
ConfigItem ConfigItem41;
ConfigAttribute ConfigAttribute60;
ConfigItem ConfigItem32;
ConfigItem ConfigItem38;
ConfigAttribute ConfigAttribute64;
ConfigAttribute ConfigAttribute66;
ConfigAttribute ConfigAttribute71;
ConfigItem ConfigItem57;
ConfigAttribute ConfigAttribute59;
ConfigItem ConfigItem47;
ConfigAttribute ConfigAttribute62;
ConfigItem ConfigItem35;
ConfigItem ConfigItem50;
ConfigItem ConfigItem55;
ConfigItem32 = Config.newItem(( "Winamp\ Modern"), ( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
ConfigItem35 = Config.newItem(( "Drawers"), ( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
ConfigItem38 = Config.newItem(( "Menus"), ( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
ConfigItem41 = Config.newItem(( "Main\ Windowshade\ Mode"), ( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
ConfigItem44 = Config.newItem(( "Vis\ Buttons"), ( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
ConfigItem47 = Config.newItem(( "Notifications"), ( "\{1AB968B3\-8687\-4a35\-BA70\-FCF6D92FB57F\}"));
ConfigItem50 = Config.newItem(( "Songticker"), ( "\{7061FDE0\-0E12\-11D8\-BB41\-0050DA442EF3\}"));
ConfigItem53 = Config.newItem(( "Hidden"), ( "\{E9C2D926\-53CA\-400f\-9A4D\-85E31755A4CF\}"));
ConfigItem55 = Config.getItem(( "\{1828D28F\-78DD\-4647\-8532\-EBA504B8FC04\}"));
ConfigItem57 = Config.getItem(( "\{6559CA61\-7EB2\-4415\-A8A9\-A2AEEF762B7F\}"));
ConfigAttribute59 = ConfigItem55.newAttribute(( "Winamp\ Modern"), ( ""));
ConfigAttribute59.setData(( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
ConfigAttribute60 = ConfigItem32.newAttribute(( "Drawers"), ( ""));
ConfigAttribute60.setData(( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
ConfigAttribute61 = ConfigItem32.newAttribute(( "Menus"), ( ""));
ConfigAttribute61.setData(( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
ConfigAttribute62 = ConfigItem32.newAttribute(( "Main\ Windowshade\ Mode"), ( ""));
ConfigAttribute62.setData(( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
ConfigAttribute64 = ConfigItem32.newAttribute(( "Vis\ Shortcut\ Button"), ( ""));
ConfigAttribute64.setData(( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
ConfigAttribute65 = ConfigItem32.newAttribute(( "Notifications"), ( ""));
ConfigAttribute65.setData(( "\{1AB968B3\-8687\-4a35\-BA70\-FCF6D92FB57F\}"));
ConfigAttribute66 = ConfigItem32.newAttribute(( "Songticker"), ( ""));
ConfigAttribute66.setData(( "\{7061FDE0\-0E12\-11D8\-BB41\-0050DA442EF3\}"));
ConfigAttribute3 = ConfigItem35.newAttribute(( "Animate\ Video\/Vis\ Drawer\ \(disabled\ if\ opacity\ \<\ 100\%\)"), ( "0"));
ConfigAttribute4 = ConfigItem35.newAttribute(( "Animate\ Config\ Drawer"), ( "0"));
ConfigAttribute71 = ConfigItem35.newAttribute(( "sep1"), ( ""));
ConfigAttribute71.setData(( "\-"));
ConfigAttribute7 = ConfigItem35.newAttribute(( "Open\ Video\/Vis\ from\ the\ top"), ( "0"));
ConfigAttribute8 = ConfigItem35.newAttribute(( "Open\ Video\/Vis\ from\ the\ bottom"), ( "1"));
ConfigAttribute9 = ConfigItem35.newAttribute(( "Bypass\ setting\ to\ keep\ in\ screen"), ( "1"));
if(( ConfigAttribute7.getData() == ( "1"))) {
ConfigAttribute7.onDataChanged();
} else {
ConfigAttribute8.onDataChanged();
}
ConfigAttribute11 = ConfigItem38.newAttribute(( "Show\ Menus\ in\ Main\ Window"), ( "1"));
ConfigAttribute12 = ConfigItem38.newAttribute(( "Show\ Menus\ in\ Playlist\ Editor"), ( "1"));
ConfigAttribute13 = ConfigItem38.newAttribute(( "Show\ Menus\ in\ Media\ Library"), ( "1"));
ConfigAttribute71 = ConfigItem32.newAttribute(( "sep1"), ( ""));
ConfigAttribute71.setData(( "\-"));
ConfigAttribute5 = ConfigItem32.newAttribute(( "Detach\ Vis\ Window"), ( "0"));
ConfigAttribute6 = ConfigItem32.newAttribute(( "Detach\ Video\ Window"), ( "0"));
ConfigAttribute10 = ConfigItem57.newAttribute(( "Equalizer\ Alt\+G"), ( "0"));
ConfigAttribute71 = ConfigItem32.newAttribute(( "sep2"), ( ""));
ConfigAttribute71.setData(( "\-"));
ConfigAttribute17 = ConfigItem32.newAttribute(( "Enable\ Beat\ Visualization"), ( "1"));
ConfigAttribute14 = ConfigItem41.newAttribute(( "Link\ Position\ and\ Width"), ( "1"));
ConfigAttribute15 = ConfigItem41.newAttribute(( "Link\ Position\,\ Unlink\ Width"), ( "0"));
ConfigAttribute16 = ConfigItem41.newAttribute(( "Unlink\ Position\ and\ Width"), ( "0"));
ConfigAttribute19 = ConfigItem44.newAttribute(( "Open\ Context\ Menu"), ( "1"));
ConfigAttribute18 = ConfigItem44.newAttribute(( "Open\ Configuration"), ( "0"));
ConfigAttribute22 = ConfigItem47.newAttribute(( "Show\ always"), ( "0"));
ConfigAttribute21 = ConfigItem47.newAttribute(( "Show\ with\ windowshade\ and\ when\ minimized"), ( "0"));
ConfigAttribute20 = ConfigItem47.newAttribute(( "Show\ only\ when\ minimized"), ( "0"));
ConfigAttribute23 = ConfigItem47.newAttribute(( "Never\ show"), ( "1"));
ConfigAttribute71 = ConfigItem47.newAttribute(( "sep1"), ( ""));
ConfigAttribute71.setData(( "\-"));
ConfigAttribute27 = ConfigItem47.newAttribute(( "Disable\ in\ fullscreen"), ( "1"));
ConfigAttribute24 = ConfigItem53.newAttribute(( "Notifications\ fade\ in\ time"), ( "1000"));
ConfigAttribute25 = ConfigItem53.newAttribute(( "Notifications\ fade\ out\ time"), ( "5000"));
ConfigAttribute26 = ConfigItem53.newAttribute(( "Notifications\ display\ time"), ( "2000"));
ConfigAttribute28 = ConfigItem50.newAttribute(( "Enable\ Songticker\ scrolling"), ( "1"));
ConfigAttribute29 = ConfigItem50.newAttribute(( "Disable\ Songticker\ scrolling"), ( "0"));
return Null;
}
System.onScriptLoaded()
{
Int Int151;
Int Int154;
Int Int152;
Int Int156;
func0();
Group103 = System.getScriptGroup();
Layout125 = Group103.getParentLayout();
Group106 = Group103.findObject(( "config\.tabs"));
Group107 = Group103.findObject(( "config\.tab\.eq\.on"));
Group108 = Group103.findObject(( "config\.tab\.eq\.off"));
Group109 = Group103.findObject(( "config\.tab\.options\.on"));
Group110 = Group103.findObject(( "config\.tab\.options\.off"));
Group111 = Group103.findObject(( "config\.tab\.colorthemes\.on"));
Group112 = Group103.findObject(( "config\.tab\.colorthemes\.off"));
GuiObject124 = Group103.findObject(( "colorthemes"));
Group104 = Group103.findObject(( "player\.main"));
Group105 = Group103.findObject(( "AVSGroup"));
Group113 = Group103.findObject(( "player\.normal\.drawer\.eq"));
Group114 = Group103.findObject(( "player\.normal\.drawer\.options"));
Group115 = Group103.findObject(( "player\.normal\.drawer\.colorthemes"));
Layer116 = Group103.findObject(( "mousetrapTabEQ"));
Layer117 = Group103.findObject(( "mousetrapTabOPTIONS"));
Layer118 = Group103.findObject(( "mousetrapTabCOLORTHEMES"));
Button119 = Group103.findObject(( "drawer\.button\.close"));
Button120 = Group103.findObject(( "drawer\.button\.open"));
Group121 = Group103.findObject(( "player\.normal\.drawer"));
Group122 = Group103.findObject(( "player\.normal\.drawer\.shadow"));
Group123 = Group103.findObject(( "player\.normal\.drawer\.content"));
Int151 = Group107.getWidth();
Int152 = Group109.getWidth();
Int154 = ( Int151 - 3);
Int156 = ( ( Int151 + Int152) - 6);
Group109.setXmlParam(( "x"), System.integerToString(Int154));
Group110.setXmlParam(( "x"), System.integerToString(Int154));
Group112.setXmlParam(( "x"), System.integerToString(Int156));
Group111.setXmlParam(( "x"), System.integerToString(Int156));
Int126 = 1;
func2412(System.getPrivateInt(( "winamp5"), ( "ConfigTab"), 1));
Int126 = 0;
if(System.getPrivateInt(( "winamp5"), ( "DrawerOpen"), 0)) {
func2819(0);
func3667(1);
} else {
func3667(0);
}
Boolean128 = 1;
Timer129 = ( new Timer);
Timer129.setDelay(250);
return Null;
}
System.onScriptUnloading()
{
delete Timer129;
return Null;
}
func2412(Int 0)
{
Group107.hide();
Group109.hide();
Group111.hide();
if(( Int163 == 1)) {
Group107.show();
}
if(( Int163 == 2)) {
Group109.show();
}
if(( Int163 == 3)) {
Group111.show();
}
func2580(Int163);
System.setPrivateInt(( "winamp5"), ( "ConfigTab"), Int163);
func4272();
return Null;
}
func2580(Int 0)
{
if(( Int165 == 1)) {
Group113.show();
Group114.hide();
Group115.hide();
}
if(( Int165 == 2)) {
Group113.hide();
Group114.show();
Group115.hide();
}
if(( Int165 == 3)) {
Group113.hide();
Group114.hide();
Group115.show();
}
return Null;
}
Layer116.onLeftButtonDown(int x, int y)
{
func2412(1);
return Null;
}
Layer117.onLeftButtonDown(int x, int y)
{
func2412(2);
return Null;
}
Layer118.onLeftButtonDown(int x, int y)
{
func2412(3);
return Null;
}
func2819(Int 0)
{
Button120.hide();
Button119.show();
Layout125.beforeRedock();
if(( Int172 && ( ConfigAttribute4.getData() == ( "1")))) {
System.lockUI();
Group121.setTargetX(Group121.getGuiX());
Group121.setTargetY(( - 147));
Group121.setTargetW(Group121.getGuiW());
Group121.setTargetH(Group121.getGuiH());
Group121.setTargetSpeed(1);
Group121.gotoTarget();
} else {
Group121.setXmlParam(( "y"), ( "\-147"));
System.setPrivateInt(( "winamp5"), ( "DrawerOpen"), 1);
GuiObject124.show();
func3667(1);
func4272();
Layout125.redock();
}
Group122.show();
return Null;
}
func3110(Int 0)
{
Layout125.beforeRedock();
GuiObject124.hide();
Button119.hide();
Button120.show();
if(( Int176 && ( ConfigAttribute4.getData() == ( "1")))) {
System.lockUI();
Group121.setTargetX(Group121.getGuiX());
Group121.setTargetY(( - 263));
Group121.setTargetW(Group121.getGuiW());
Group121.setTargetH(Group121.getGuiH());
Group121.setTargetSpeed(1);
Group121.gotoTarget();
} else {
Group121.setXmlParam(( "y"), ( "\-263"));
Group122.hide();
System.setPrivateInt(( "winamp5"), ( "DrawerOpen"), 0);
func3667(0);
func4272();
Layout125.redock();
}
return Null;
}
Button119.onLeftClick()
{
func3110(1);
return Null;
}
Button120.onLeftClick()
{
func2819(1);
return Null;
}
Group121.onTargetReached()
{
if(Button119.isVisible()) {
System.setPrivateInt(( "winamp5"), ( "DrawerOpen"), 1);
GuiObject124.show();
func3667(1);
} else {
Group122.hide();
System.setPrivateInt(( "winamp5"), ( "DrawerOpen"), 0);
func3667(0);
}
func4272();
Layout125.redock();
System.unlockUI();
return Null;
}
func3667(Int 0)
{
Int Int180;
Int180 = 0;
if(( ConfigAttribute11.getData() == ( "0"))) {
Int180 = 17;
}
if(Int179) {
Layout125.snapAdjust(0, 0, 0, ( 0 + Int180));
} else {
Layout125.snapAdjust(0, 0, 0, ( 116 + Int180));
}
return Null;
}
ConfigAttribute11.onDataChanged()
{
Int Int183;
Int Int184;
Int183 = 0;
if(( ConfigAttribute11.getData() == ( "0"))) {
Int183 = 17;
}
Layout125.beforeRedock();
Int184 = System.getPrivateInt(( "winamp5"), ( "DrawerOpen"), 0);
if(Int184) {
Layout125.snapAdjust(0, 0, 0, ( 0 + Int183));
} else {
Layout125.snapAdjust(0, 0, 0, ( 116 + Int183));
}
Layout125.redock();
return Null;
}
Layout125.onResize(int x, int y, int w, int h)
{
Int Int190;
Int190 = ( ( w / 2) - 163);
Group123.setXmlParam(( "x"), System.integerToString(Int190));
return Null;
}
ConfigAttribute10.onDataChanged()
{
if(Int126) {
return Null;
}
Int126 = 1;
if(( ConfigAttribute10.getData() == ( "1"))) {
Layout125.getContainer().switchToLayout(( "normal"));
Timer129.start();
}
if(( ConfigAttribute10.getData() == ( "0"))) {
func3110(1);
}
Int126 = 0;
return Null;
}
Timer129.onTimer()
{
Timer129.stop();
func2412(1);
if(Button120.isVisible()) {
func2819(1);
}
return Null;
}
func4272()
{
Int Int163;
if(Int126) {
return Null;
}
Int126 = 1;
if(( ( Int163 == 1) && ( ! Button120.isVisible()))) {
ConfigAttribute10.setData(( "1"));
} else {
ConfigAttribute10.setData(( "0"));
}
Int126 = 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;
}