mirror of
https://github.com/correl/mage.git
synced 2024-11-29 03:00:12 +00:00
* GUI: fixed wrong card icons drawing in choose triggers/piles dialog (#8225);
This commit is contained in:
parent
46081d9185
commit
61288b6439
1 changed files with 16 additions and 8 deletions
|
@ -186,14 +186,22 @@ public class CardArea extends JPanel implements CardEventProducer {
|
||||||
card = tmp;
|
card = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
CardIconRenderSettings customIconsRender = new CardIconRenderSettings()
|
CardIconRenderSettings currentIconsRender;
|
||||||
.withDebugMode(true)
|
if (this.customRenderMode >= 0) {
|
||||||
.withCustomPosition(customCardIconPosition)
|
// debug
|
||||||
.withCustomOrder(customCardIconOrder)
|
currentIconsRender = new CardIconRenderSettings()
|
||||||
.withCustomColor(customCardIconColor)
|
.withDebugMode(true)
|
||||||
.withCustomMaxVisibleCount(customCardIconsMaxVisibleCount)
|
.withCustomPosition(customCardIconPosition)
|
||||||
.withCustomIconSizePercent(30);
|
.withCustomOrder(customCardIconOrder)
|
||||||
MageCard cardPanel = Plugins.instance.getMageCard(card, bigCard, customIconsRender, cardDimension, gameId, true, true,
|
.withCustomColor(customCardIconColor)
|
||||||
|
.withCustomMaxVisibleCount(customCardIconsMaxVisibleCount)
|
||||||
|
.withCustomIconSizePercent(30);
|
||||||
|
} else {
|
||||||
|
// default
|
||||||
|
currentIconsRender = new CardIconRenderSettings();
|
||||||
|
}
|
||||||
|
|
||||||
|
MageCard cardPanel = Plugins.instance.getMageCard(card, bigCard, currentIconsRender, cardDimension, gameId, true, true,
|
||||||
customRenderMode != -1 ? customRenderMode : PreferencesDialog.getRenderMode(), customNeedFullPermanentRender);
|
customRenderMode != -1 ? customRenderMode : PreferencesDialog.getRenderMode(), customNeedFullPermanentRender);
|
||||||
cardPanel.setCardContainerRef(this);
|
cardPanel.setCardContainerRef(this);
|
||||||
cardPanel.update(card);
|
cardPanel.update(card);
|
||||||
|
|
Loading…
Reference in a new issue