mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-10 20:22:46 +00:00
Added Status bar with info about edges on walking shaperecords
This commit is contained in:
@@ -345,6 +345,12 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
|
||||
listener.pointsUpdated(points);
|
||||
}
|
||||
}
|
||||
|
||||
private void fireStatusChanged(String status) {
|
||||
for (MediaDisplayListener listener : listeners) {
|
||||
listener.statusChanged(status);
|
||||
}
|
||||
}
|
||||
|
||||
private boolean fireEdgeSplit(int position, double splitPoint) {
|
||||
boolean result = true;
|
||||
@@ -429,6 +435,14 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
|
||||
pointEditPanel.setVisible(false);
|
||||
redraw();
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
fireStatusChanged(status);
|
||||
}
|
||||
|
||||
public void setNoStatus() {
|
||||
fireStatusChanged("");
|
||||
}
|
||||
|
||||
public void addBoundsChangeListener(BoundsChangeListener listener) {
|
||||
boundsChangeListeners.add(listener);
|
||||
@@ -2809,6 +2823,7 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
|
||||
rewind();
|
||||
redraw();
|
||||
fireMediaDisplayStateChanged();
|
||||
fireStatusChanged("");
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -3501,6 +3516,10 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
|
||||
soundPlayers.remove(sp);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void statusChanged(String status) {
|
||||
}
|
||||
});
|
||||
|
||||
synchronized (ImagePanel.this) {
|
||||
|
||||
Reference in New Issue
Block a user