|
|
|
@ -15,6 +15,7 @@ import javafx.scene.control.Label;
|
|
|
|
import javafx.scene.image.ImageView;
|
|
|
|
import javafx.scene.image.ImageView;
|
|
|
|
import javafx.scene.layout.AnchorPane;
|
|
|
|
import javafx.scene.layout.AnchorPane;
|
|
|
|
import javafx.scene.layout.GridPane;
|
|
|
|
import javafx.scene.layout.GridPane;
|
|
|
|
|
|
|
|
import javafx.scene.paint.PhongMaterial;
|
|
|
|
import javafx.scene.shape.MeshView;
|
|
|
|
import javafx.scene.shape.MeshView;
|
|
|
|
import mock.app.Event;
|
|
|
|
import mock.app.Event;
|
|
|
|
import network.Messages.Enums.RaceStatusEnum;
|
|
|
|
import network.Messages.Enums.RaceStatusEnum;
|
|
|
|
@ -144,6 +145,8 @@ public class InGameLobbyController extends Controller {
|
|
|
|
subjects.add(sea);
|
|
|
|
subjects.add(sea);
|
|
|
|
|
|
|
|
|
|
|
|
MeshView mesh = new MeshView(importer.getImport());
|
|
|
|
MeshView mesh = new MeshView(importer.getImport());
|
|
|
|
|
|
|
|
PhongMaterial boatColorMat = new PhongMaterial(boat.getColor());
|
|
|
|
|
|
|
|
mesh.setMaterial(boatColorMat);
|
|
|
|
Subject3D subject = new Subject3D(mesh,0);
|
|
|
|
Subject3D subject = new Subject3D(mesh,0);
|
|
|
|
subjects.add(subject);
|
|
|
|
subjects.add(subject);
|
|
|
|
|
|
|
|
|
|
|
|
@ -161,7 +164,7 @@ public class InGameLobbyController extends Controller {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
rotate.start();
|
|
|
|
rotate.start();
|
|
|
|
|
|
|
|
|
|
|
|
allPlayerLabels.get(count).setText("Player: " + boat.getSourceID());
|
|
|
|
allPlayerLabels.get(count).setText(boat.getName());
|
|
|
|
allPlayerLabels.get(count).toFront();
|
|
|
|
allPlayerLabels.get(count).toFront();
|
|
|
|
count += 1;
|
|
|
|
count += 1;
|
|
|
|
if (count > 2){
|
|
|
|
if (count > 2){
|
|
|
|
|