Update TaipanShopGUI.java

made it so that certain buttons are invisible in certain locations.
This commit is contained in:
Vikramb987
2019-03-10 21:12:26 -06:00
committed by GitHub
parent 1d5e5aa706
commit 13f30b681a

View File

@@ -491,7 +491,7 @@ public class TaipanShopGUI {
bankButton.setOnAction(new EventHandler<ActionEvent>() { bankButton.setOnAction(new EventHandler<ActionEvent>() {
@Override @Override
public void handle(ActionEvent event) { public void handle(ActionEvent event) {
bankGUI bank = new bankGUI(player); bankGUI bank = new bankGUI();
bank.initializeBank(stage); bank.initializeBank(stage);
stage.show(); stage.show();
} }
@@ -520,7 +520,7 @@ public class TaipanShopGUI {
loanButton.setOnAction(new EventHandler<ActionEvent>() { loanButton.setOnAction(new EventHandler<ActionEvent>() {
@Override @Override
public void handle(ActionEvent event) { public void handle(ActionEvent event) {
loanSharkGUI loan = new loanSharkGUI(player); loanSharkGUI loan = new loanSharkGUI();
loan.initializeLoanShark(stage); loan.initializeLoanShark(stage);
stage.show(); stage.show();
} }
@@ -754,6 +754,7 @@ public class TaipanShopGUI {
stage.setResizable(false); stage.setResizable(false);
stage.setScene(root); stage.setScene(root);
buttonSetup("reset");
updatePrices(); updatePrices();
defaultTextOut(); defaultTextOut();
updateStage(); updateStage();