mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-18 22:18:09 +00:00
Display depth when hovering ImagePanel
Display the depth of the objects under the cursor
This commit is contained in:
@@ -38,6 +38,7 @@ import java.util.concurrent.atomic.AtomicLong;
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class DepthState {
|
||||
public int depth = -1;
|
||||
|
||||
public int characterId = -1;
|
||||
|
||||
@@ -113,6 +114,7 @@ public class DepthState {
|
||||
time = obj.time;
|
||||
placeObjectTag = obj.placeObjectTag;
|
||||
minPlaceObjectNum = obj.minPlaceObjectNum;
|
||||
depth = obj.depth;
|
||||
if (sameInstance) {
|
||||
time++;
|
||||
instanceId = obj.instanceId;
|
||||
|
||||
@@ -312,6 +312,7 @@ public class Timeline {
|
||||
DepthState fl = frame.layers.get(depth);
|
||||
if (fl == null) {
|
||||
frame.layers.put(depth, fl = new DepthState(swf, frame));
|
||||
fl.depth = depth;
|
||||
}
|
||||
frame.layersChanged = true;
|
||||
fl.placeObjectTag = po;
|
||||
|
||||
Reference in New Issue
Block a user