mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 22:30:46 +00:00
#1241 Settings to show original bytes
This commit is contained in:
@@ -131,6 +131,8 @@ public class ActionPanel extends JPanel implements SearchListener<ActionSearchRe
|
||||
|
||||
public JToggleButton resolveConstantsButton;
|
||||
|
||||
public JToggleButton showOriginalBytesInPcodeHexButton;
|
||||
|
||||
public JLabel asmLabel = new HeaderLabel(AppStrings.translate("panel.disassembled"));
|
||||
|
||||
public JLabel decLabel = new HeaderLabel(AppStrings.translate("panel.decompiled"));
|
||||
@@ -637,6 +639,12 @@ public class ActionPanel extends JPanel implements SearchListener<ActionSearchRe
|
||||
resolveConstantsButton.setMargin(new Insets(3, 3, 3, 3));
|
||||
resolveConstantsButton.setSelected(Configuration.resolveConstants.get());
|
||||
|
||||
showOriginalBytesInPcodeHexButton = new JToggleButton(View.getIcon("originalbytes16"));
|
||||
showOriginalBytesInPcodeHexButton.addActionListener(this::showOriginalBytesInPcodeHexButtonActionPerformed);
|
||||
showOriginalBytesInPcodeHexButton.setToolTipText(AppStrings.translate("button.showOriginalBytesInPcodeHex"));
|
||||
showOriginalBytesInPcodeHexButton.setMargin(new Insets(3, 3, 3, 3));
|
||||
showOriginalBytesInPcodeHexButton.setSelected(Configuration.showOriginalBytesInPcodeHex.get());
|
||||
|
||||
topButtonsPan = new JPanel();
|
||||
topButtonsPan.setLayout(new BoxLayout(topButtonsPan, BoxLayout.X_AXIS));
|
||||
topButtonsPan.add(graphButton);
|
||||
@@ -646,6 +654,7 @@ public class ActionPanel extends JPanel implements SearchListener<ActionSearchRe
|
||||
topButtonsPan.add(constantsViewButton);
|
||||
topButtonsPan.add(Box.createRigidArea(new Dimension(10, 0)));
|
||||
topButtonsPan.add(resolveConstantsButton);
|
||||
topButtonsPan.add(showOriginalBytesInPcodeHexButton);
|
||||
|
||||
JPanel panCode = new JPanel(new BorderLayout());
|
||||
panCode.add(new JScrollPane(editor), BorderLayout.CENTER);
|
||||
@@ -923,6 +932,14 @@ public class ActionPanel extends JPanel implements SearchListener<ActionSearchRe
|
||||
setHex(getExportMode(), src.getScriptName());
|
||||
}
|
||||
|
||||
private void showOriginalBytesInPcodeHexButtonActionPerformed(ActionEvent evt) {
|
||||
boolean resolve = showOriginalBytesInPcodeHexButton.isSelected();
|
||||
Configuration.showOriginalBytesInPcodeHex.set(resolve);
|
||||
|
||||
srcWithHex = null;
|
||||
setHex(getExportMode(), src.getScriptName());
|
||||
}
|
||||
|
||||
private void cancelActionButtonActionPerformed(ActionEvent evt) {
|
||||
setEditMode(false);
|
||||
setHex(getExportMode(), src.getScriptName());
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 554 B |
@@ -712,8 +712,10 @@ menu.settings.simplifyExpressions = Simplify expressions
|
||||
|
||||
#after 8.0.1
|
||||
menu.recentFiles.empty = Recent file list is empty
|
||||
message.warning.outOfMemory32BitJre = OutOfMemory error occured. You are running 32bit Java on 64bit system. Please use 64bit Java.
|
||||
message.warning.outOfMemory32BitJre = OutOfMemory error occurred. You are running 32bit Java on 64bit system. Please use 64bit Java.
|
||||
|
||||
menu.file.reloadAll = Reload all
|
||||
message.confirm.reloadAll = This action cancels all unsaved changes in all SWF files and reloads whole application again.\nDo you want to continue?
|
||||
export.script.singleFilePallelModeWarning = Single file script export is not supported with enabled parallel speedup
|
||||
|
||||
button.showOriginalBytesInPcodeHex = Show original bytes
|
||||
|
||||
Reference in New Issue
Block a user