Compare commits
2 Commits
beta-1
...
2e1fe95670
| Author | SHA1 | Date | |
|---|---|---|---|
| 2e1fe95670 | |||
| 45fbe80f9f |
@@ -95,7 +95,7 @@ public class Kermit implements ActionListener {
|
|||||||
button.setVisible(false);frame.remove(button);
|
button.setVisible(false);frame.remove(button);
|
||||||
button2.setVisible(false);frame.remove(button2);
|
button2.setVisible(false);frame.remove(button2);
|
||||||
dialogText.setVisible(false);frame.remove(dialogText);
|
dialogText.setVisible(false);frame.remove(dialogText);
|
||||||
changePage(Pages.EXPORT_MODE);
|
changePage(Pages.SDK_INSTALL); // EXPORT_MODE
|
||||||
break;
|
break;
|
||||||
case EXPORT_MODE:
|
case EXPORT_MODE:
|
||||||
button.setVisible(false);frame.remove(button);
|
button.setVisible(false);frame.remove(button);
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ import java.io.IOException;
|
|||||||
import java.math.RoundingMode;
|
import java.math.RoundingMode;
|
||||||
import java.nio.file.*;
|
import java.nio.file.*;
|
||||||
import java.text.DecimalFormat;
|
import java.text.DecimalFormat;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
@@ -343,7 +344,18 @@ public class MissPiggy implements ActionListener {
|
|||||||
|
|
||||||
public void removeAllGUI() {
|
public void removeAllGUI() {
|
||||||
// todo warning dialog that nukes list when Yes is clicked
|
// todo warning dialog that nukes list when Yes is clicked
|
||||||
throwUnimplemented();
|
int result = JOptionPane.showConfirmDialog(frame, "Do you really want to delete all mods?", "Remove All", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);
|
||||||
|
|
||||||
|
if (result == JOptionPane.YES_OPTION) {
|
||||||
|
for (Main.Mod entry : Main.Mods) {
|
||||||
|
new File(System.getProperty("user.home") + "/.firestar/mods/" + entry.path).delete();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
new File(System.getProperty("user.home") + "/.firestar/mods/index").delete();
|
||||||
|
Main.Mods.clear();
|
||||||
|
|
||||||
|
InitializeModListStructure();
|
||||||
|
InitializeModListInGUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void optionsGUI() {
|
public void optionsGUI() {
|
||||||
@@ -361,11 +373,6 @@ public class MissPiggy implements ActionListener {
|
|||||||
throwUnimplemented();
|
throwUnimplemented();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void aboutGUI() {
|
|
||||||
// todo about page
|
|
||||||
throwUnimplemented();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void throwUnimplemented() {
|
public void throwUnimplemented() {
|
||||||
JOptionPane.showMessageDialog(frame, "Unimplemented.\nSee README at https://git.worlio.com/bonkmaykr/firestar", "Unimplemented", JOptionPane.INFORMATION_MESSAGE);
|
JOptionPane.showMessageDialog(frame, "Unimplemented.\nSee README at https://git.worlio.com/bonkmaykr/firestar", "Unimplemented", JOptionPane.INFORMATION_MESSAGE);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user