Skip to content

Commit

Permalink
1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Faust committed Sep 23, 2022
1 parent 6bb9e61 commit cafba49
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,12 @@
<resource>
<directory>resources/</directory>
<includes>
<include>backgrounds/*</include>
<include>4k-generator.properties</include>
<include>*.exe</include>
<include>*.png</include>
<include>background2k.jpg</include>
<include>background4k.jpg</include>
<include>highscore-card-background-*.jpg</include>
<include>*.ttf</include>
<include>DOFTest/*</include>
<include>overlay.properties</include>
</includes>
Expand Down
51 changes: 51 additions & 0 deletions src/main/java/de/mephisto/vpin/extensions/FXTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
package de.mephisto.vpin.extensions;

import de.mephisto.vpin.extensions.resources.ResourceLoader;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.geometry.Rectangle2D;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.SceneAntialiasing;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.stage.Screen;
import javafx.stage.Stage;

public class FXTest extends Application {
private Stage stage;

public static void main(String[] args) {
launch(args);
}

@Override
public void start(Stage primaryStage) throws Exception {
this.stage = primaryStage;
Screen screen = Screen.getPrimary();

Rectangle2D bounds = screen.getVisualBounds();
stage.setX(bounds.getMinX());
stage.setY(bounds.getMinY());
Platform.setImplicitExit(true);


Image image = new Image(ResourceLoader.class.getResourceAsStream("splash.jpg"));
ImageView imageView = new ImageView(image);
imageView.setPreserveRatio(true);

Group root = new Group(imageView);
final Scene scene = new Scene(root, screen.getVisualBounds().getWidth(), screen.getVisualBounds().getHeight(), true, SceneAntialiasing.BALANCED);

stage.setScene(scene);
stage.setFullScreen(false);
stage.setAlwaysOnTop(true);
stage.setX(300);
stage.setWidth(700);
stage.setHeight(450);
stage.setY(300);
stage.setTitle("Highscore Overlay");
stage.getIcons().add(new Image(ResourceLoader.class.getResourceAsStream("logo.png")));
stage.show();
}
}
3 changes: 3 additions & 0 deletions src/main/java/de/mephisto/vpin/extensions/SuperMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ public static void main(String[] args) throws Exception {
if(args != null && args.length > 0 && args[0].contains("config")) {
new Splash();
}
else if(args != null && args.length > 0 && args[0].contains("test")) {
new FXTest().main(args);
}
else if(args != null && args.length > 0 && args[0].contains("overlay")) {
OverlayGenerator.main(args);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
public class Updater {
private final static Logger LOG = LoggerFactory.getLogger(Updater.class);

private final static String VERSION = "1.0.3";
private final static String VERSION = "1.0.4";
private final static String BASE_URL = "https://github.com/syd711/vpin-extensions/releases/download/%s/";
private final static String VERSION_PROPERTIES = "https://raw.githubusercontent.com/syd711/vpin-extensions/main/version.properties";

Expand Down
2 changes: 1 addition & 1 deletion version.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=1.0.3
version=1.0.4

0 comments on commit cafba49

Please sign in to comment.