Support rendering card damage about p/t box

This commit is contained in:
drdev
2014-06-01 04:56:06 +00:00
parent 0aefe88a7d
commit b8d29b992d

View File

@@ -513,6 +513,11 @@ public class CardRenderer {
w = boxWidth;
h = boxHeight;
//draw card damage about P/T box if needed
if (card.getDamage() > 0) {
g.drawOutlinedText(">" + card.getDamage() + "<", font, Color.RED, Color.WHITE, x, y - h + padding, w, h, false, HAlignment.CENTER, true);
}
g.fillRect(color, x, y, w, h);
g.drawRect(Utils.scaleMin(1), Color.BLACK, x, y, w, h);