From ff68ecf3833049ecc213b764bd819a31350b78ec Mon Sep 17 00:00:00 2001 From: Nawal Date: Mon, 11 Sep 2023 13:57:11 +1000 Subject: [PATCH] Changed display positioning to get rid of the overlap --- .../com/csse3200/game/components/gamearea/CurrencyDisplay.java | 2 +- .../csse3200/game/components/gamearea/EngineerCountDisplay.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/src/main/com/csse3200/game/components/gamearea/CurrencyDisplay.java b/source/core/src/main/com/csse3200/game/components/gamearea/CurrencyDisplay.java index 1071d486c..dbc3042b8 100644 --- a/source/core/src/main/com/csse3200/game/components/gamearea/CurrencyDisplay.java +++ b/source/core/src/main/com/csse3200/game/components/gamearea/CurrencyDisplay.java @@ -48,7 +48,7 @@ private void addActors() { table = new Table(); table.top().left(); table.setFillParent(true); - table.padTop(100f).padLeft(20f); + table.padTop(140f).padLeft(20f); scrapsTb = createButton("images/economy/scrapBanner.png", ServiceLocator.getCurrencyService().getScrap().getAmount()); diff --git a/source/core/src/main/com/csse3200/game/components/gamearea/EngineerCountDisplay.java b/source/core/src/main/com/csse3200/game/components/gamearea/EngineerCountDisplay.java index a1094f538..f6a387245 100644 --- a/source/core/src/main/com/csse3200/game/components/gamearea/EngineerCountDisplay.java +++ b/source/core/src/main/com/csse3200/game/components/gamearea/EngineerCountDisplay.java @@ -44,7 +44,7 @@ private void addActors() { engineerTb.setDisabled(true); engineerTb.getLabel().setAlignment(Align.right); - engineerTb.pad(0, 0, 0, 70); + engineerTb.pad(0, 0, 0, 50); engineerTb.setTransform(true); table.add(engineerTb).width(engineerTb.getWidth() * 0.5f).height(engineerTb.getHeight() * 0.5f);