mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
when card is token,do not display translation text .
This commit is contained in:
@@ -271,7 +271,9 @@ public class CardImageRenderer {
|
|||||||
g.drawImage(image, x + (w - iconSize) / 2, y + (h - iconSize) / 2, iconSize, iconSize);
|
g.drawImage(image, x + (w - iconSize) / 2, y + (h - iconSize) / 2, iconSize, iconSize);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
final String text = card.getText(state, CardTranslation.getTranslationTexts(state.getName(), ""));
|
boolean needTranslation = !card.isToken();
|
||||||
|
final String text = card.getText(state,
|
||||||
|
needTranslation ? CardTranslation.getTranslationTexts(state.getName(), "") : null);
|
||||||
if (StringUtils.isEmpty(text)) { return; }
|
if (StringUtils.isEmpty(text)) { return; }
|
||||||
|
|
||||||
float padding = TEXT_FONT.getCapHeight() * 0.75f;
|
float padding = TEXT_FONT.getCapHeight() * 0.75f;
|
||||||
|
|||||||
@@ -280,7 +280,8 @@ public class CardDetailUtil {
|
|||||||
area.append("\n");
|
area.append("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
String text = card.getText(state, CardTranslation.getTranslationTexts(state.getName(), ""));
|
boolean needTranslation = !card.isToken();
|
||||||
|
String text = card.getText(state, needTranslation ? CardTranslation.getTranslationTexts(state.getName(), "") : null);
|
||||||
|
|
||||||
// LEVEL [0-9]+-[0-9]+
|
// LEVEL [0-9]+-[0-9]+
|
||||||
// LEVEL [0-9]+\+
|
// LEVEL [0-9]+\+
|
||||||
|
|||||||
Reference in New Issue
Block a user