mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 23:00:49 +00:00
format code: blank lines
This commit is contained in:
@@ -1,18 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.␍ */
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.timeline;
|
||||
|
||||
import com.jpexs.decompiler.flash.SWF;
|
||||
@@ -28,7 +29,9 @@ import java.util.TreeMap;
|
||||
public class AS2Package implements TreeItem {
|
||||
|
||||
private final SWF swf;
|
||||
|
||||
private final String name;
|
||||
|
||||
private final AS2Package parent;
|
||||
|
||||
public Map<String, AS2Package> subPackages = new TreeMap<>();
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.␍ */
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.timeline;
|
||||
|
||||
import com.jpexs.decompiler.flash.SWF;
|
||||
@@ -28,8 +29,11 @@ import java.util.TreeMap;
|
||||
public class AS3Package extends AS3ClassTreeItem {
|
||||
|
||||
private final SWF swf;
|
||||
|
||||
public String packageName;
|
||||
|
||||
public Map<String, AS3Package> subPackages = new TreeMap<>();
|
||||
|
||||
public Map<String, ScriptPack> scripts = new TreeMap<>();
|
||||
|
||||
public AS3Package(String packageName, SWF swf) {
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.␍ */
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.timeline;
|
||||
|
||||
import java.awt.Shape;
|
||||
@@ -24,6 +25,7 @@ import java.awt.Shape;
|
||||
public class Clip {
|
||||
|
||||
public Shape shape;
|
||||
|
||||
public int depth;
|
||||
|
||||
public Clip(Shape shape, int depth) {
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.␍ */
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.timeline;
|
||||
|
||||
import com.jpexs.decompiler.flash.SWF;
|
||||
@@ -32,22 +33,39 @@ import java.util.concurrent.atomic.AtomicLong;
|
||||
public class DepthState {
|
||||
|
||||
public int characterId = -1;
|
||||
|
||||
public MATRIX matrix = null;
|
||||
|
||||
public String instanceName = null;
|
||||
|
||||
public ColorTransform colorTransForm = null;
|
||||
|
||||
public boolean cacheAsBitmap = false;
|
||||
|
||||
public int blendMode = 0;
|
||||
|
||||
public List<FILTER> filters = new ArrayList<>();
|
||||
|
||||
public boolean isVisible = true;
|
||||
|
||||
public RGBA backGroundColor = null;
|
||||
|
||||
public CLIPACTIONS clipActions = null;
|
||||
|
||||
public int ratio = -1;
|
||||
|
||||
public boolean key = false;
|
||||
|
||||
public int clipDepth = -1;
|
||||
|
||||
public int time = 0;
|
||||
|
||||
private final SWF swf;
|
||||
|
||||
public Frame frame;
|
||||
|
||||
public long instanceId;
|
||||
|
||||
public boolean motionTween = false;
|
||||
|
||||
private static AtomicLong lastInstanceId = new AtomicLong(0);
|
||||
@@ -85,5 +103,4 @@ public class DepthState {
|
||||
instanceId = getNewInstanceId();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.␍ */
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.timeline;
|
||||
|
||||
import com.jpexs.decompiler.flash.SWF;
|
||||
@@ -33,14 +34,23 @@ import java.util.TreeMap;
|
||||
public class Frame implements TreeItem {
|
||||
|
||||
public final int frame;
|
||||
|
||||
public TreeMap<Integer, DepthState> layers = new TreeMap<>();
|
||||
|
||||
public RGB backgroundColor = new RGBA(0, 0, 0, 0);
|
||||
|
||||
public Timeline timeline;
|
||||
|
||||
public List<Integer> sounds = new ArrayList<>();
|
||||
|
||||
public List<String> soundClasses = new ArrayList<>();
|
||||
|
||||
public List<DoActionTag> actions = new ArrayList<>();
|
||||
|
||||
public List<Tag> innerTags = new ArrayList<>();
|
||||
|
||||
public ShowFrameTag showFrameTag = null; // can be null for the last frame
|
||||
|
||||
public boolean layersChanged;
|
||||
|
||||
public Frame(Timeline timeline, int frame) {
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.␍ */
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.timeline;
|
||||
|
||||
import com.jpexs.decompiler.flash.SWF;
|
||||
@@ -25,6 +26,7 @@ import com.jpexs.decompiler.flash.treeitems.TreeItem;
|
||||
public class FrameScript implements TreeItem {
|
||||
|
||||
private final SWF swf;
|
||||
|
||||
private final Frame frame;
|
||||
|
||||
public FrameScript(SWF swf, Frame frame) {
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.␍ */
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.timeline;
|
||||
|
||||
/**
|
||||
@@ -22,6 +23,7 @@ package com.jpexs.decompiler.flash.timeline;
|
||||
public class SvgClip {
|
||||
|
||||
public String shape;
|
||||
|
||||
public int depth;
|
||||
|
||||
public SvgClip(String shape, int depth) {
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.␍ */
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.timeline;
|
||||
|
||||
import com.jpexs.decompiler.flash.SWF;
|
||||
@@ -27,7 +28,9 @@ import java.util.List;
|
||||
public class TagScript implements TreeItem {
|
||||
|
||||
private final SWF swf;
|
||||
|
||||
private final Tag tag;
|
||||
|
||||
private final List<TreeItem> frames;
|
||||
|
||||
public TagScript(SWF swf, Tag tag, List<TreeItem> frames) {
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.
|
||||
*/
|
||||
@@ -55,19 +55,31 @@ import java.util.Stack;
|
||||
public class Timeline {
|
||||
|
||||
public int id;
|
||||
|
||||
public SWF swf;
|
||||
|
||||
public RECT displayRect;
|
||||
|
||||
public int frameRate;
|
||||
|
||||
public Timelined timelined;
|
||||
|
||||
public Tag parentTag;
|
||||
|
||||
public List<Tag> tags;
|
||||
|
||||
private final List<Frame> frames = new ArrayList<>();
|
||||
|
||||
private final Map<Integer, Integer> depthMaxFrame = new HashMap<>();
|
||||
|
||||
private final List<ASMSource> asmSources = new ArrayList<>();
|
||||
|
||||
private final Map<ASMSource, Integer> actionFrames = new HashMap<>();
|
||||
|
||||
private AS2Package as2RootPackage;
|
||||
|
||||
private final List<Tag> otherTags = new ArrayList<>();
|
||||
|
||||
private boolean initialized = false;
|
||||
|
||||
private void ensureInitialized() {
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.␍ */
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.timeline;
|
||||
|
||||
/**
|
||||
@@ -22,6 +23,7 @@ package com.jpexs.decompiler.flash.timeline;
|
||||
public class TweenRange {
|
||||
|
||||
public int startPosition;
|
||||
|
||||
public int endPosition;
|
||||
|
||||
public TweenRange(int startPosition, int endPosition) {
|
||||
|
||||
Reference in New Issue
Block a user