diff --git a/bin/.gitignore b/bin/.gitignore index 1d22fb1..b42b859 100644 --- a/bin/.gitignore +++ b/bin/.gitignore @@ -1,3 +1 @@ /application/ -/datatypes/ -/cloudControllerInstances/ diff --git a/bin/application/MainWindowController$12.class b/bin/application/MainWindowController$12.class index 99c134b..01521d7 100644 Binary files a/bin/application/MainWindowController$12.class and b/bin/application/MainWindowController$12.class differ diff --git a/bin/application/MainWindowController.class b/bin/application/MainWindowController.class index 8095115..512c9ee 100644 Binary files a/bin/application/MainWindowController.class and b/bin/application/MainWindowController.class differ diff --git a/src/application/MainWindowController.java b/src/application/MainWindowController.java index a0303ae..fb4f6ef 100644 --- a/src/application/MainWindowController.java +++ b/src/application/MainWindowController.java @@ -229,7 +229,7 @@ public class MainWindowController { private String selectedGameTitle; private String id; private String version = "0.1.7"; - private String buildNumber = "041"; + private String buildNumber = "043"; private String versionName = "Throwback Galaxy"; private int xPos = -200; private int yPos = 17; @@ -978,81 +978,7 @@ public class MainWindowController { Image coverImage = new Image(new File(coverPath).toURI().toString()); generatePosition(); -// LOGGER.info("add " + getxPos()); //TODO debug - -// VBox.setLayoutX(getxPos()); -// VBox.setLayoutY(getyPos()); -// VBox.getChildren().addAll(gameTitleLabel,gameBtn); -// gameTitleLabel.setMaxWidth(200); -// gameTitleLabel.setPadding(new Insets(0,0,0,8)); -// gameTitleLabel.setFont(Font.font("System", FontWeight.BOLD, 14)); -// imageView.setImage(coverImage); -// imageView.setFitHeight(300); -// imageView.setFitWidth(200); -// gameBtn.setGraphic(imageView); -// gameBtn.setContextMenu(gameContextMenu); -// gameBtn.setStyle("-fx-effect: dropshadow(three-pass-box, rgba(0,0,0,0.8), 10, 0, 0, 3); "); -// gameBtn.addEventHandler(MouseEvent.MOUSE_CLICKED, new EventHandler() { -// @Override -// public void handle(MouseEvent event) { -// LOGGER.info("selected: "+title+"; ID: "+titleID); -// //getting the selected game index by comparing event.getSource() with games.get(i).getButton() -// for(int i=0; i 60 minutes, formate is "x hours x minutes" (xh x min), else only minutes are showed -// if(Integer.parseInt(dbController.getTotalPlaytime(titleID)) > 60){ -// int hoursPlayed = (int) Math.floor(Integer.parseInt(dbController.getTotalPlaytime(titleID))/60); -// int minutesPlayed = Integer.parseInt(dbController.getTotalPlaytime(titleID))-60*hoursPlayed; -// totalPlaytimeBtn.setText(hoursPlayed+" h "+minutesPlayed+" min"); -// }else{ -// totalPlaytimeBtn.setText(dbController.getTotalPlaytime(titleID)+ " min"); -// } -// -// if (!playTrue) { -// playBtnSlideIn(); -// } -// if (menuTrue) { -// sideMenuSlideOut(); -// } -// -// } -// }); -// games.add(new UIROMDataType(VBox, gameTitleLabel, gameBtn, imageView, titleID, romPath)); - - //THIS IS TESTING AREA!!!! + UIROMDataType uiROMElement = new UIROMDataType(VBox, gameTitleLabel, gameBtn, imageView, titleID, romPath); uiROMElement.getLabel().setText(title);