home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 December
/
Chip_2003-12_cd1.bin
/
zkuste
/
winamp5
/
download
/
winamp50beta_full.exe
/
$_14327_
/
shadecontrol.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2003-10-19
|
7KB
|
213 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 Button Button79;
Global Layout Layout80;
Global Layout Layout81;
Function func0();
Function func1285(Int 0);
func0()
{
ConfigAttribute ConfigAttribute45;
ConfigItem ConfigItem34;
ConfigAttribute ConfigAttribute42;
ConfigItem ConfigItem31;
ConfigAttribute ConfigAttribute50;
ConfigItem ConfigItem28;
ConfigItem ConfigItem22;
ConfigItem ConfigItem25;
ConfigAttribute ConfigAttribute43;
ConfigItem ConfigItem36;
ConfigAttribute ConfigAttribute41;
ConfigItem ConfigItem38;
ConfigAttribute ConfigAttribute40;
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()
{
func0();
Group68 = System.getScriptGroup();
Layout80 = Group68.getParentLayout();
Layout81 = Group68.getParentLayout().getContainer().getLayout(( "normal"));
Group69 = Group68.findObject(( "shadeX1"));
Group70 = Group68.findObject(( "shadeX2"));
Group71 = Group68.findObject(( "shadeX3"));
Group72 = Group68.findObject(( "shadeX4"));
Button79 = Group68.findObject(( "shadeeq"));
Group73 = Group68.findObject(( "shadedisplay"));
Group74 = Group68.findObject(( "shadetimer"));
Group75 = Group68.findObject(( "shadeticker"));
Group76 = Group68.findObject(( "shadevis"));
return Null;
}
Group68.onResize(int x, int y, int w, int h)
{
func1285(w);
return Null;
}
Button79.onLeftClick()
{
ConfigAttribute10.setData(( "1"));
return Null;
}
func1285(Int 0)
{
Int Int105;
Int Int110;
Int Int118;
Int Int113;
Int Int99;
Group69.hide();
Group70.hide();
Group71.hide();
Group72.hide();
Group73.hide();
Group74.hide();
Group75.hide();
Group76.hide();
if(( Int96 < 400)) {
Int99 = ( Int96 - 356);
if(( Int99 < 130)) {
Int99 = 130;
}
Group74.show();
if(( Int96 < 420)) {
Group75.show();
Group75.setXmlParam(( "w"), System.integerToString(Int99));
}
if(( Int96 < 525)) {
Int105 = ( "430");
Group69.setXmlParam(( "x"), System.integerToString(Int105));
Group69.setXmlParam(( "relatx"), ( "0"));
Group69.show();
if(( Int96 < 549)) {
Int110 = ( "472");
Group70.setXmlParam(( "x"), System.integerToString(Int110));
Group70.setXmlParam(( "relatx"), ( "0"));
Group70.show();
if(( Int96 < 592)) {
Int113 = ( "495");
Group71.setXmlParam(( "x"), System.integerToString(Int113));
Group71.setXmlParam(( "relatx"), ( "0"));
Group71.show();
if(( Int96 < 668)) {
Int105 = ( - 237);
Int110 = ( - 195);
Int113 = ( - 174);
Int118 = ( - 130);
Group69.setXmlParam(( "x"), System.integerToString(Int105));
Group69.setXmlParam(( "relatx"), ( "1"));
Group70.setXmlParam(( "x"), System.integerToString(Int110));
Group70.setXmlParam(( "relatx"), ( "1"));
Group71.setXmlParam(( "x"), System.integerToString(Int113));
Group71.setXmlParam(( "relatx"), ( "1"));
Group72.setXmlParam(( "x"), System.integerToString(Int118));
Group72.setXmlParam(( "relatx"), ( "1"));
Group72.show();
Int99 = ( Int96 - 538);
Group75.setXmlParam(( "w"), System.integerToString(Int99));
if(( Int96 < 728)) {
Group76.setXmlParam(( "x"), System.integerToString(( - 301)));
Group76.setXmlParam(( "relatx"), ( "1"));
Group76.show();
Group75.setXmlParam(( "w"), System.integerToString(( Int99 - 55)));
}
}
}
}
}
Group73.setXmlParam(( "w"), System.integerToString(Int99));
Group73.show();
}
return Null;
}
System.onKeyDown(String key)
{
if(( ( ( System.Strleft(key, 4) == ( "ctrl")) && ( System.strsearch(key, ( "\+w")) != ( - 1))) && ( Layout80.isActive() || Layout81.isActive()))) {
if(Layout80.isVisible()) {
Layout80.getContainer().switchToLayout(( "normal"));
} else {
Layout80.getContainer().switchToLayout(( "shade"));
}
complete;
}
return Null;
}