Fix alignment of the mana subtitle in other translations

This commit is contained in:
Sollace 2023-08-28 21:31:23 +01:00
parent c2c16d575c
commit ca937a671c
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -141,7 +141,8 @@ public class SpellbookProfilePageContent implements SpellbookChapterList.Content
String manaString = (int)reserves.getMana().get() + "/" + (int)reserves.getMana().getMax();
y = 15;
context.drawText(font, Text.translatable("gui.unicopia.spellbook.page.mana"), -font.getWidth("Mana") / 2, y, SpellbookScreen.TITLE_COLOR, false);
Text manaLabel = Text.translatable("gui.unicopia.spellbook.page.mana");
context.drawText(font, manaLabel, -font.getWidth(manaLabel) / 2, y, SpellbookScreen.TITLE_COLOR, false);
context.drawText(font, manaString, -font.getWidth(manaString) / 2, y += font.fontHeight, SpellbookScreen.TITLE_COLOR, false);
Text levelString = Text.literal(Romanizer.romanize(currentLevel + 1));