Small Tweaks
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user