home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 November
/
CDVD1105.ISO
/
Util
/
Winamp
/
Skins
/
Anime_Shogo.wal
/
scripts
/
timerscrpt.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2004-08-09
|
3KB
|
126 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Text Text11;
Global Text Text12;
Global Layer Layer13;
Global Timer Timer14;
Global Boolean Boolean15;
Function func790(Int 0);
Function func1014();
System.onScriptLoaded()
{
Layout Layout20;
Layout Layout18;
Layout18 = System.getContainer(( "main")).getLayout(( "Normal"));
Layout20 = System.getContainer(( "main")).getLayout(( "Sword"));
Text12 = Layout18.findObject(( "Songticker"));
Text11 = Layout18.findObject(( "Timer"));
Layer13 = Layout20.findObject(( "SwordTrap"));
Timer14 = ( new Timer);
Timer14.setDelay(20);
Boolean15 = System.getPrivateInt(( "Settings"), ( "Minus"), 0);
if(( System.getStatus() == 0)) {
Text11.setText(( "000\:00"));
} else {
Timer14.start();
}
func1014();
return Null;
}
System.onScriptUnloading()
{
Timer14.stop();
delete Timer14;
return Null;
}
System.onPlay()
{
Timer14.start();
return Null;
}
System.onStop()
{
Timer14.stop();
Text11.setText(( "000\:00"));
return Null;
}
Timer14.onTimer()
{
if(Boolean15) {
Text11.setText(func790(( System.getPlayItemLength() - System.getPosition())));
} else {
Text11.setText(func790(System.getPosition()));
}
return Null;
}
Text11.onLeftButtonDown(int x, int y)
{
if(Boolean15) {
Boolean15 = 0;
} else {
Boolean15 = 1;
}
System.setPrivateInt(( "Settings"), ( "Minus"), Boolean15);
return Null;
}
func790(Int 0)
{
String String31;
Int Int33;
String String32;
String31 = System.integerToTime(Int30);
String32 = System.integerToString(Int30);
Int33 = System.strlen(String32);
if(( System.strlen(String31) == 4)) {
String31 = ( ( "00") + String31);
} else {
if(( System.strlen(String31) == 5)) {
String31 = ( ( "0") + String31);
}
}
if(Boolean15) {
String31 = ( ( "\-") + String31);
}
return String31;
}
func1014()
{
String String41;
String41 = ( ( ( Text12.getText() + ( "\ \(")) + System.integerToTime(System.getPlayItemLength())) + ( "\)"));
Text12.setXmlParam(( "tooltip"), String41);
Text11.setXmlParam(( "tooltip"), String41);
Layer13.setXmlParam(( "tooltip"), String41);
return Null;
}
Text12.onEnterArea()
{
func1014();
return Null;
}
Text11.onEnterArea()
{
func1014();
return Null;
}
Layer13.onEnterArea()
{
func1014();
return Null;
}