Thread: MAKI Cheats
View Single Post
Old 8th September 2002, 01:11   #12
Paikan
Member
 
Join Date: May 2002
Location: Paris
Posts: 76
Send a message via ICQ to Paikan
Ok i have corrected the problems i have by changing this i think it is better like that:

Seek.onLeftButtonDown(int x, int y) {
if (getPlayItemLength() > 0) {
SongPlayTimer.stop();
SeekChanging = 1;
updateSeeker(x, y);
}
}


Seek.onLeftButtonUp(int x, int y) {
Float l;
if (SeekChanging) {
l = seekMap.getValue(x - Seek.getLeft(), y - Seek.getTop());

if (l > 0) {
if (System.getPlayItemLength() >= 0) {
l = (l / 255) * System.getPlayItemLength();
System.seekTo(l);
}
}

SeekChanging = 0;
SongPlayTimer.start();
}
}
Paikan is offline   Reply With Quote