Fix: changes to UI
This commit is contained in:
@@ -11,8 +11,7 @@ import java.util.List;
|
||||
|
||||
public class MainFXMLController {
|
||||
|
||||
@FXML
|
||||
private HBox board;
|
||||
@FXML private HBox board;
|
||||
@FXML private HBox upperList;
|
||||
@FXML private HBox lowerList;
|
||||
@FXML private HBox myHand;
|
||||
@@ -29,19 +28,16 @@ public class MainFXMLController {
|
||||
|
||||
for (TribeCard card : model.getUpperListTribeCards()) {
|
||||
ImageView view = new ImageView(placeholder);
|
||||
view.setFitWidth(80);
|
||||
view.setFitHeight(120);
|
||||
view.setFitHeight(250);
|
||||
view.setPreserveRatio(true);
|
||||
upperList.getChildren().add(view);
|
||||
}
|
||||
|
||||
for (TribeCard card : model.getLowerListTribeCards()) {
|
||||
ImageView view = new ImageView(placeholder);
|
||||
view.setFitWidth(80);
|
||||
view.setFitHeight(120);
|
||||
view.setFitHeight(250);
|
||||
view.setPreserveRatio(true);
|
||||
lowerList.getChildren().add(view);
|
||||
}
|
||||
System.out.println("AGGIORNO GAGAGAGA");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ public class MainView {
|
||||
FXMLLoader loader = new FXMLLoader(
|
||||
getClass().getResource("/GUIScene/main.fxml")
|
||||
);
|
||||
scene = new Scene(loader.load(), 350, 380);
|
||||
scene = new Scene(loader.load(), 1920, 1080);
|
||||
fxmlController = loader.getController();
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException("Impossibile caricare login.fxml", e);
|
||||
|
||||
Reference in New Issue
Block a user