home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 January
/
01_03.iso
/
service
/
winamp3
/
files
/
winamp3_0-full.exe
/
Wacs
/
xml
/
winamp
/
scripts
/
titleboxslidercb.maki
(
.txt
)
< prev
Wrap
Winamp Compiled Maki Script
|
2002-06-25
|
2KB
|
65 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 String20;
String String9;
String String12;
Group7 = System.getScriptGroup();
if(( Group7 == Null)) {
return Null;
}
String9 = System.getParam();
String12 = System.getToken(String9, ( "\;"), 0);
GuiObject8 = Group7.findObject(String12);
if(( GuiObject8 == Null)) {
System.messageBox(( ( ( "titleboxslidercm\.make\ \:\ targetbase\ not\ found\ \(param\ 0\ \=\ ") + String12) + ( "\)")), ( "Error"), 0, ( ""));
return Null;
}
Text3 = GuiObject8.findObject(( "titlebox\.text"));
if(( Text3 == Null)) {
System.messageBox(( "titleboxslidercm\.make\ \:\ titlebox\.text\ not\ found"), ( "Error"), 0, ( ""));
return Null;
}
String20 = System.getToken(String9, ( "\;"), 1);
String4 = System.getToken(String9, ( "\;"), 2);
String5 = System.getToken(String9, ( "\;"), 3);
String6 = System.getToken(String9, ( "\;"), 4);
if(( String6 == ( ""))) {
String6 = String5;
}
Slider2 = GuiObject8.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);
}
GuiObject8.setXmlParam(( "suffix"), String26);
return Null;
}