home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 January
/
01_03.iso
/
service
/
winamp3
/
files
/
winamp3_0-full.exe
/
Wacs
/
xml
/
winamp
/
scripts
/
textslidercb.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2002-06-25
|
2KB
|
73 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Slider Slider2;
Global Text Text3;
Global String String4;
Global String String5;
Global String String6;
Global Group Group7;
Global GuiObject GuiObject8;
System.onScriptLoaded()
{
String String9;
String String12;
String String14;
String String20;
Group7 = System.getScriptGroup();
if(( Group7 == Null)) {
return Null;
}
String9 = System.getParam();
String12 = System.getToken(String9, ( "\;"), 0);
String14 = System.getToken(String9, ( "\;"), 1);
Text3 = Group7.findObject(String12);
if(( Text3 == Null)) {
System.messageBox(( ( ( "textslidercm\.maki\ \:\ text\ not\ found\ \(param\ 0\ \=\ ") + String12) + ( "\)")), ( "Error"), 0, ( ""));
return Null;
}
if(( String14 != ( ""))) {
GuiObject8 = Group7.findObject(String14);
if(( GuiObject8 == Null)) {
System.messageBox(( ( ( "textslidercm\.maki\ \:\ text\ not\ found\ \(param\ 0\ \=\ ") + String14) + ( "\)")), ( "Error"), 0, ( ""));
return Null;
}
}
String20 = System.getToken(String9, ( "\;"), 2);
String4 = System.getToken(String9, ( "\;"), 3);
String5 = System.getToken(String9, ( "\;"), 4);
String6 = System.getToken(String9, ( "\;"), 5);
if(( String6 == ( ""))) {
String6 = String5;
}
if(( GuiObject8 != Null)) {
Slider2 = GuiObject8.findObject(String20);
} else {
Slider2 = Group7.findObject(String20);
}
if(( Slider2 == Null)) {
System.messageBox(( ( ( "titleboxslidercm\.make\ \:\ slidercb\ not\ found\ \(param\ 1\ \=\ ") + String20) + ( "\)")), ( "Error"), 0, ( ""));
return Null;
}
Slider2.onSetPosition(Slider2.getPosition());
return Null;
}
Slider2.onSetPosition(int newpos)
{
String String26;
String26 = ( String4 + System.integerToString(newpos));
if(( newpos < 1)) {
String26 = ( String26 + String6);
} else {
String26 = ( String26 + String5);
}
Text3.setText(String26);
return Null;
}