mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 10:30:46 +00:00
Added #1717 AS1/2/3 Option to hide P-code panel
This commit is contained in:
@@ -1080,9 +1080,7 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<Scr
|
||||
|
||||
decLabel.setHorizontalAlignment(SwingConstants.CENTER);
|
||||
//decLabel.setBorder(new BevelBorder(BevelBorder.RAISED));
|
||||
splitPane = new JPersistentSplitPane(JSplitPane.HORIZONTAL_SPLIT, panB, detailPanel, Configuration.guiAvm2SplitPaneDividerLocationPercent);
|
||||
splitPane.setContinuousLayout(true);
|
||||
|
||||
|
||||
decompiledTextArea.changeContentType("text/actionscript3");
|
||||
decompiledTextArea.setFont(Configuration.getSourceFont());
|
||||
|
||||
@@ -1130,7 +1128,14 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<Scr
|
||||
}
|
||||
});
|
||||
|
||||
add(splitPane, BorderLayout.CENTER);
|
||||
if (Configuration.displayAs3PCodePanel.get()) {
|
||||
splitPane = new JPersistentSplitPane(JSplitPane.HORIZONTAL_SPLIT, panB, detailPanel, Configuration.guiAvm2SplitPaneDividerLocationPercent);
|
||||
splitPane.setContinuousLayout(true);
|
||||
add(splitPane, BorderLayout.CENTER);
|
||||
} else {
|
||||
splitPane = null;
|
||||
add(panB, BorderLayout.CENTER);
|
||||
}
|
||||
}
|
||||
|
||||
private void decompiledTextAreaTextChanged() {
|
||||
|
||||
@@ -950,19 +950,18 @@ public class ActionPanel extends JPanel implements SearchListener<ScriptSearchRe
|
||||
}
|
||||
});
|
||||
|
||||
//new JSplitPane(JSplitPane.VERTICAL_SPLIT, decompiledEditor, debugPanel)
|
||||
//decPanel.add(decButtonsPan, BorderLayout.SOUTH);
|
||||
//JPanel panBot = new JPanel(new BorderLayout());
|
||||
//panBot.add(decButtonsPan, BorderLayout.NORTH);
|
||||
//panBot.add(debugPanel, BorderLayout.CENTER);
|
||||
//panA.add(decButtonsPan, BorderLayout.SOUTH);
|
||||
debugPanel.setVisible(false);
|
||||
|
||||
decLabel.setHorizontalAlignment(SwingConstants.CENTER);
|
||||
//decLabel.setBorder(new BevelBorder(BevelBorder.RAISED));
|
||||
|
||||
|
||||
setLayout(new BorderLayout());
|
||||
add(splitPane = new JPersistentSplitPane(JSplitPane.HORIZONTAL_SPLIT, panA, panB, Configuration.guiActionSplitPaneDividerLocationPercent), BorderLayout.CENTER);
|
||||
|
||||
if (Configuration.displayAs12PCodePanel.get()) {
|
||||
add(splitPane = new JPersistentSplitPane(JSplitPane.HORIZONTAL_SPLIT, panA, panB, Configuration.guiActionSplitPaneDividerLocationPercent), BorderLayout.CENTER);
|
||||
} else {
|
||||
splitPane = null;
|
||||
add(panA, BorderLayout.CENTER);
|
||||
}
|
||||
|
||||
editor.setFont(Configuration.getSourceFont());
|
||||
decompiledEditor.setFont(Configuration.getSourceFont());
|
||||
|
||||
@@ -733,4 +733,10 @@ config.name.lastMainWindowScreenWidth = Last main window screen width
|
||||
config.description.lastMainWindowScreenWidth = Last main window screen width
|
||||
|
||||
config.name.lastMainWindowScreenHeight = Last main window screen width
|
||||
config.description.lastMainWindowScreenHeight = Last main window screen width
|
||||
config.description.lastMainWindowScreenHeight = Last main window screen width
|
||||
|
||||
config.name.displayAs12PCodePanel = Show AS1/2 P-code panel
|
||||
config.description.displayAs12PCodePanel = Show panel with disassembled P-code actions for ActionScript 1 and 2
|
||||
|
||||
config.name.displayAs3PCodePanel = Show AS3 P-code panel
|
||||
config.description.displayAs3PCodePanel = Show panel with disassembled P-code instructions for ActionScript 3
|
||||
|
||||
@@ -723,4 +723,10 @@ config.name.lastMainWindowScreenWidth = Posledn\u00ed \u0161\u00ed\u0159ka obraz
|
||||
config.description.lastMainWindowScreenWidth = Posledn\u00ed \u0161\u00ed\u0159ka obrazovky hlavn\u00edho okna
|
||||
|
||||
config.name.lastMainWindowScreenHeight = Posledn\u00ed v\u00fd\u0161ka obrazovky hlavn\u00edho okna
|
||||
config.description.lastMainWindowScreenHeight = Posledn\u00ed v\u00fd\u0161ka obrazovky hlavn\u00edho okna
|
||||
config.description.lastMainWindowScreenHeight = Posledn\u00ed v\u00fd\u0161ka obrazovky hlavn\u00edho okna
|
||||
|
||||
config.name.displayAs12PCodePanel = Zobrazit AS1/2 panel s P-k\u00f3dem
|
||||
config.description.displayAs12PCodePanel = Zobrazit panel s akcemi disassemblovan\u00e9ho P-k\u00f3du pro ActionScript 1 a 2
|
||||
|
||||
config.name.displayAs3PCodePanel = Zobrazit AS3 panel s P-k\u00f3dem
|
||||
config.description.displayAs3PCodePanel = Zobrazit panel s instrukcemi disassemblovan\u00e9ho P-k\u00f3du pro ActionScript 3
|
||||
|
||||
Reference in New Issue
Block a user