home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 November
/
CDVD1105.ISO
/
Util
/
Winamp
/
Skins
/
Anime_Shogo.wal
/
scripts
/
backlightscrpt.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2004-08-16
|
3KB
|
96 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Layer Layer11;
Global Layer Layer12;
Global Group Group13;
Global Text Text14;
Global CheckBox CheckBox15;
Global Boolean Boolean16;
Function func860();
System.onScriptLoaded()
{
Group Group19;
Group Group21;
Group19 = System.getContainer(( "Main")).getLayout(( "normal"));
Group21 = System.getContainer(( "config")).getLayout(( "normal"));
Layer11 = Group19.findObject(( "BackLight"));
Layer12 = Group19.findObject(( "Light"));
Group13 = Group19.findObject(( "SoftLightGrp"));
Text14 = Group19.findObject(( "Songticker"));
CheckBox15 = Group21.findObject(( "config\.display\.on"));
CheckBox15.setChecked(System.getPrivateInt(System.getSkinName(), ( "BackLightMode"), 1));
Boolean16 = System.getPrivateInt(System.getSkinName(), ( "BackLightMode"), 1);
if(Boolean16) {
Layer12.setXmlParam(( "Alpha"), ( "150"));
Group13.setXmlParam(( "Alpha"), ( "200"));
} else {
Group13.hide();
}
return Null;
}
System.onScriptUnloading()
{
return Null;
}
CheckBox15.onToggle(int newstate)
{
System.setPrivateInt(System.getSkinName(), ( "BackLightMode"), newstate);
if(newstate) {
Boolean16 = 0;
} else {
Boolean16 = 1;
}
func860();
return Null;
}
Layer12.onTargetReached()
{
if(Boolean16) {
Group13.show();
Group13.setTargetA(200);
Group13.setTargetSpeed(( 0.5));
Group13.gotoTarget();
}
return Null;
}
Group13.onTargetReached()
{
if(( ! Boolean16)) {
Layer12.setTargetA(0);
Layer12.setTargetSpeed(( 0.5));
Layer12.gotoTarget();
Group13.hide();
}
return Null;
}
func860()
{
if(( ( ! Group13.isGoingToTarget()) || ( ! Layer12.isGoingToTarget()))) {
if(Boolean16) {
Boolean16 = 0;
Group13.setTargetA(0);
Group13.setTargetSpeed(( 0.5));
Group13.gotoTarget();
System.setPrivateInt(System.getSkinName(), ( "BackLightMode"), Boolean16);
} else {
Boolean16 = 1;
Layer12.setTargetA(150);
Layer12.setTargetSpeed(( 0.5));
Layer12.gotoTarget();
System.setPrivateInt(System.getSkinName(), ( "BackLightMode"), Boolean16);
}
}
return Null;
}