home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 November
/
CDVD1105.ISO
/
Util
/
Winamp
/
Skins
/
Anime_Shogo.wal
/
scripts
/
actionsscrpt.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2004-08-09
|
4KB
|
158 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Button Button11;
Global ToggleButton ToggleButton12;
Global ToggleButton ToggleButton13;
Global Text Text14;
Global Text Text15;
Global Timer Timer16;
Global Boolean Boolean17;
Global Int Int18;
Function func1006();
Function func1318(String "0");
System.onScriptLoaded()
{
Group Group19;
Group19 = System.getScriptGroup();
Button11 = Group19.findObject(( "MuteButton"));
ToggleButton12 = Group19.findObject(( "ShuffleButton"));
ToggleButton13 = Group19.findObject(( "RepeatButton"));
Text14 = Group19.findObject(( "Songticker"));
Text15 = Group19.findObject(( "Status"));
Timer16 = ( new Timer);
Timer16.setDelay(1000);
if(ToggleButton12.getActivated()) {
ToggleButton12.setXmlParam(( "hoverimage"), ( "shogo\.shuffle\.on\.hover"));
ToggleButton12.setXmlParam(( "tooltip"), ( "Shuffle\ Status\:\ On"));
}
Boolean17 = 0;
func1006();
return Null;
}
System.onScriptUnloading()
{
delete Timer16;
return Null;
}
ToggleButton13.onToggle(Boolean onoff)
{
Int Int32;
func1006();
Int32 = ToggleButton13.getXmlParam(( "cfgval"));
if(( Int32 == 0)) {
func1318(( "Repeat\ Off"));
} else {
if(( Int32 == 1)) {
func1318(( "Repeat\ All"));
} else {
if(( Int32 == 2)) {
func1318(( "Repeat\ One"));
} else {
if(( Int32 == ( - 1))) {
func1318(( "PLay\ One"));
}
}
}
}
return Null;
}
Button11.onLeftButtonUp(int x, int y)
{
if(( ( ! Boolean17) && ( System.getVolume() < 0))) {
Int18 = System.getVolume();
System.setVolume(0);
Boolean17 = 1;
Button11.setXmlParam(( "tooltip"), ( "Mute\ Status\:\ On"));
func1318(( "Mute\ On"));
} else {
Boolean17 = 0;
System.setVolume(Int18);
Button11.setXmlParam(( "tooltip"), ( "Mute\ Status\:\ Off"));
func1318(( "Mute\ Off"));
}
return Null;
}
ToggleButton12.onToggle(Boolean onoff)
{
if(onoff) {
ToggleButton12.setXmlParam(( "hoverimage"), ( "shogo\.shuffle\.on\.hover"));
ToggleButton12.setXmlParam(( "tooltip"), ( "Shuffle\ Status\:\ On"));
func1318(( "Shuffle\ On"));
} else {
ToggleButton12.setXmlParam(( "hoverimage"), ( "shogo\.shuffle\.hover"));
ToggleButton12.setXmlParam(( "tooltip"), ( "Shuffle\ Status\:\ Off"));
func1318(( "Shuffle\ Off"));
}
return Null;
}
func1006()
{
Int Int49;
Int49 = ToggleButton13.getXmlParam(( "cfgval"));
if(( Int49 == 0)) {
ToggleButton13.setXmlParam(( "hoverimage"), ( "shogo\.repeat\.hover"));
ToggleButton13.setXmlParam(( "tooltip"), ( "Repeat\ Status\:\ Off"));
} else {
if(( Int49 == 1)) {
ToggleButton13.setXmlParam(( "hoverimage"), ( "shogo\.repeat\.on\.hover"));
ToggleButton13.setXmlParam(( "tooltip"), ( "Repeat\ Status\:\ Repeat\ All"));
} else {
if(( Int49 == 2)) {
ToggleButton13.setXmlParam(( "hoverimage"), ( "shogo\.repeat\.on\.hover"));
ToggleButton13.setXmlParam(( "tooltip"), ( "Repeat\ Status\:\ Repeat\ One"));
} else {
if(( Int49 == ( - 1))) {
ToggleButton13.setXmlParam(( "hoverimage"), ( "shogo\.repeat\.on\.hover"));
ToggleButton13.setXmlParam(( "tooltip"), ( "Repeat\ Status\:\ Play\ One"));
}
}
}
}
return Null;
}
func1318(String "0")
{
Text14.setTargetA(0);
Text14.setTargetSpeed(( 0.5));
Text14.gotoTarget();
Text15.setTargetA(255);
Text15.setTargetSpeed(( 0.5));
Text15.gotoTarget();
Text15.setText(String56);
Timer16.start();
return Null;
}
Timer16.onTimer()
{
Text15.setTargetA(0);
Text15.setTargetSpeed(( 0.5));
Text15.gotoTarget();
Text14.setTargetA(255);
Text14.setTargetSpeed(( 0.5));
Text14.gotoTarget();
Timer16.stop();
return Null;
}
System.onVolumeChanged(int newvol)
{
if(( Boolean17 && ( newvol < 0))) {
Boolean17 = 0;
Button11.setXmlParam(( "tooltip"), ( "Mute\ Status\:\ Off"));
}
return Null;
}