home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 November
/
CDVD1105.ISO
/
Util
/
Winamp
/
Skins
/
Anime_Shogo.wal
/
scripts
/
swordseekscrpt.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2004-08-09
|
3KB
|
120 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Layer Layer11;
Global Map Map12;
Global Timer Timer13;
Global Boolean Boolean14;
Function func490(Int 0);
Function func847(Int 0, Int 0);
System.onScriptLoaded()
{
Group Group15;
Group15 = System.getScriptGroup();
Layer11 = Group15.findObject(( "SwordSeek"));
Timer13 = ( new Timer);
Timer13.setDelay(1000);
Map12 = ( new Map);
Map12.loadMap(( "sword\.seek\.map"));
if(( System.getStatus() == 0)) {
func490(0);
} else {
Timer13.start();
func490(( ( 255 * System.getPosition()) / System.getPlayItemLength()));
}
return Null;
}
System.onPlay()
{
Timer13.start();
return Null;
}
System.onStop()
{
Timer13.stop();
func490(0);
return Null;
}
Timer13.onTimer()
{
func490(( ( 255 * System.getPosition()) / System.getPlayItemLength()));
return Null;
}
func490(Int 0)
{
Region Region21;
Region21 = ( new Region);
Region21.loadFromMap(Map12, Int20, 1);
Layer11.setRegion(Region21);
delete Region21;
return Null;
}
Layer11.onLeftButtonDown(int x, int y)
{
Timer13.stop();
Boolean14 = 1;
func847(x, y);
return Null;
}
Layer11.onLeftButtonUp(int x, int y)
{
Timer13.start();
if(Boolean14) {
Boolean14 = 0;
func847(x, y);
}
return Null;
}
Layer11.onLeaveArea()
{
Timer13.start();
if(Boolean14) {
Boolean14 = 0;
}
return Null;
}
Layer11.onMouseMove(int x, int y)
{
if(Boolean14) {
func847(x, y);
}
return Null;
}
func847(Int 0, Int 0)
{
Int Int30;
Int Int33;
Int Int32;
Int30 = Map12.getValue(( Int28 - Layer11.getLeft()), ( Int29 - Layer11.getTop()));
if(( System.getPlayItemLength() <= 0)) {
Int32 = ( ( Int30 * 100) / 255);
Int33 = ( ( Int30 * System.getPlayItemLength()) / 255);
if(( ! Boolean14)) {
System.seekTo(Int33);
}
func490(( ( 255 * Int33) / System.getPlayItemLength()));
}
return Null;
}
System.onScriptUnloading()
{
delete Timer13;
delete Map12;
return Null;
}