mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-15 00:31:52 +00:00
Deobfuscation old/new icons
czech translation updated other translation fixes
This commit is contained in:
@@ -276,12 +276,12 @@ public class MainFrameRibbonMenu implements MainFrameMenu, ActionListener {
|
||||
return mainMenu;
|
||||
}
|
||||
|
||||
private List<RibbonBandResizePolicy> getEmptyResizePolicies(JRibbonBand ribbonBand) {
|
||||
private List<RibbonBandResizePolicy> titleResizePolicies(final JRibbonBand ribbonBand) {
|
||||
List<RibbonBandResizePolicy> resizePolicies = new ArrayList<>();
|
||||
resizePolicies.add(new BaseRibbonBandResizePolicy<AbstractBandControlPanel>(ribbonBand.getControlPanel()) {
|
||||
@Override
|
||||
public int getPreferredWidth(int i, int i1) {
|
||||
return 105;
|
||||
return ribbonBand.getGraphics().getFontMetrics(ribbonBand.getFont()).stringWidth(ribbonBand.getTitle())+20;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -292,7 +292,7 @@ public class MainFrameRibbonMenu implements MainFrameMenu, ActionListener {
|
||||
}
|
||||
|
||||
private List<RibbonBandResizePolicy> getResizePolicies(JRibbonBand ribbonBand) {
|
||||
List<RibbonBandResizePolicy> resizePolicies = new ArrayList<>();
|
||||
List<RibbonBandResizePolicy> resizePolicies = new ArrayList<>();
|
||||
resizePolicies.add(new CoreRibbonResizePolicies.Mirror(ribbonBand.getControlPanel()));
|
||||
resizePolicies.add(new IconRibbonBandResizePolicy(ribbonBand.getControlPanel()));
|
||||
return resizePolicies;
|
||||
@@ -516,14 +516,14 @@ public class MainFrameRibbonMenu implements MainFrameMenu, ActionListener {
|
||||
advancedSettingsBand.addCommandButton(clearRecentFilesCommandButton, RibbonElementPriority.MEDIUM);
|
||||
|
||||
JRibbonBand deobfuscationBand = new JRibbonBand(translate("menu.deobfuscation"), null);
|
||||
deobfuscationBand.setResizePolicies(getEmptyResizePolicies(deobfuscationBand)); //TODO: add icons and change this to getResizePolicies
|
||||
deobfuscationBand.setResizePolicies(titleResizePolicies(deobfuscationBand));
|
||||
|
||||
CommandToggleButtonGroup grpDeobfuscation = new CommandToggleButtonGroup();
|
||||
|
||||
deobfuscationModeOldToggleButton = new JCommandToggleButton(fixCommandTitle(translate("menu.file.deobfuscation.old")), null);
|
||||
deobfuscationModeOldToggleButton = new JCommandToggleButton(fixCommandTitle(translate("menu.file.deobfuscation.old")), View.getResizableIcon("deobfuscateold16"));
|
||||
assignListener(deobfuscationModeOldToggleButton, ACTION_DEOBFUSCATION_MODE_OLD);
|
||||
|
||||
deobfuscationModeNewToggleButton = new JCommandToggleButton(fixCommandTitle(translate("menu.file.deobfuscation.new")), null);
|
||||
deobfuscationModeNewToggleButton = new JCommandToggleButton(fixCommandTitle(translate("menu.file.deobfuscation.new")), View.getResizableIcon("deobfuscatenew16"));
|
||||
assignListener(deobfuscationModeNewToggleButton, ACTION_DEOBFUSCATION_MODE_NEW);
|
||||
|
||||
grpDeobfuscation.add(deobfuscationModeOldToggleButton);
|
||||
|
||||
BIN
src/com/jpexs/decompiler/flash/gui/graphics/deobfuscatenew16.png
Normal file
BIN
src/com/jpexs/decompiler/flash/gui/graphics/deobfuscatenew16.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 719 B |
BIN
src/com/jpexs/decompiler/flash/gui/graphics/deobfuscateold16.png
Normal file
BIN
src/com/jpexs/decompiler/flash/gui/graphics/deobfuscateold16.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 726 B |
@@ -493,8 +493,8 @@ header.displayrect.value.pixels = %xmin%,%ymin% => %xmax%,%ymax% pixels
|
||||
contextmenu.saveToFile = Save to File
|
||||
contextmenu.parseActions = Parse actions
|
||||
contextmenu.parseABC = Parse ABC
|
||||
contextmenu.parseInstructions = Parse AVM2 Instrctions
|
||||
contextmenu.parseInstructions = Parse AVM2 Instructions
|
||||
|
||||
menu.deobfuscation = Deobfuscation
|
||||
menu.deobfuscation = AS1/2 Deobfuscation
|
||||
menu.file.deobfuscation.old = Old style
|
||||
menu.file.deobfuscation.new = New style
|
||||
|
||||
@@ -490,3 +490,12 @@ header.framecount = Po\u010det sn\u00edmk\u016f:
|
||||
header.displayrect = Zobrazen\u00fd obd\u00e9ln\u00edk:
|
||||
header.displayrect.value.twips = %xmin%,%ymin% => %xmax%,%ymax% twip\u016f
|
||||
header.displayrect.value.pixels = %xmin%,%ymin% => %xmax%,%ymax% pixel\u016f
|
||||
|
||||
contextmenu.saveToFile = Ulo\u017eit do souboru
|
||||
contextmenu.parseActions = Naparsovat akce
|
||||
contextmenu.parseABC = Naparsovat ABC
|
||||
contextmenu.parseInstructions = Naparsovat AVM2 instrukce
|
||||
|
||||
menu.deobfuscation = AS1/2 Deobfuskace
|
||||
menu.file.deobfuscation.old = Star\u00fd zp\u016fsob
|
||||
menu.file.deobfuscation.new = Nov\u00fd zp\u016fsob
|
||||
|
||||
@@ -495,6 +495,6 @@ contextmenu.parseActions = Action-\u00f6k elemz\u00e9se
|
||||
contextmenu.parseABC = ABC elemz\u00e9se
|
||||
contextmenu.parseInstructions = AVM2 utas\u00edt\u00e1sok elemz\u00e9se
|
||||
|
||||
menu.deobfuscation = Deobfuszk\u00e1l\u00e1s
|
||||
menu.deobfuscation = AS1/2 Deobfuszk\u00e1l\u00e1s
|
||||
menu.file.deobfuscation.old = R\u00e9gi
|
||||
menu.file.deobfuscation.new = \u00daj
|
||||
|
||||
Reference in New Issue
Block a user