commit dff6dc0b38a64a557489d5df1a677f2cf43829ed
parent b150d3e46e015cd9edb3baa914966a91551465d5
Author: Friedel Schoen <[email protected]>
Date: Thu, 6 Oct 2022 02:16:48 +0200
fixing some git=cringe issues
Diffstat:
3 files changed, 29 insertions(+), 5 deletions(-)
diff --git a/settings.properties b/settings.properties
@@ -1,5 +1,5 @@
#Application Settings
-#Wed Oct 05 14:47:58 CEST 2022
+#Thu Oct 06 02:16:19 CEST 2022
fullscreen=false
screenHeight=480
screenWidth=680
diff --git a/src/main/java/nl/isygameclient/Application.java b/src/main/java/nl/isygameclient/Application.java
@@ -0,0 +1,27 @@
+package nl.isygameclient;
+
+import java.io.IOException;
+import javafx.fxml.FXMLLoader;
+import javafx.scene.Scene;
+import javafx.stage.Stage;
+import nl.isygameclient.util.SettingsHandler;
+
+public class Application extends javafx.application.Application {
+ @Override
+ public void start(Stage primaryStage) throws IOException {
+ FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("views/hello-view.fxml"));
+ Scene scene = new Scene(fxmlLoader.load(), SettingsHandler.getSettings().getScreenWidth(), SettingsHandler.getSettings().getScreenHeight());
+ primaryStage.setTitle(SettingsHandler.getSettings().getTitle());
+ primaryStage.setScene(scene);
+ primaryStage.setFullScreen(SettingsHandler.getSettings().isFullscreen());
+ primaryStage.show();
+ primaryStage.setOnCloseRequest((windowEvent) -> {
+ SettingsHandler.saveProperties();
+ });
+ }
+
+
+ public static void main(String[] args) {
+ launch();
+ }
+}
+\ No newline at end of file
diff --git a/src/main/java/nl/isygameclient/NetworkClient.java b/src/main/java/nl/isygameclient/NetworkClient.java
@@ -1,4 +0,0 @@
-package nl.isygameclient;
-
-public interface NetworkClient {
-}