mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Support rendering card damage about p/t box
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user