home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2004 July & August
/
Gamestar_64_2004-07-08_dvd.iso
/
Programy
/
winamp501_full.exe
/
$_14327_
/
pltime.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2003-11-16
|
7KB
|
193 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 Layer Layer103;
Global Layer Layer104;
Global Text Text105;
Global Group Group106;
Global Text Text107;
Global Timer Timer108;
Function func0();
Function func1935();
func0()
{
ConfigItem ConfigItem55;
ConfigItem ConfigItem38;
ConfigItem ConfigItem32;
ConfigAttribute ConfigAttribute61;
ConfigAttribute ConfigAttribute64;
ConfigAttribute ConfigAttribute62;
ConfigItem ConfigItem50;
ConfigItem ConfigItem44;
ConfigAttribute ConfigAttribute71;
ConfigItem ConfigItem47;
ConfigAttribute ConfigAttribute65;
ConfigItem ConfigItem53;
ConfigItem ConfigItem57;
ConfigAttribute ConfigAttribute60;
ConfigItem ConfigItem41;
ConfigAttribute ConfigAttribute66;
ConfigAttribute ConfigAttribute59;
ConfigItem ConfigItem35;
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()
{
func0();
Group106 = System.getScriptGroup();
Layer103 = Group106.findObject(( "player\.pl\.time\.left"));
Layer104 = Group106.findObject(( "player\.pl\.time\.display\.left"));
Text105 = Group106.findObject(( "PLTime"));
Timer108 = ( new Timer);
Timer108.setDelay(1);
Timer108.start();
return Null;
}
Timer108.onTimer()
{
Layout Layout116;
Container Container114;
Container114 = System.getContainer(( "pledit"));
if(Container114) {
Layout116 = Container114.getLayout(( "shade"));
if(Layout116) {
Text107 = Layout116.findObject(( "PESongticker"));
}
}
func1935();
return Null;
}
Group106.onResize(int x, int y, int w, int h)
{
if(( w < 394)) {
Layer103.show();
Layer104.show();
Text105.setXmlParam(( "x"), ( "\-215"));
Text105.setXmlParam(( "w"), ( "90"));
} else {
Layer103.hide();
Layer104.hide();
Text105.setXmlParam(( "x"), ( "\-180"));
Text105.setXmlParam(( "w"), ( "55"));
}
return Null;
}
ConfigAttribute28.onDataChanged()
{
func1935();
return Null;
}
func1935()
{
if(( ! Text107)) {
return Null;
}
if(( ConfigAttribute28.getData() == ( "1"))) {
Text107.setXmlParam(( "ticker"), ( "1"));
} else {
Text107.setXmlParam(( "ticker"), ( "0"));
}
return Null;
}