Mobile: Added oracle translation to front card

This commit is contained in:
Peter
2019-07-28 14:34:29 +02:00
parent 6d126acd7c
commit b2562cb89c
2 changed files with 3 additions and 3 deletions

View File

@@ -260,7 +260,7 @@ public class CardImageRenderer {
g.drawImage(image, x + (w - iconSize) / 2, y + (h - iconSize) / 2, iconSize, iconSize);
}
else {
final String text = card.getText(state);
final String text = CardTranslation.getTranslatedOracle(card.getName(), card.getText(state));
if (StringUtils.isEmpty(text)) { return; }
float padding = TEXT_FONT.getCapHeight() * 0.75f;

View File

@@ -254,7 +254,7 @@ public class CardRenderer {
state.getLoyalty(), count, suffix, x, y, w, h, compactMode);
}
else { //if fake card, just draw card name centered
String name = state.getName();
String name = CardTranslation.getTranslatedName(state.getName());
if (count > 0) { //preface name with count if applicable
name = count + " " + name;
}
@@ -316,7 +316,7 @@ public class CardRenderer {
CardFaceSymbols.drawManaCost(g, mainManaCost, x + w - manaCostWidth, y, MANA_SYMBOL_SIZE);
x += cardArtWidth;
String name = card.getCurrentState().getName();
String name = CardTranslation.getTranslatedName(card.getCurrentState().getName());
if (count > 0) { //preface name with count if applicable
name = count + " " + name;
}