mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 09:48:02 +00:00
Merge branch 'newBranch' into 'master'
Fix leftsplit manacost display See merge request core-developers/forge!3290
This commit is contained in:
@@ -462,7 +462,7 @@ public class CardPanel extends SkinnedPanel implements CardContainer, IDisposabl
|
||||
PaperCard pc = StaticData.instance().getCommonCards().getCard(card.getName());
|
||||
int ofs = pc != null && Card.getCardForUi(pc).hasKeyword(Keyword.AFTERMATH) ? -12 : 12;
|
||||
|
||||
drawManaCost(g, card.getCurrentState().getManaCost(), ofs);
|
||||
drawManaCost(g, card.getLeftSplitState().getManaCost(), ofs);
|
||||
drawManaCost(g, card.getAlternateState().getManaCost(), -ofs);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -370,6 +370,7 @@ public class CardRenderer {
|
||||
ManaCost mainManaCost = card.getCurrentState().getManaCost();
|
||||
if (card.isSplitCard()) {
|
||||
//handle rendering both parts of split card
|
||||
mainManaCost = card.getLeftSplitState().getManaCost();
|
||||
ManaCost otherManaCost = card.getAlternateState().getManaCost();
|
||||
manaCostWidth = CardFaceSymbols.getWidth(otherManaCost, MANA_SYMBOL_SIZE) + MANA_COST_PADDING;
|
||||
CardFaceSymbols.drawManaCost(g, otherManaCost, x + w - manaCostWidth + MANA_COST_PADDING, y, MANA_SYMBOL_SIZE);
|
||||
|
||||
Reference in New Issue
Block a user