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:
@@ -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;
|
||||
@@ -61,9 +62,11 @@ public class LoanSharkGUI 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);
|
||||
|
||||
|
||||
//Creating the TextField at the center of the screen
|
||||
hbx2.setAlignment(Pos.CENTER);
|
||||
hbx2.getChildren().add(l3);
|
||||
@@ -76,6 +79,7 @@ public class LoanSharkGUI 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);
|
||||
|
||||
// Set the event handler when the deposit button is clicked
|
||||
|
||||
Reference in New Issue
Block a user