home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2004 February
/
PCWorld_2004-02_cd.bin
/
software
/
topware
/
winamp5
/
winamp50beta2.exe
/
$_14327_
/
beatvisualization.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2003-10-24
|
7KB
|
251 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 Layer Layer70;
Global Layer Layer71;
Global Layer Layer72;
Global Layer Layer73;
Global Layer Layer74;
Global Timer Timer75;
Global AnimatedLayer AnimatedLayer76;
Global AnimatedLayer AnimatedLayer77;
Global Int Int78;
Global Int Int79;
Global Button Button80;
Global Button Button81;
Global Int Int82;
Function func0();
Function func1264();
func0()
{
ConfigItem ConfigItem36;
ConfigItem ConfigItem22;
ConfigAttribute ConfigAttribute42;
ConfigItem ConfigItem31;
ConfigItem ConfigItem25;
ConfigAttribute ConfigAttribute43;
ConfigAttribute ConfigAttribute50;
ConfigItem ConfigItem34;
ConfigAttribute ConfigAttribute41;
ConfigItem ConfigItem28;
ConfigAttribute ConfigAttribute45;
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();
Group69 = Group68.findObject(( "player\.normal\.display\.beatvisualization"));
Layer70 = Group68.findObject(( "beatdisplayoverlay"));
AnimatedLayer76 = Group68.findObject(( "beatleft"));
AnimatedLayer77 = Group68.findObject(( "beatright"));
Button80 = Group68.findObject(( "beatvisualization"));
Button81 = Group68.findObject(( "beatvisualization2"));
Layer71 = Group68.findObject(( "display\.right"));
Layer72 = Group68.findObject(( "display\.right\.overlay2"));
Layer73 = Group68.findObject(( "display\.st\.right"));
Layer74 = Group68.findObject(( "visualization\.overlay"));
Int78 = 0;
Int79 = 0;
Timer75 = ( new Timer);
Timer75.setDelay(10);
return Null;
}
System.onScriptUnloading()
{
delete Timer75;
return Null;
}
func1264()
{
Int Int106;
Int Int95;
Int95 = Group68.getWidth();
if(( ( Int95 % 2) != 0)) {
Layer71.setXmlParam(( "image"), ( "player\.display\.right"));
Layer72.setXmlParam(( "image"), ( "player\.display\.right"));
Layer73.setXmlParam(( "image"), ( "player\.display\.songticker\.bg\.right"));
Layer74.setXmlParam(( "image"), ( "player\.visualization\.overlay"));
} else {
Layer71.setXmlParam(( "image"), ( "player\.display\.right2"));
Layer72.setXmlParam(( "image"), ( "player\.display\.right2"));
Layer73.setXmlParam(( "image"), ( "player\.display\.songticker\.bg\.right2"));
Layer74.setXmlParam(( "image"), ( "player\.visualization\.overlay2"));
}
if(( Int95 < 480)) {
Int106 = ( ( Int95 - 60) / 2);
Group69.setXmlParam(( "x"), System.integerToString(Int106));
Group69.show();
if(( ConfigAttribute17.getData() == ( "1"))) {
Timer75.stop();
Timer75.start();
} else {
Timer75.stop();
AnimatedLayer76.gotoFrame(0);
AnimatedLayer77.gotoFrame(0);
}
} else {
Group69.hide();
Timer75.stop();
}
return Null;
}
Group68.onResize(int x, int y, int w, int h)
{
func1264();
return Null;
}
Timer75.onTimer()
{
Int Int112;
Int Int113;
Int Int116;
Int Int115;
Int112 = System.getLeftVuMeter();
Int113 = System.getRightVuMeter();
Int115 = ( Int112 / 16);
Int116 = ( Int113 / 16);
if(( Int115 < 14)) {
Int115 = 14;
}
if(( Int116 < 14)) {
Int116 = 14;
}
if(( Int115 > Int78)) {
Int115 = ( Int78 - 1);
if(( Int115 > 0)) {
Int115 = 0;
}
}
if(( Int116 > Int79)) {
Int116 = ( Int79 - 1);
if(( Int116 > 0)) {
Int116 = 0;
}
}
Int78 = Int115;
Int79 = Int116;
AnimatedLayer76.gotoFrame(Int115);
AnimatedLayer77.gotoFrame(Int116);
return Null;
}
ConfigAttribute17.onDataChanged()
{
func1264();
return Null;
}
System.onKeyDown(String key)
{
if(( key == ( "shift\+ctrl\+alt"))) {
Int82 = 1;
complete;
} else {
Int82 = 0;
}
return Null;
}
Button80.onLeftClick()
{
if(( ConfigAttribute17.getData() == ( "1"))) {
ConfigAttribute17.setData(( "0"));
} else {
ConfigAttribute17.setData(( "1"));
}
return Null;
}
Button81.onActivate(int activated)
{
if(( ! Int82)) {
Button80.leftClick();
return Null;
}
Timer75.stop();
if(activated) {
AnimatedLayer76.setXmlParam(( "image"), ( "player\.display\.beat\.left2"));
AnimatedLayer77.setXmlParam(( "image"), ( "player\.display\.beat\.right2"));
Layer70.hide();
} else {
AnimatedLayer76.setXmlParam(( "image"), ( "player\.display\.beat\.left"));
AnimatedLayer77.setXmlParam(( "image"), ( "player\.display\.beat\.right"));
Layer70.show();
}
func1264();
return Null;
}