diff --git a/firestar/src/main/java/Bert.form b/firestar/src/main/java/Bert.form index be0c9bd..bb87da7 100644 --- a/firestar/src/main/java/Bert.form +++ b/firestar/src/main/java/Bert.form @@ -108,7 +108,7 @@ - + @@ -122,7 +122,7 @@ - + @@ -137,7 +137,7 @@ - + @@ -154,7 +154,7 @@ - + @@ -235,7 +235,7 @@ - + @@ -245,6 +245,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/firestar/src/main/java/Bert.java b/firestar/src/main/java/Bert.java index 80798c2..66ca7b4 100644 --- a/firestar/src/main/java/Bert.java +++ b/firestar/src/main/java/Bert.java @@ -36,6 +36,13 @@ public class Bert implements ActionListener { private JCheckBox hdCheck; private JCheckBox furyCheck; private JCheckBox skipBaseCheck; + private JPanel installedList; + private JLabel ipcBase; + private JLabel ipcPatch1; + private JLabel ipcPatch2; + private JLabel ipcDlcHD; + private JLabel ipcDlcFury; + private JPanel installedListMargin; private ButtonGroup radios = new ButtonGroup(); private JFrame invoker; @@ -66,6 +73,8 @@ public class Bert implements ActionListener { patchCheck1.addActionListener(this); patchCheck2.addActionListener(this); + refreshChecklist(); + frame.setIconImage(Main.windowIcon); frame.setVisible(true); @@ -341,4 +350,20 @@ public class Bert implements ActionListener { downloaderPopupThread.start(); } } + + private void refreshChecklist() { + ImageIcon positive = new ImageIcon(Main.class.getResource("/lightPositive.png")); + ImageIcon negative = new ImageIcon(Main.class.getResource("/lightNegative.png")); + + if(new File(Main.inpath + "data.psarc").exists()) + ipcBase.setIcon(positive); else ipcBase.setIcon(negative); + if(new File(Main.inpath + "data1.psarc").exists()) + ipcPatch1.setIcon(positive); else ipcPatch1.setIcon(negative); + if(new File(Main.inpath + "data2.psarc").exists()) + ipcPatch2.setIcon(positive); else ipcPatch2.setIcon(negative); + if(new File(Main.inpath + "dlc1.psarc").exists()) + ipcDlcHD.setIcon(positive); else ipcDlcHD.setIcon(negative); + if(new File(Main.inpath + "dlc2.psarc").exists()) + ipcDlcFury.setIcon(positive); else ipcDlcFury.setIcon(negative); + } } diff --git a/firestar/src/main/resources/lightNegative.png b/firestar/src/main/resources/lightNegative.png index 2950d2e..cbbbe3e 100644 Binary files a/firestar/src/main/resources/lightNegative.png and b/firestar/src/main/resources/lightNegative.png differ diff --git a/firestar/src/main/resources/lightPositive.png b/firestar/src/main/resources/lightPositive.png index c9b8f67..4772ceb 100644 Binary files a/firestar/src/main/resources/lightPositive.png and b/firestar/src/main/resources/lightPositive.png differ