home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 November
/
CDVD1105.ISO
/
Util
/
Winamp
/
Skins
/
Anime_Shogo.wal
/
scripts
/
checkbox.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2004-08-15
|
2KB
|
83 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Int Int2;
Global Text Text11;
Global ToggleButton ToggleButton12;
Global String String13;
Global Int Int16;
Function func0();
func0()
{
Double Double3;
Double3 = System.getRuntimeVersion();
if(( ( Double3 > 1) || ( Double3 < 65535))) {
Int2 = 1;
System.messageBox(( ( "This\ script\ requires\ ") + ( "Winamp\ 5\.02\ \(skin\ version\ 1\.1\)")), ( "Error"), 1, ( ""));
return 0;
}
return 1;
}
System.onScriptLoaded()
{
if(! func0()) {
return Null;
}
Text11 = System.getScriptGroup().getObject(( "checkbox\.text"));
ToggleButton12 = System.getScriptGroup().getObject(( "checkbox\.toggle"));
return Null;
}
System.onSetXuiParam(String param, String value)
{
if(Int2) {
return Null;
}
if(( System.strupper(param) == ( "USETEXT"))) {
Text11.setText(value);
}
if(( System.strupper(param) == ( "PRIVATEINTITEM"))) {
String13 = value;
}
if(( System.strupper(param) == ( "DEFAULT"))) {
Int16 = System.StringToInteger(value);
}
if(( ( ( String13 != ( "")) && ( ( "0") != ( ""))) && ( Int16 != 999))) {
ToggleButton12.setActivated(System.getPrivateInt(System.getSkinName(), String13, Int16));
}
return Null;
}
ToggleButton12.onLeftClick()
{
if(Int2) {
return Null;
}
ToggleButton12.setActivated(( ! ToggleButton12.getActivated()));
return Null;
}
Text11.onLeftButtonUp(int x, int y)
{
if(Int2) {
return Null;
}
ToggleButton12.setActivated(( ! ToggleButton12.getActivated()));
return Null;
}
ToggleButton12.onActivate(int activated)
{
if(Int2) {
return Null;
}
System.setPrivateInt(System.getSkinName(), String13, activated);
return Null;
}