SeaSurface files have been added to display the surface in the lobby. Surface is now drawn in the lobby
This commit is contained in:
@@ -9,16 +9,18 @@ import javafx.collections.ObservableList;
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.geometry.Insets;
|
||||
import javafx.scene.Node;
|
||||
import javafx.scene.control.*;
|
||||
import javafx.scene.control.Alert;
|
||||
import javafx.scene.control.ButtonType;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.image.ImageView;
|
||||
import javafx.scene.layout.AnchorPane;
|
||||
import javafx.scene.layout.GridPane;
|
||||
import javafx.scene.shape.Box;
|
||||
import javafx.scene.shape.MeshView;
|
||||
import mock.app.Event;
|
||||
import network.Messages.Enums.RaceStatusEnum;
|
||||
import network.Messages.Enums.RequestToJoinEnum;
|
||||
import visualiser.gameController.ControllerClient;
|
||||
import visualiser.layout.SeaSurface;
|
||||
import visualiser.layout.Subject3D;
|
||||
import visualiser.layout.View3D;
|
||||
import visualiser.model.VisualiserBoat;
|
||||
@@ -101,10 +103,8 @@ public class InGameLobbyController extends Controller {
|
||||
}
|
||||
|
||||
private void resetLobby(){
|
||||
int count = 0;
|
||||
for (Label label: allPlayerLabels){
|
||||
label.setText("Player " + count + 1);
|
||||
count ++;
|
||||
label.setText("No Player");
|
||||
}
|
||||
List<Node> nodeCopy = new ArrayList(playerContainer.getChildren());
|
||||
for (Node node: nodeCopy){
|
||||
@@ -133,6 +133,9 @@ public class InGameLobbyController extends Controller {
|
||||
playerContainer.add(playerBoatToSet, (count % 3) , row);
|
||||
playerContainer.setMargin(playerBoatToSet, new Insets(10, 10, 10, 10));
|
||||
|
||||
SeaSurface sea = new SeaSurface(750, 200, 250, 0, 210);
|
||||
subjects.add(sea.getSurface());
|
||||
|
||||
MeshView mesh = new MeshView(importer.getImport());
|
||||
Subject3D subject = new Subject3D(mesh);
|
||||
subjects.add(subject);
|
||||
|
||||
Reference in New Issue
Block a user