From 4db1ecd19183e59d3a58f2a58ab736423304cb98 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Fri, 5 Aug 2022 22:53:33 +0200 Subject: [PATCH] Updated view. --- .../aos2_launcher/MainViewController.java | 5 ++ launcher/src/main/resources/main_view.fxml | 60 +++++++++++++++---- 2 files changed, 55 insertions(+), 10 deletions(-) diff --git a/launcher/src/main/java/nl/andrewl/aos2_launcher/MainViewController.java b/launcher/src/main/java/nl/andrewl/aos2_launcher/MainViewController.java index c391b7f..92e8338 100644 --- a/launcher/src/main/java/nl/andrewl/aos2_launcher/MainViewController.java +++ b/launcher/src/main/java/nl/andrewl/aos2_launcher/MainViewController.java @@ -1,5 +1,7 @@ package nl.andrewl.aos2_launcher; +import javafx.application.Platform; +import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.scene.layout.TilePane; @@ -8,4 +10,7 @@ public class MainViewController { public TilePane profilesTilePane; + public void onExit(ActionEvent actionEvent) { + Platform.exit(); + } } diff --git a/launcher/src/main/resources/main_view.fxml b/launcher/src/main/resources/main_view.fxml index 4940176..7566a20 100644 --- a/launcher/src/main/resources/main_view.fxml +++ b/launcher/src/main/resources/main_view.fxml @@ -1,24 +1,64 @@ + - + - + - + - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +