update translation, disable foil for battle cards

- todo move the draw method inside the card render method or use a general foil effect shader..
This commit is contained in:
Anthony Calosa
2023-04-19 09:20:34 +08:00
parent 1106bfeef2
commit 7dba1eff07
8 changed files with 18 additions and 13 deletions

View File

@@ -1360,6 +1360,11 @@ public class CardRenderer {
}
public static void drawFoilEffect(Graphics g, CardView card, float x, float y, float w, float h, boolean inZoomer) {
if (card.getCurrentState().isBattle())
return;
if (card.getAlternateState() != null && card.getCurrentState().isBattle())
return;
//todo add support for battle, better to move the render inside the draw method for card in the future or a general foil effect shader..
float new_x = x;
float new_y = y;
float new_w = w;