From 66aec433270314e7a2cbc740a70179d48a06a294 Mon Sep 17 00:00:00 2001 From: Tilman Holube Date: Thu, 26 Oct 2023 17:08:54 +0200 Subject: [PATCH] main menu corrections --- .../client/controller/MainMenuController.java | 20 +++++++++++++++++++ client/src/main/resources/fxml/main.fxml | 12 +++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/client/src/main/java/de/schlunzis/client/controller/MainMenuController.java b/client/src/main/java/de/schlunzis/client/controller/MainMenuController.java index 603c9115..e4a49525 100644 --- a/client/src/main/java/de/schlunzis/client/controller/MainMenuController.java +++ b/client/src/main/java/de/schlunzis/client/controller/MainMenuController.java @@ -1,7 +1,9 @@ package de.schlunzis.client.controller; import com.google.common.eventbus.EventBus; +import javafx.event.ActionEvent; import javafx.fxml.FXML; +import javafx.scene.control.ListView; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Component; @@ -11,6 +13,9 @@ public class MainMenuController { private final EventBus eventBus; + @FXML + private ListView lobbiesListView; // TODO implement + public MainMenuController(EventBus eventBus) { this.eventBus = eventBus; eventBus.register(this); @@ -22,4 +27,19 @@ private void logout() { // TODO implement, see issue } + @FXML + private void settings(ActionEvent actionEvent) { + // TODO implement + } + + @FXML + private void joinLobby(ActionEvent actionEvent) { + // TODO implement + } + + @FXML + private void createLobby(ActionEvent actionEvent) { + // TODO implement + } + } diff --git a/client/src/main/resources/fxml/main.fxml b/client/src/main/resources/fxml/main.fxml index 00143dd7..3b3da2ab 100644 --- a/client/src/main/resources/fxml/main.fxml +++ b/client/src/main/resources/fxml/main.fxml @@ -1,6 +1,6 @@ - +