Merge pull request #4559 from spjspj/master

Zen lands slightly offcenter
This commit is contained in:
spjspj 2018-02-28 23:50:10 +10:00 committed by GitHub
commit d6910897e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 23 deletions

View file

@ -124,7 +124,6 @@ public final class CardRendererUtils {
g.drawRect(x + bevel, y, w - 2 * bevel, h - 1); g.drawRect(x + bevel, y, w - 2 * bevel, h - 1);
g.drawRect(x + 1 + bevel, y + 1, w - 2 * bevel - 2, h - 3); g.drawRect(x + 1 + bevel, y + 1, w - 2 * bevel - 2, h - 3);
g.setPaint(fill); g.setPaint(fill);
g.setPaint(fill);
g.setColor(abitbrighter(g.getColor())); g.setColor(abitbrighter(g.getColor()));
g.drawLine(x + 1 + bevel, y + 1, x + 1 + bevel + w - 2 * bevel - 2, y + 1); g.drawLine(x + 1 + bevel, y + 1, x + 1 + bevel + w - 2 * bevel - 2, y + 1);
g.setPaint(fill); g.setPaint(fill);

View file

@ -525,7 +525,7 @@ public class ModernCardRenderer extends CardRenderer {
} else { } else {
int x = totalContentInset; int x = totalContentInset;
int y = typeLineY + boxHeight + (cardHeight - typeLineY - boxHeight - 4 - borderWidth * 3) / 2 - contentInset; int y = typeLineY + boxHeight + (cardHeight - typeLineY - boxHeight - 4 - borderWidth * 3) / 2 - contentInset;
int w = contentWidth - 2; int w = contentWidth;
int h = boxHeight - 4; int h = boxHeight - 4;
CardRendererUtils.drawZendikarLandBox(g, CardRendererUtils.drawZendikarLandBox(g,
@ -533,7 +533,7 @@ public class ModernCardRenderer extends CardRenderer {
contentInset, contentInset,
borderPaint, boxColor); borderPaint, boxColor);
drawTypeLine(g, getCardSuperTypeLine(), drawTypeLine(g, getCardSuperTypeLine(),
totalContentInset + 2, typeLineY + boxHeight + (cardHeight - typeLineY - boxHeight - 4 - borderWidth * 3) / 2 - contentInset, totalContentInset + contentInset, typeLineY + boxHeight + (cardHeight - typeLineY - boxHeight - 4 - borderWidth * 3) / 2 - contentInset,
contentWidth / 2 - boxHeight, boxHeight - 4, false); contentWidth / 2 - boxHeight, boxHeight - 4, false);
drawTypeLine(g, getCardSubTypeLine(), drawTypeLine(g, getCardSubTypeLine(),
totalContentInset + 4 * contentWidth / 7 + boxHeight, typeLineY + boxHeight + (cardHeight - typeLineY - boxHeight - 4 - borderWidth * 3) / 2 - contentInset, totalContentInset + 4 * contentWidth / 7 + boxHeight, typeLineY + boxHeight + (cardHeight - typeLineY - boxHeight - 4 - borderWidth * 3) / 2 - contentInset,
@ -969,7 +969,8 @@ public class ModernCardRenderer extends CardRenderer {
} else // Big circle in the middle for Zendikar lands } else // Big circle in the middle for Zendikar lands
{ {
if (allRules.size() == 1) { if (allRules.size() == 1) {
drawBasicManaSymbol(g, x + w / 2 - h - h / 8, y - 3 * h / 4, 9 * h / 4, 9 * h / 4, ((TextboxBasicManaRule) allRules.get(0)).getBasicManaSymbol()); // Size of mana symbol = 9/4 * h, 3/4h above line
drawBasicManaSymbol(g, x + w / 2 - 9 * h / 8 + 1, y - 3 * h / 4, 9 * h / 4, 9 * h / 4, ((TextboxBasicManaRule) allRules.get(0)).getBasicManaSymbol());
return; return;
} else { } else {
if (allRules.size() > 1) { if (allRules.size() > 1) {