mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-20 23:15:35 +00:00
Added: Show in Simple editor context menu item for timelined items (sprites, buttons, swfs)
This commit is contained in:
@@ -19,6 +19,7 @@ package com.jpexs.decompiler.flash.easygui;
|
||||
import com.jpexs.decompiler.flash.SWF;
|
||||
import com.jpexs.decompiler.flash.gui.MainPanel;
|
||||
import com.jpexs.decompiler.flash.gui.View;
|
||||
import com.jpexs.decompiler.flash.timeline.Timelined;
|
||||
import java.awt.BorderLayout;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -29,13 +30,7 @@ import javax.swing.JPanel;
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class EasyPanel extends JPanel {
|
||||
|
||||
/**
|
||||
* TODO: switch to true when Easy mode is released. I think it's not
|
||||
* production ready yet.
|
||||
*/
|
||||
public static final boolean EASY_AVAILABLE = true;
|
||||
|
||||
|
||||
private TabSwitcher<SWF> tabSwitcher;
|
||||
private EasySwfPanel easySwfPanel;
|
||||
|
||||
@@ -71,6 +66,11 @@ public class EasyPanel extends JPanel {
|
||||
public SWF getSwf() {
|
||||
return tabSwitcher.getSelectedValue();
|
||||
}
|
||||
|
||||
public void setTimelined(Timelined tim) {
|
||||
setSwf(tim.getSwf());
|
||||
easySwfPanel.setTimelined(tim);
|
||||
}
|
||||
|
||||
public void dispose() {
|
||||
setSwfs(new ArrayList<>());
|
||||
|
||||
Reference in New Issue
Block a user