diff --git a/pom.xml b/pom.xml index 908c48b..1f4c20a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,9 +4,9 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.example + gq.malwarefight narumi-deobf-gui - 1.1.2 + 1.1.3 narumi-deobf-gui @@ -64,7 +64,7 @@ com.github.pandaninjas Deobfuscator - b36adf9 + bfb27d4 diff --git a/src/main/java/gq/malwarefight/narumiideobfgui/DeobfuscatorGUIApp.java b/src/main/java/gq/malwarefight/narumiideobfgui/DeobfuscatorGUIApp.java index a902cb1..6b5f4ab 100644 --- a/src/main/java/gq/malwarefight/narumiideobfgui/DeobfuscatorGUIApp.java +++ b/src/main/java/gq/malwarefight/narumiideobfgui/DeobfuscatorGUIApp.java @@ -13,7 +13,9 @@ public class DeobfuscatorGUIApp extends Application { @Override public void start(Stage stage) throws IOException { DeobfuscatorGUIApp.stage = stage; - FXMLLoader fxmlLoader = new FXMLLoader(DeobfuscatorGUIApp.class.getResource((useRaw) ? "deobfuscator-gui-advanced-view.fxml": "deobfuscator-gui-view.fxml")); + FXMLLoader fxmlLoader = new FXMLLoader(DeobfuscatorGUIApp.class.getResource( + (useRaw) ? "deobfuscator-gui-advanced-view.fxml": "deobfuscator-gui-view.fxml") + ); Scene scene = new Scene(fxmlLoader.load(), 320, 240); stage.setTitle("Narumii Deobfuscator"); stage.setScene(scene); diff --git a/src/main/java/gq/malwarefight/narumiideobfgui/DeobfuscatorGUIController.java b/src/main/java/gq/malwarefight/narumiideobfgui/DeobfuscatorGUIController.java index 5fd8719..3533f5f 100644 --- a/src/main/java/gq/malwarefight/narumiideobfgui/DeobfuscatorGUIController.java +++ b/src/main/java/gq/malwarefight/narumiideobfgui/DeobfuscatorGUIController.java @@ -3,10 +3,7 @@ import gq.malwarefight.narumiideobfgui.deobfuscatorutils.DeobfuscatorRegistry; import javafx.fxml.FXML; import javafx.geometry.Pos; -import javafx.scene.control.CheckBox; -import javafx.scene.control.Label; -import javafx.scene.control.ScrollPane; -import javafx.scene.control.TextField; +import javafx.scene.control.*; import javafx.scene.layout.VBox; import javafx.stage.FileChooser; import org.objectweb.asm.ClassReader; @@ -23,6 +20,7 @@ public class DeobfuscatorGUIController { private final HashMap deobfuscatorHashMap = new HashMap<>(); + private boolean stateToToggleTo = true; @FXML public TextField inputName; @@ -115,4 +113,12 @@ protected void deobfuscate() { } result.setText("Deobfuscation complete"); } + + @FXML + public void toggleAll() { + for (CheckBox box: deobfuscatorHashMap.keySet()) { + box.setSelected(stateToToggleTo); + } + stateToToggleTo = !stateToToggleTo; + } } \ No newline at end of file diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java index ebb7da4..58be1db 100644 --- a/src/main/java/module-info.java +++ b/src/main/java/module-info.java @@ -3,7 +3,7 @@ requires javafx.graphics; requires javafx.controls; requires org.objectweb.asm; - requires Deobfuscator.b36adf9; + requires Deobfuscator.bfb27d4; opens gq.malwarefight.narumiideobfgui to javafx.fxml; exports gq.malwarefight.narumiideobfgui to javafx.graphics; } \ No newline at end of file diff --git a/src/main/resources/gq/malwarefight/narumiideobfgui/deobfuscator-gui-advanced-view.fxml b/src/main/resources/gq/malwarefight/narumiideobfgui/deobfuscator-gui-advanced-view.fxml index 2e8738e..e9cb0f7 100644 --- a/src/main/resources/gq/malwarefight/narumiideobfgui/deobfuscator-gui-advanced-view.fxml +++ b/src/main/resources/gq/malwarefight/narumiideobfgui/deobfuscator-gui-advanced-view.fxml @@ -21,6 +21,7 @@ + Toggle all