mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-05 01:54:18 +00:00
AS1/2 button action execution
This commit is contained in:
@@ -338,8 +338,8 @@ public class PlayerControls extends JPanel implements MediaDisplayListener {
|
||||
//updateZoom();
|
||||
int totalFrames = display.getTotalFrames();
|
||||
int currentFrame = display.getCurrentFrame();
|
||||
if (currentFrame >= totalFrames) {
|
||||
currentFrame = totalFrames - 1;
|
||||
if (currentFrame > totalFrames) {
|
||||
currentFrame = totalFrames;
|
||||
}
|
||||
float frameRate = display.getFrameRate();
|
||||
Zoom zoom = display.getZoom();
|
||||
@@ -373,13 +373,13 @@ public class PlayerControls extends JPanel implements MediaDisplayListener {
|
||||
} else {
|
||||
progress.setMaximum(totalFrames - 1);
|
||||
progress.setMinimum(0);
|
||||
progress.setValue(currentFrame);
|
||||
progress.setValue(currentFrame - 1);
|
||||
progress.setIndeterminate(false);
|
||||
}
|
||||
frameLabel.setText(Integer.toString(currentFrame + 1));
|
||||
frameLabel.setText(Integer.toString(currentFrame));
|
||||
totalFrameLabel.setText(Integer.toString(totalFrames));
|
||||
if (frameRate != 0) {
|
||||
timeLabel.setText("(" + formatMs((int) (currentFrame * 1000.0 / frameRate)) + ")");
|
||||
timeLabel.setText("(" + formatMs((int) ((currentFrame - 1) * 1000.0 / frameRate)) + ")");
|
||||
totalTimeLabel.setText("(" + formatMs((int) (totalFrames * 1000.0 / frameRate)) + ")");
|
||||
}
|
||||
if (totalFrames <= 1 && playbackControls.isVisible()) {
|
||||
|
||||
Reference in New Issue
Block a user