From accc0bebac52572fe1c8d499ab2cf01f118e068e Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 16 Nov 2021 14:45:27 -0500 Subject: [PATCH] v1.1.0: switched the gold and energy in the currency indicator --- .../shatteredpixeldungeon/ui/CurrencyIndicator.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/CurrencyIndicator.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/CurrencyIndicator.java index 1ec0fa5c3..5e5ff2764 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/CurrencyIndicator.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/CurrencyIndicator.java @@ -53,14 +53,14 @@ public class CurrencyIndicator extends Component { @Override protected void layout() { - gold.x = x + (width - gold.width()) / 2; - gold.y = bottom() - gold.height(); - energy.x = x + (width - energy.width()) / 2; - if (gold.visible) { - energy.y = bottom() - energy.height() - gold.height() + 2; + energy.y = bottom() - energy.height(); + + gold.x = x + (width - gold.width()) / 2; + if (energy.visible) { + gold.y = bottom() - gold.height()- gold.height() + 2; } else { - energy.y = bottom() - energy.height(); + gold.y = bottom() - gold.height(); } }