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