Made it so you can go inbetween screens by pressing enter, allowing for you to speed through the game without pressing buttons.

This commit is contained in:
2019-03-22 23:01:31 -06:00
parent 55ff34ef9b
commit 0bedf3e182
6 changed files with 32 additions and 15 deletions

View File

@@ -1,5 +1,6 @@
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
@@ -60,7 +61,7 @@ public class BankGUI extends Player{
hbx1.getChildren().add(b1);
hbx1.getChildren().add(b2);
hbx1.getChildren().add(b3);
hbx1.setPadding(new Insets(0,0,20,0));
brdr1.setBottom(hbx1);
/**
@@ -81,6 +82,7 @@ public class BankGUI extends Player{
vbx1.getChildren().add(l2);
vbx1.getChildren().add(l4);
vbx1.getChildren().add(l5);
vbx1.setPadding(new Insets(20,0,0,0));
brdr1.setTop(vbx1);
/**