From ccdb7f3fa9aa11be66aae1062bca84a0c473ad6a Mon Sep 17 00:00:00 2001 From: Kevin <104761532+Hasakev@users.noreply.github.com> Date: Mon, 11 Sep 2023 22:26:09 +1000 Subject: [PATCH] Minor changes to turret selection screen --- .../com/csse3200/game/screens/TurretSelectionScreen.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/core/src/main/com/csse3200/game/screens/TurretSelectionScreen.java b/source/core/src/main/com/csse3200/game/screens/TurretSelectionScreen.java index 17cd21319..e7857f4f9 100644 --- a/source/core/src/main/com/csse3200/game/screens/TurretSelectionScreen.java +++ b/source/core/src/main/com/csse3200/game/screens/TurretSelectionScreen.java @@ -58,11 +58,11 @@ public TurretSelectionScreen(GdxGame game) { introSprite = new Sprite(backgroundImage); introSprite.setSize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight()); - + // Add all turrets to turret list turretList = new ArrayList<>(); // Add turrets to the list turretList.addAll(Arrays.asList(TowerType.values())); - // Restrictions can be added to the arrays i.e. map == "Forest" && level == 1 + // Restrictions can be added to the arrays i.e. map == "Forest" && level == 1 using for loop Skin skin = new Skin(Gdx.files.internal("flat-earth/skin/flat-earth-ui.json")); @@ -111,7 +111,7 @@ public void clicked(InputEvent event, float x, float y) { // Turret is not selected, select it selectedTurrets.add(turret); turretsPicked.setText("Turrets picked: " + selectedTurrets.toString()); - logger.info(selectedTurrets.toString()); + //logger.info(selectedTurrets.toString()); // You can change the button appearance to indicate selection }