home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2004 July & August
/
Gamestar_64_2004-07-08_dvd.iso
/
Programy
/
winamp501_full.exe
/
$_14327_
/
mute.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2003-11-16
|
3KB
|
119 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Group Group2;
Global ToggleButton ToggleButton3;
Global ToggleButton ToggleButton4;
Global Timer Timer5;
Global Text Text6;
Global Float Float7;
Global Boolean Boolean8;
Global Boolean Boolean9;
Global Layer Layer10;
Global Timer Timer11;
System.onScriptLoaded()
{
Group2 = System.getScriptGroup();
ToggleButton3 = Group2.findObject(( "mute"));
Timer11 = ( new Timer);
Timer11.setDelay(5);
Timer11.start();
Text6 = Group2.findObject(( "songticker"));
Layer10 = Group2.findObject(( "volumebar"));
Layer10.setXmlParam(( "w"), System.integerToString(( ( ( System.getVolume() / 255) * 70) + 5)));
Timer5 = ( new Timer);
Timer5.setDelay(1000);
Boolean8 = 0;
Boolean9 = 0;
return Null;
}
System.onScriptUnloading()
{
delete Timer11;
return Null;
}
Timer11.onTimer()
{
ToggleButton4 = System.getContainer(( "main")).getLayout(( "shade")).findObject(( "shademute"));
if(( ToggleButton4 != Null)) {
Timer11.stop();
}
return Null;
}
Timer5.onTimer()
{
Text6.setText(( ""));
Timer5.stop();
return Null;
}
ToggleButton3.onLeftClick()
{
Boolean9 = 1;
if(( ! Boolean8)) {
Float7 = System.getVolume();
System.setVolume(0);
Boolean8 = 1;
Timer5.start();
Text6.setText(( "Mute\ ON"));
ToggleButton4.setActivated(1);
} else {
System.setVolume(Float7);
Boolean8 = 0;
Timer5.start();
Text6.setText(( "Mute\ OFF"));
ToggleButton4.setActivated(0);
}
return Null;
}
ToggleButton4.onLeftClick()
{
Boolean9 = 1;
if(( ! Boolean8)) {
Float7 = System.getVolume();
System.setVolume(0);
Boolean8 = 1;
Timer5.start();
Text6.setText(( "Mute\ ON"));
ToggleButton3.setActivated(1);
} else {
System.setVolume(Float7);
Boolean8 = 0;
Timer5.start();
Text6.setText(( "Mute\ OFF"));
ToggleButton3.setActivated(0);
}
return Null;
}
System.onScriptUnloading()
{
delete Timer5;
return Null;
}
System.onVolumeChanged(int newvol)
{
Layer10.setXmlParam(( "w"), System.integerToString(( ( ( newvol / 255) * 70) + 5)));
if(( ! Boolean9)) {
Timer5.start();
Text6.setText(( ( ( "Volume\:") + System.integerToString(( newvol / ( 2.54999995231628)))) + ( "\%")));
if(Boolean8) {
ToggleButton3.setActivated(0);
ToggleButton4.setActivated(0);
Boolean8 = 0;
}
}
Boolean9 = 0;
return Null;
}