Update TaipanShopGUI.java
made it so that certain buttons are invisible in certain locations.
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user