update Gold sprite space

This commit is contained in:
Anthony Calosa
2023-02-26 08:21:15 +08:00
parent 04c769a163
commit 0663c43599

View File

@@ -447,7 +447,7 @@ public class Controls {
} }
else { else {
currencyAmount = Current.player().getGold(); currencyAmount = Current.player().getGold();
currencyIcon = "[+Gold]"; currencyIcon = "[+Gold] "; //fix space since gold sprite is wider than a single glyph
Current.player().onGoldChange(() -> update(AdventurePlayer.current().getGold(),true)); Current.player().onGoldChange(() -> update(AdventurePlayer.current().getGold(),true));
} }
label.setText(getLabelText(currencyAmount)); label.setText(getLabelText(currencyAmount));