home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2004 February
/
PCWorld_2004-02_cd.bin
/
software
/
topware
/
winamp5
/
winamp50beta2.exe
/
$_14327_
/
plmenu.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2003-10-22
|
5KB
|
157 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 Layout Layout68;
Global Layout Layout69;
Function func0();
func0()
{
ConfigItem ConfigItem38;
ConfigItem ConfigItem36;
ConfigItem ConfigItem25;
ConfigAttribute ConfigAttribute43;
ConfigAttribute ConfigAttribute45;
ConfigItem ConfigItem31;
ConfigItem ConfigItem22;
ConfigAttribute ConfigAttribute41;
ConfigItem ConfigItem34;
ConfigAttribute ConfigAttribute42;
ConfigItem ConfigItem28;
ConfigAttribute ConfigAttribute40;
ConfigAttribute ConfigAttribute50;
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();
ConfigAttribute12.onDataChanged();
Layout68 = System.getScriptGroup().getParentLayout();
return Null;
}
ConfigAttribute12.onDataChanged()
{
Group Group71;
Group Group73;
Layout Layout74;
Group71 = System.getScriptGroup().findObject(( "player\.content\.pl\.dummy\.group"));
Group73 = System.getScriptGroup().findObject(( "wasabi\.menubar\.pl"));
Layout74 = System.getScriptGroup().getParentLayout();
Layout74.beforeRedock();
if(( ConfigAttribute12.getData() == ( "1"))) {
Group71.setXmlParam(( "y"), ( "16"));
Group73.show();
Layout74.snapAdjust(0, 0, 0, 0);
} else {
Group71.setXmlParam(( "y"), ( "0"));
Group73.hide();
Layout74.snapAdjust(0, 0, 0, 16);
}
Layout74.redock();
return Null;
}
System.onKeyDown(String key)
{
Layout Layout86;
if(( Layout69 == Null)) {
Layout69 = Layout68.getContainer().getLayout(( "shade"));
}
if(( ( ( System.Strleft(key, 4) == ( "ctrl")) && ( System.strsearch(key, ( "\+w")) != ( - 1))) && ( Layout68.isActive() || Layout69.isActive()))) {
if(Layout68.isVisible()) {
Layout68.getContainer().switchToLayout(( "shade"));
} else {
Layout68.getContainer().switchToLayout(( "normal"));
}
complete;
}
if(( ConfigAttribute12.getData() == ( "0"))) {
return Null;
}
Layout86 = System.getScriptGroup().getParentLayout();
if(( ! Layout86.isActive())) {
return Null;
}
if(( key == ( "alt\+f"))) {
System.getScriptGroup().findObject(( "File\.menu")).sendAction(( "open"), ( ""), 0, 0, 0, 0);
complete;
}
if(( key == ( "alt\+p"))) {
System.getScriptGroup().findObject(( "Playlist\.menu")).sendAction(( "open"), ( ""), 0, 0, 0, 0);
complete;
}
if(( key == ( "alt\+s"))) {
System.getScriptGroup().findObject(( "Sort\.menu")).sendAction(( "open"), ( ""), 0, 0, 0, 0);
complete;
}
if(( key == ( "alt\+h"))) {
System.getScriptGroup().findObject(( "Help\.menu")).sendAction(( "open"), ( ""), 0, 0, 0, 0);
complete;
}
return Null;
}