Update TaipanShopGUI.java

fixed shop prices not changing
This commit is contained in:
Vikramb987
2019-03-10 20:49:45 -06:00
committed by GitHub
parent 3aa6ad619d
commit 01ee9b2600

View File

@@ -370,7 +370,6 @@ public class TaipanShopGUI {
} }
public Stage initializeShop(Stage stage){ public Stage initializeShop(Stage stage){
updateStage();
Font size14 = new Font(14.0); Font size14 = new Font(14.0);
Rectangle dialogueRectangle = new Rectangle(); Rectangle dialogueRectangle = new Rectangle();
dialogueRectangle.setFill(javafx.scene.paint.Color.WHITE); dialogueRectangle.setFill(javafx.scene.paint.Color.WHITE);
@@ -754,6 +753,11 @@ public class TaipanShopGUI {
stage.setTitle("Shop"); stage.setTitle("Shop");
stage.setResizable(false); stage.setResizable(false);
stage.setScene(root); stage.setScene(root);
updatePrices();
defaultTextOut();
updateStage();
return stage; return stage;
} }