home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2004 September
/
Gamestar_65_2004-09_dvd.iso
/
Programy
/
winamp501_full.exe
/
$_14327_
/
seekshade.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2003-11-16
|
2KB
|
75 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Group Group2;
Global Slider Slider3;
Global Int Int4;
Global Timer Timer5;
Global Text Text6;
System.onScriptLoaded()
{
Group2 = System.getScriptGroup();
Slider3 = Group2.findObject(( "shadeSeekerGhost"));
Text6 = Group2.findObject(( "SongtickerShade"));
Timer5 = ( new Timer);
Timer5.setDelay(1000);
return Null;
}
Timer5.onTimer()
{
Text6.setText(( ""));
Timer5.stop();
return Null;
}
System.onScriptUnloading()
{
delete Timer5;
return Null;
}
Slider3.onSetPosition(int newpos)
{
Int Int17;
Float Float12;
Float Float15;
if(Int4) {
Float12 = newpos;
Float12 = ( ( Float12 / 255) * 100);
Float15 = System.getPlayItemLength();
if(( Float15 != 0)) {
Int17 = ( ( Float15 * Float12) / 100);
Timer5.start();
Text6.setText(( ( ( ( ( ( ( "SEEK\:") + System.integerToTime(Int17)) + ( "\/")) + System.integerToTime(Float15)) + ( "\ \(")) + System.integerToString(Float12)) + ( "\%\)\ ")));
}
}
return Null;
}
Slider3.onLeftButtonDown(int x, int y)
{
Int4 = 1;
return Null;
}
Slider3.onLeftButtonUp(int x, int y)
{
Int4 = 0;
Timer5.start();
Text6.setText(( ""));
return Null;
}
Slider3.onSetFinalPosition(int pos)
{
Timer5.start();
Text6.setText(( ""));
return Null;
}