mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
Support rendering card damage about p/t box
This commit is contained in:
@@ -513,6 +513,11 @@ public class CardRenderer {
|
|||||||
w = boxWidth;
|
w = boxWidth;
|
||||||
h = boxHeight;
|
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.fillRect(color, x, y, w, h);
|
||||||
g.drawRect(Utils.scaleMin(1), Color.BLACK, x, y, w, h);
|
g.drawRect(Utils.scaleMin(1), Color.BLACK, x, y, w, h);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user