Small Tweaks

This commit is contained in:
2020-07-20 13:30:59 +02:00
parent fe157519a7
commit e0cfb2703b

View File

@@ -42,7 +42,6 @@ public class JFXVisual extends Application implements Visual {
private static Scene gameScene;
private static GameController gameController;
private static GridPane storageGrid;
private static JFXStorageSlot[][] storageSlots;
private static int width, height, depth;
@@ -117,6 +116,7 @@ public class JFXVisual extends Application implements Visual {
gameController.balanceButton.setOnAction(event -> {
if (balanceStage != null && balanceStage.isShowing()) {
balanceStage.toFront();
return;
}
@@ -205,7 +205,7 @@ public class JFXVisual extends Application implements Visual {
}
private void prepareStorageGrid() {
storageGrid = new GridPane();
GridPane storageGrid = new GridPane();
storageGrid.setId("storage-grid");
storageGrid.setPadding(new Insets(5D));
storageGrid.setMaxSize(Double.MAX_VALUE, Double.MAX_VALUE);