updated ChatView.fxml and it's corresponding controller to new design
added LobbyListView and corresponding controller class skeleton
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
package ch.unibas.dmi.dbis.cs108.multiplayer.client.gui;
|
||||
|
||||
public class LobbyListView {
|
||||
|
||||
}
|
||||
@@ -84,7 +84,7 @@ public class ChatApp extends Application {
|
||||
public void start(Stage primaryStage) throws Exception {
|
||||
this.setcModel(clientModel);
|
||||
URL resource = ChatApp.class.getResource(
|
||||
"splitPaneChatView.fxml");
|
||||
"ChatView.fxml");
|
||||
if (resource == null) {
|
||||
System.out.println("File wasnt found");
|
||||
}
|
||||
@@ -92,7 +92,7 @@ public class ChatApp extends Application {
|
||||
try {
|
||||
Parent root = FXMLLoader.load(
|
||||
Objects.requireNonNull(ChatApp.class.getResource(
|
||||
"splitPaneChatView.fxml")));
|
||||
"ChatView.fxml")));
|
||||
// TODO bin chatController.getChatPaneRoot() border to root border for rezising
|
||||
Scene scene = new Scene(root);
|
||||
scene.setRoot(root);
|
||||
|
||||
@@ -22,6 +22,7 @@ import javafx.scene.control.SplitPane;
|
||||
import javafx.scene.control.TextArea;
|
||||
import javafx.scene.control.TextField;
|
||||
import javafx.scene.layout.Background;
|
||||
import javafx.scene.layout.Pane;
|
||||
import javafx.scene.layout.VBox;
|
||||
import javafx.scene.paint.Color;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
@@ -33,7 +34,9 @@ public class ChatController implements Initializable {
|
||||
public static final BudaLogConfig l = new BudaLogConfig(LOGGER);
|
||||
|
||||
@FXML
|
||||
private SplitPane chatPaneRoot;
|
||||
private VBox vBoxServerMessage;
|
||||
@FXML
|
||||
private Pane chatPaneRoot;
|
||||
@FXML
|
||||
private VBox vBoxChatMessages;
|
||||
@FXML
|
||||
@@ -41,7 +44,7 @@ public class ChatController implements Initializable {
|
||||
@FXML
|
||||
private TextField whisperTargetSelectField;
|
||||
@FXML
|
||||
private TextArea chatMsgField;
|
||||
private TextField chatMsgField;
|
||||
|
||||
private static ClientModel client;
|
||||
|
||||
@@ -171,7 +174,7 @@ public class ChatController implements Initializable {
|
||||
this.client = client;
|
||||
}
|
||||
|
||||
public SplitPane getChatPaneRoot() {
|
||||
public Pane getChatPaneRoot() {
|
||||
return chatPaneRoot;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user