home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 January
/
01_03.iso
/
service
/
winamp3
/
files
/
winamp3_0-full.exe
/
Skins
/
Default.wal
/
scripts
/
main.maki
(
.txt
)
< prev
Wrap
Winamp Compiled Maki Script
|
2002-07-28
|
5KB
|
283 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Text Text3;
Global Slider Slider4;
Global Slider Slider5;
Global Slider Slider6;
Global Timer Timer7;
Global Int Int8;
Global Int Int9;
Global Int Int10;
Class GuiObject GuiObject11Class;
Class ToggleButton ToggleButton12Class;
Global GuiObject11Class GuiObject11Class13;
Global GuiObject11Class GuiObject11Class14;
Global GuiObject11Class GuiObject11Class15;
Global GuiObject11Class GuiObject11Class16;
Global GuiObject11Class GuiObject11Class17;
Global GuiObject11Class GuiObject11Class18;
Global GuiObject11Class GuiObject11Class19;
Global GuiObject11Class GuiObject11Class20;
Global GuiObject11Class GuiObject11Class21;
Global GuiObject11Class GuiObject11Class22;
Function func1828(String "0");
Function func1855();
System.onScriptUnloading()
{
delete Timer7;
return Null;
}
System.onScriptLoaded()
{
Group Group26;
Group26 = System.getScriptGroup();
Text3 = Group26.findObject(( "Songticker"));
if(( Text3 == Null)) {
System.messageBox(( "ooch\!\!"), ( "ooch"), 0, ( ""));
}
Slider4 = Group26.findObject(( "Volume"));
Slider5 = Group26.findObject(( "Seeker"));
Slider6 = Group26.findObject(( "SeekerGhost"));
GuiObject11Class13 = Group26.findObject(( "Play"));
GuiObject11Class17 = Group26.findObject(( "Pause"));
GuiObject11Class14 = Group26.findObject(( "Stop"));
GuiObject11Class16 = Group26.findObject(( "Next"));
GuiObject11Class15 = Group26.findObject(( "Previous"));
GuiObject11Class18 = Group26.findObject(( "Thinger"));
GuiObject11Class19 = Group26.findObject(( "Eject"));
GuiObject11Class20 = Group26.findObject(( "Eq"));
GuiObject11Class21 = Group26.findObject(( "Ml"));
GuiObject11Class22 = Group26.findObject(( "Pl"));
if(( Slider6 != Null)) {
Slider6.setAlpha(1);
}
Int10 = 0;
if(( GuiObject11Class18 != Null)) {
Timer7 = ( new Timer);
Timer7.setDelay(50);
}
return Null;
}
Text3.onLeftButtonDblClk(int x, int y)
{
0.unknown Function .showCurrentlyPlayingEntry();
return Null;
}
Slider4.onSetPosition(int newpos)
{
Float Float50;
Float50 = newpos;
Float50 = ( ( Float50 / 255) * 100);
func1828(( ( ( "Volume\:\ ") + System.integerToString(Float50)) + ( "\%")));
return Null;
}
Slider4.onSetFinalPosition(int pos)
{
Text3.setAlternateText(( ""));
return Null;
}
Slider5.onSetPosition(int newpos)
{
Int Int59;
Float Float57;
Float Float58;
if(( ( ! Slider6) && Int9)) {
Float57 = newpos;
Float57 = ( ( Float57 / 255) * 100);
Float58 = System.getPlayItemLength();
if(( Float58 != 0)) {
Int59 = ( ( Float58 * Float57) / 100);
func1828(( ( ( ( ( ( ( "Seek\ to\ ") + System.integerToTime(Int59)) + ( "\ \/\ ")) + System.integerToTime(Float58)) + ( "\ \(")) + System.integerToString(Float57)) + ( "\%\)")));
}
}
return Null;
}
Slider5.onLeftButtonDown(int x, int y)
{
Int9 = 1;
return Null;
}
Slider5.onLeftButtonUp(int x, int y)
{
Int9 = 0;
func1828(( ""));
return Null;
}
Slider6.onSetPosition(int newpos)
{
Float Float70;
Float Float69;
Int Int71;
if(( Slider6.getAlpha() == 1)) {
return Null;
}
Float69 = newpos;
Float69 = ( ( Float69 / 255) * 100);
Float70 = System.getPlayItemLength();
if(( Float70 != 0)) {
Int71 = ( ( Float70 * Float69) / 100);
func1828(( ( ( ( ( ( ( "Seek\ to\ ") + System.integerToTime(Int71)) + ( "\ \/\ ")) + System.integerToTime(Float70)) + ( "\ \(")) + System.integerToString(Float69)) + ( "\%\)")));
}
return Null;
}
Slider6.onLeftButtonDown(int x, int y)
{
Slider6.setAlpha(128);
return Null;
}
Slider6.onLeftButtonUp(int x, int y)
{
Slider6.setAlpha(1);
return Null;
}
Slider5.onSetFinalPosition(int pos)
{
Text3.setAlternateText(( ""));
return Null;
}
Slider6.onSetFinalPosition(int pos)
{
Text3.setAlternateText(( ""));
Slider6.setAlpha(1);
return Null;
}
GuiObject11Class.onLeftButtonDown(int x, int y)
{
if(( GuiObject11Class == GuiObject11Class13)) {
func1828(( "Play"));
} else {
if(( GuiObject11Class == GuiObject11Class14)) {
func1828(( "Stop"));
} else {
if(( GuiObject11Class == GuiObject11Class17)) {
func1828(( "Pause"));
} else {
if(( GuiObject11Class == GuiObject11Class16)) {
func1828(( "Next"));
} else {
if(( GuiObject11Class == GuiObject11Class15)) {
func1828(( "Previous"));
} else {
if(( GuiObject11Class == GuiObject11Class18)) {
func1828(( "Thinger"));
} else {
if(( GuiObject11Class == GuiObject11Class19)) {
func1828(( "Open"));
} else {
if(( GuiObject11Class == GuiObject11Class20)) {
func1828(( "Equalizer"));
} else {
if(( GuiObject11Class == GuiObject11Class21)) {
func1828(( "Media\ Library"));
} else {
if(( GuiObject11Class == GuiObject11Class22)) {
func1828(( "Playlist\ Editor"));
}
}
}
}
}
}
}
}
}
}
return Null;
}
GuiObject11Class.onLeftButtonUp(int x, int y)
{
func1855();
return Null;
}
GuiObject11Class18.onEnterArea()
{
if(Int10) {
return Null;
}
Int8 = 1;
Timer7.start();
return Null;
}
GuiObject11Class18.onLeaveArea()
{
if(Int10) {
return Null;
}
Timer7.stop();
GuiObject11Class18.setAlpha(255);
return Null;
}
GuiObject11Class18.onRightButtonUp(int x, int y)
{
System.windowMenu();
complete;
return Null;
}
Timer7.onTimer()
{
Int Int90;
Int90 = ( GuiObject11Class18.getAlpha() + ( Int8 * 24));
if(( Int90 >= 96)) {
Int90 = 96;
Int8 = ( - Int8);
}
if(( Int90 < 255)) {
Int90 = 255;
Int8 = ( - Int8);
}
GuiObject11Class18.setAlpha(Int90);
return Null;
}
func1828(String "0")
{
Text3.setAlternateText(String92);
return Null;
}
func1855()
{
Text3.setAlternateText(( ""));
return Null;
}
Int GuiObject11Class18.onNotify(String command, String param, int a, int b)
{
if(( command == ( "forcedwobbling"))) {
if(a) {
Int10 = 1;
Int8 = 1;
Timer7.start();
} else {
Int10 = 0;
Timer7.stop();
GuiObject11Class18.setAlpha(255);
}
}
return Null;
}