mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 01:20:43 +00:00
Improved export dialog (show only usable options, refactored)
Nelly moser decoding, MP3 decoding WAV export for all soundtypes PNG only, JPEG only export modes for images
This commit is contained in:
@@ -180,15 +180,15 @@ public class Timeline {
|
||||
}
|
||||
|
||||
public List<Integer> getSounds(int frame, DepthState stateUnderCursor, int mouseButton) {
|
||||
List<Integer> ret=new ArrayList<>();
|
||||
List<Integer> ret = new ArrayList<>();
|
||||
Frame fr = this.frames.get(frame);
|
||||
ret.addAll(fr.sounds);
|
||||
ret.addAll(fr.sounds);
|
||||
for (int d = this.getMaxDepth(); d >= 0; d--) {
|
||||
DepthState ds = fr.layers.get(d);
|
||||
if (ds != null) {
|
||||
CharacterTag c = swf.characters.get(ds.characterId);
|
||||
if (c instanceof Timelined) {
|
||||
int dframe = ds.time % ((Timelined)c).getTimeline().frames.size();
|
||||
int dframe = ds.time % ((Timelined) c).getTimeline().frames.size();
|
||||
if (c instanceof ButtonTag) {
|
||||
ButtonTag bt = (ButtonTag) c;
|
||||
dframe = ButtonTag.FRAME_UP;
|
||||
@@ -198,9 +198,9 @@ public class Timeline {
|
||||
} else {
|
||||
dframe = ButtonTag.FRAME_OVER;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
ret.addAll(((Timelined)c).getTimeline().getSounds(dframe, stateUnderCursor, mouseButton));
|
||||
ret.addAll(((Timelined) c).getTimeline().getSounds(dframe, stateUnderCursor, mouseButton));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user