v1.1.0: switched the gold and energy in the currency indicator

This commit is contained in:
Evan Debenham 2021-11-16 14:45:27 -05:00
parent 5cab78e234
commit accc0bebac

View File

@ -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;
} else {
energy.y = bottom() - energy.height();
gold.x = x + (width - gold.width()) / 2;
if (energy.visible) {
gold.y = bottom() - gold.height()- gold.height() + 2;
} else {
gold.y = bottom() - gold.height();
}
}