home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 November
/
CDVD1105.ISO
/
Util
/
Winamp
/
Skins
/
Anime_Shogo.wal
/
scripts
/
sonique2_timer.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2003-02-19
|
2KB
|
97 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Timer Timer2;
Global Text Text3;
Global Boolean Boolean4;
Function func391(Int 0);
System.onScriptLoaded()
{
Group Group7;
Group7 = System.getContainer(( "Main")).getLayout(( "Normal"));
Text3 = Group7.findObject(( "s2timer"));
Timer2 = ( new Timer);
Timer2.setDelay(20);
Boolean4 = System.getPrivateInt(( "Settings"), ( "Minus"), 0);
if(( System.getStatus() == 1)) {
Timer2.start();
}
return Null;
}
System.onScriptUnloading()
{
Timer2.stop();
delete Timer2;
return Null;
}
System.onPlay()
{
Timer2.start();
return Null;
}
System.onStop()
{
Timer2.stop();
Text3.setText(( ""));
return Null;
}
Timer2.onTimer()
{
if(Boolean4) {
Text3.setText(func391(( System.getPlayItemLength() - System.getPosition())));
} else {
Text3.setText(func391(System.getPosition()));
}
return Null;
}
Text3.onLeftButtonDown(int x, int y)
{
if(Boolean4) {
Boolean4 = 0;
} else {
Boolean4 = 1;
}
System.setPrivateInt(( "Settings"), ( "Minus"), Boolean4);
return Null;
}
func391(Int 0)
{
String String20;
Int Int21;
String String19;
String19 = ( System.integerToLongTime(Int17) + ( "\."));
String20 = System.integerToString(Int17);
Int21 = System.strlen(String20);
if(( System.strlen(String19) == 8)) {
String19 = ( ( "0") + String19);
}
if(( Int21 <= 3)) {
String20 = System.strmid(String20, ( Int21 - 3), 2);
String19 = ( String19 + String20);
} else {
if(( Int21 == 2)) {
String20 = System.strmid(String20, 0, 1);
String19 = ( ( String19 + ( "0")) + String20);
} else {
String19 = ( String19 + ( "00"));
}
}
if(Boolean4) {
String19 = ( ( "\-") + String19);
} else {
String19 = ( ( "\ ") + String19);
}
return String19;
}