diff --git a/d4dj_rankTracker.jar b/d4dj_rankTracker.jar index 3231b44..796814a 100644 Binary files a/d4dj_rankTracker.jar and b/d4dj_rankTracker.jar differ diff --git a/src/main/java/d4dj/d4dj/App.java b/src/main/java/d4dj/d4dj/App.java index f35f88f..82d18f6 100644 --- a/src/main/java/d4dj/d4dj/App.java +++ b/src/main/java/d4dj/d4dj/App.java @@ -101,53 +101,59 @@ class SubmitThread implements Runnable{ } public class App { - public static Image paragraph,paragraph2,paragraph3; - final static int EVENT = 13; + //public static Image paragraph,paragraph2,paragraph3; + final static int EVENT = 14; public static int[] lastScores = new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; public static int[] lastLowerTierScores = new int[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; public static void main( String[] args ) throws IOException { Rectangle[] cropPoints1 = { - new Rectangle(295,164,200,26), + new Rectangle(295,163,200,26), new Rectangle(295,240,200,26), new Rectangle(295,318,200,26), new Rectangle(295,396,200,26), - new Rectangle(295,474,200,26), - new Rectangle(295,551,200,26), + new Rectangle(295,473,200,26), + new Rectangle(295,550,200,26), new Rectangle(295,628,200,26), new Rectangle(295,705,200,26), - new Rectangle(295,783,200,26), + new Rectangle(295,781,200,26), }; Rectangle[] cropPoints2 = { - new Rectangle(295,0,200,26), + new Rectangle(295,-1,200,26), new Rectangle(295,77,200,26) }; Rectangle[] cropPoints3 = { new Rectangle(295,183,200,26), new Rectangle(295,259,200,26), - new Rectangle(295,338,200,26), + new Rectangle(295,337,200,26), new Rectangle(295,415,200,26), - new Rectangle(295,493,200,26), - new Rectangle(295,570,200,26), + new Rectangle(295,492,200,26), + new Rectangle(295,569,200,26), new Rectangle(295,647,200,26), new Rectangle(295,724,200,26), - new Rectangle(295,802,200,26) + new Rectangle(295,801,200,26) }; + int lastCount=0; + File folder = new File("Screenshots"); File[] list2 = folder.listFiles(); do { try { - Thread.sleep(10000); + lastCount=list2.length; + Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } list2 = folder.listFiles(); - } while (list2.length%5!=0); + } while (list2.length!=lastCount); for (File fff : list2) { fff.delete(); } + /*paragraph = ImageIO.read(new File("paragraph.png")); + paragraph2 = ImageIO.read(new File("paragraph2.png")); + paragraph3 = ImageIO.read(new File("paragraph3.png"));*/ while (true) { File f = new File("Screenshots"); if (f.listFiles().length==5) { @@ -162,16 +168,13 @@ public class App Image leaderboard3 = ImageIO.read(list[2]); Image leaderboard4 = ImageIO.read(list[3]); Image leaderboard5 = ImageIO.read(list[4]); - paragraph = ImageIO.read(new File("paragraph.png")); - paragraph2 = ImageIO.read(new File("paragraph2.png")); - paragraph3 = ImageIO.read(new File("paragraph3.png")); - BufferedImage cropped1 = new BufferedImage(360,26*114,BufferedImage.TYPE_INT_ARGB); + BufferedImage cropped1 = new BufferedImage(870,42*48,BufferedImage.TYPE_INT_ARGB); Graphics2D g = cropped1.createGraphics(); //For comments: down by 40, width is 340. - for (int i=0;i20) { - //See if this score is already in list. - int thisScore = Integer.parseInt(ss); - boolean found=false; - for (int i=0;i20) { + //See if this score is already in list. + int thisScore = Integer.parseInt(ss); + boolean found=false; + for (int i=0;ii)?names.get(i):""; System.out.println(ranks[i]+"-"+name+": "+scores.get(i)); + new Thread( new SubmitThread(name,desc,scores.get(i),EVENT,ranks[i])) .start(); diff --git a/target/classes/d4dj/d4dj/App.class b/target/classes/d4dj/d4dj/App.class index a3a44c1..0fecc30 100644 Binary files a/target/classes/d4dj/d4dj/App.class and b/target/classes/d4dj/d4dj/App.class differ diff --git a/testing_leaderboardnames.png b/testing_leaderboardnames.png index 7aa2437..d08ae6c 100644 Binary files a/testing_leaderboardnames.png and b/testing_leaderboardnames.png differ