From c7f2a84c3aa51eb4b82d1f0d1e0f62a04ebfb9df Mon Sep 17 00:00:00 2001 From: Downforce Agent Date: Sat, 29 Jun 2024 13:34:30 -0500 Subject: [PATCH] shit --- src/MissPiggy.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/MissPiggy.java b/src/MissPiggy.java index 9cacf66..f057ac9 100644 --- a/src/MissPiggy.java +++ b/src/MissPiggy.java @@ -89,6 +89,7 @@ public class MissPiggy implements ActionListener { fileMenu.add(new JMenuItem("Deploy Mods")); fileMenu.add(new JMenuItem("Import Mod from File")); + fileMenu.add(new JSeparator()); fileMenu.add(new JMenuItem("Delete All")); fileMenu.add(new JSeparator()); fileMenu.add(new JMenuItem("Options")); @@ -114,9 +115,9 @@ public class MissPiggy implements ActionListener { fileMenu.getItem(0).addActionListener(this); fileMenu.getItem(1).addActionListener(this); - fileMenu.getItem(2).addActionListener(this); - fileMenu.getItem(4).addActionListener(this); + fileMenu.getItem(3).addActionListener(this); fileMenu.getItem(5).addActionListener(this); + fileMenu.getItem(6).addActionListener(this); toolsMenu.getItem(0).addActionListener(this); toolsMenu.getItem(1).addActionListener(this); toolsMenu.getItem(2).addActionListener(this); @@ -244,14 +245,14 @@ public class MissPiggy implements ActionListener { @Override public void actionPerformed(ActionEvent actionEvent) { - if (actionEvent.getSource() == fileMenu.getItem(5)) {System.exit(0);} else + if (actionEvent.getSource() == fileMenu.getItem(6)) {System.exit(0);} else if (actionEvent.getSource() == fileMenu.getItem(0)) {deployModGUI();} else if (actionEvent.getSource() == deployButton) {deployModGUI();} else if (actionEvent.getSource() == importButton) {importModGUI();} else if (actionEvent.getSource() == fileMenu.getItem(1)) {importModGUI();} else - if (actionEvent.getSource() == fileMenu.getItem(2)) {removeAllGUI();} else + if (actionEvent.getSource() == fileMenu.getItem(3)) {removeAllGUI();} else if (actionEvent.getSource() == optionsButton) {optionsGUI();} else - if (actionEvent.getSource() == fileMenu.getItem(4)) {optionsGUI();} else + if (actionEvent.getSource() == fileMenu.getItem(5)) {optionsGUI();} else if (actionEvent.getSource() == moveUpButton) {moveUp(modList.getSelectedIndex());} else if (actionEvent.getSource() == moveDownButton) {moveDown(modList.getSelectedIndex());} else