From fe35c8922a93f0ee38aa26dc54c1ad05513a8dbb Mon Sep 17 00:00:00 2001 From: potzplitz <127513690+potzplitz@users.noreply.github.com> Date: Tue, 27 Feb 2024 00:06:17 +0100 Subject: [PATCH] genau --- .idea/.gitignore | 8 ++++++++ .idea/discord.xml | 7 +++++++ .idea/misc.xml | 6 ++++++ .idea/vcs.xml | 6 ++++++ bin/data/DownloadLevels.class | Bin 2631 -> 2631 bytes bin/data/ManageFiles.class | Bin 2298 -> 2392 bytes bin/filestructure/CreateFileStructure.class | Bin 606 -> 736 bytes src/data/DownloadLevels.java | 6 ++++-- src/data/FetchData.java | 2 +- src/data/ManageFiles.java | 4 ++++ src/filestructure/CreateFileStructure.java | 3 ++- src/firstlaunch/FirstlaunchMain.java | 9 +++++++++ src/gui/MainGUI.java | 20 ++++++++++++++++++++ src/gui/MissingLevels.java | 5 +++-- 14 files changed, 70 insertions(+), 6 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/discord.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/vcs.xml create mode 100644 src/firstlaunch/FirstlaunchMain.java create mode 100644 src/gui/MainGUI.java diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/discord.xml b/.idea/discord.xml new file mode 100644 index 0000000..30bab2a --- /dev/null +++ b/.idea/discord.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..81b14a4 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/bin/data/DownloadLevels.class b/bin/data/DownloadLevels.class index 11e69df4317a2be2c0bdfdaa8080699d00aa0e9d..fdf6771a7280cd9e864d68b5afded038e54bd359 100644 GIT binary patch delta 132 zcmWN}DT+b?007V@7}O%4`NeU?1zd2$C3pa%#WKY-FvAp^C$Jc7rb*sF1Wgt(Y4H*k zuc7gkcMY%Mz8s4OqCO-Ahi0r6`AbRo6iQ3U$jK_n8z~qon!Ght_N8K`>Q~KN-9p1s f(^|{FwylnxuA`olzKemIq5FG!`1bU(ImcHoua$IDC3I``Y0}F#713v@*W?c?V#!PVrE(Qq(5e7*hlwy!$kY-S3kY%s}vfLOH z82lI%8G;#<7$Sh8u?%Vq=?v-&c?=p1r3{)3%?#QMJq$VwGZ}Ol<}>IqtYgq;*ur4Q hu#3Tn;UI%C!wCixhO-P7438KR8J;twOy1Ag0RYuL7TN#+ diff --git a/bin/data/ManageFiles.class b/bin/data/ManageFiles.class index 161a997fe58e124bcfda1c2dc436d56fe9194be3..f3532d1932c5b373d285d7d418cdb718ef08f05c 100644 GIT binary patch delta 461 zcmYk0%`an77{-66y|=e+uUlUeDUp^?N-znFi6CSaBGJVxW|A(8i&FJb^*NaFv5=VA z91AwHwUbnYgv1{(f5Ghi7e>UZHgb~ZJ?DLX=gIR}`LD|U`+R#33~*SqdyO`WDMe_y zkm*jQGr5tkqc$ENUM1r&ONGK5FJ!WldeDeEWA8YfG7bW(tXr(<2ctu6=&P9oNhhh4T{; z?ZXv~U{NpW4YW#f7coX?Bt;VwvR@(2mN-YWaZG{}+Bv0DdLTDL^h}(D%rfTWxTsHp z_mgEFpWueX=TIyN;$lAGsQ-NPJ<<}A?IMFhg~ao*q)&s5!yil0j(Eu5w`f1hB_c0% XUQ>K*ioaFTZFXg6%lij=91wW{?s8I} delta 356 zcmXAkO)o=H5Qd-Id+xctbz52ss?w@xRW&SFA|w(Uwh~Jb^;wjn>T_G$6N$f35eo}D z8^6FWkoW@@C1P5enKSP*^Uj?2STh=W`+a@^rnzc_CY33wl(|zkdY`h(fk`-{`q1J& zw`j(7#+03k+6!`QKAo&}YPxj7s+oe$s|$;ybRGW0-?r0f%`4FNWBiDO~{y|`lI)6XzT(NZihzzS*B zM6ZzHoGf)lq(VsBn4Hw$vBSEYV9D$hMK%bqDS8<7gKvGa9B9TE6u!lbu-3i++vY2n no-4Hdd|}9U{{3w6Yjx~Wk{prOk?=}8o=_DnB=wnGbV>XVg=9I5 diff --git a/bin/filestructure/CreateFileStructure.class b/bin/filestructure/CreateFileStructure.class index d45e39d19526f3dc32212b443eed7f660f15cac3..7b039a7df1be321303133ba0f7c9ffc099e0638e 100644 GIT binary patch delta 286 zcmZvWO-jQ65QV>KTGPaorY$MdpVt4sR&xMx@1hH#3vn4RNVG|78U;b{5bivH`?{#0 z-~l{@cn}e%UAuYAH}B2xzVhD%`}6nh131DT+Z}nZSY+8`NpLTN+raM!$%Ws$8)aea z(4-|8gPTn7x-&Z(_$O(UWW6j6gZQw>s*q2@D6v^*(_}-a{S$Q9!V}El^tP|zGCK~t zG%R5*zB-T6(c`f^-(O>p({`djv1wxnd^u}2%Bqf|tGXqwtX*jLVR@CQBAH4Oj& delta 155 zcmaFBdXI(c)W2Q(7#J9A8I(41=`ad$G4L};^DxLTNHQ|8=4Pj47ERvAxU3+Rfti5` zs7!n}1AnBD;C2RKAMI@nVzU@HfRt4DMxYck0~e4KVqgK1oIo}=gCGMBgBZ{}ZlH)5 nL_1J~7s%rRlClhP42%r&KpqDJ;~xewcA!c|1_dCWi9rznt!xyV diff --git a/src/data/DownloadLevels.java b/src/data/DownloadLevels.java index 7021908..63011c1 100644 --- a/src/data/DownloadLevels.java +++ b/src/data/DownloadLevels.java @@ -12,6 +12,8 @@ import javax.swing.JProgressBar; import javax.swing.JScrollPane; import javax.swing.JTextArea; +import gui.MainGUI; + public class DownloadLevels { private ManageFiles data = new ManageFiles(); @@ -81,7 +83,6 @@ public class DownloadLevels { } } catch (IOException e) { - // Handle exceptions e.printStackTrace(); } area.append(" >> ERFOLGREICH \n"); @@ -89,7 +90,8 @@ public class DownloadLevels { JOptionPane.showMessageDialog(null, "Alle " + data.missingLevels().size() + " Level wurden erfolgreich heruntergeladen.", "Download abgeschlossen", JOptionPane.INFORMATION_MESSAGE); main.dispose(); - System.out.println("main gui starten IN DOWNLOADLEVELS NICHT VERGESSEN HIER EINFÜGEN"); + MainGUI gui = new MainGUI(); + gui.build(); } diff --git a/src/data/FetchData.java b/src/data/FetchData.java index 0be79dc..dd91bb1 100644 --- a/src/data/FetchData.java +++ b/src/data/FetchData.java @@ -30,7 +30,7 @@ public class FetchData { } } } - } + } public ArrayList allLevels() { return levels; diff --git a/src/data/ManageFiles.java b/src/data/ManageFiles.java index 16ec12e..0d42f4b 100644 --- a/src/data/ManageFiles.java +++ b/src/data/ManageFiles.java @@ -4,6 +4,7 @@ import java.io.File; import java.io.IOException; import java.util.ArrayList; +import gui.MainGUI; import gui.MissingLevels; public class ManageFiles { @@ -36,6 +37,9 @@ public class ManageFiles { if(missing > 0) { gui.show(missinglevels, missing); + } else { + MainGUI gui = new MainGUI(); + gui.build(); } } diff --git a/src/filestructure/CreateFileStructure.java b/src/filestructure/CreateFileStructure.java index 32554dd..515d91d 100644 --- a/src/filestructure/CreateFileStructure.java +++ b/src/filestructure/CreateFileStructure.java @@ -9,7 +9,8 @@ public class CreateFileStructure { File file = new File("C:\\ExtremeDemonList\\levels"); if(!file.isDirectory()) { - file.mkdir(); + System.out.println("nein"); + file.mkdirs(); } } diff --git a/src/firstlaunch/FirstlaunchMain.java b/src/firstlaunch/FirstlaunchMain.java new file mode 100644 index 0000000..973d307 --- /dev/null +++ b/src/firstlaunch/FirstlaunchMain.java @@ -0,0 +1,9 @@ +package firstlaunch; + +public class FirstlaunchMain { + + public void main() { + + } + +} diff --git a/src/gui/MainGUI.java b/src/gui/MainGUI.java new file mode 100644 index 0000000..1716f08 --- /dev/null +++ b/src/gui/MainGUI.java @@ -0,0 +1,20 @@ +package gui; + +import javax.swing.JFrame; + +public class MainGUI { + + public void build() { + JFrame main = new JFrame(); + main.setSize(900, 700); + main.setLayout(null); + main.setResizable(false); + main.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + + + + + main.setVisible(true); + } + +} diff --git a/src/gui/MissingLevels.java b/src/gui/MissingLevels.java index fa512b0..77abae9 100644 --- a/src/gui/MissingLevels.java +++ b/src/gui/MissingLevels.java @@ -72,8 +72,9 @@ public class MissingLevels { no.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { - // haupt gui aufrufen - + main.dispose(); + MainGUI gui = new MainGUI(); + gui.build(); } });