forked from External/mage
Showing already chosen cards in choice dialog
This commit is contained in:
parent
638a6368d2
commit
b5032226f4
9 changed files with 55 additions and 16 deletions
|
|
@ -316,8 +316,10 @@ public class CardPanel extends MagePermanent implements MouseListener, MouseMoti
|
|||
this.isAnimationPanel = isAnimationPanel;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setSelected(boolean isSelected) {
|
||||
this.isSelected = isSelected;
|
||||
this.titleText.setGlowColor(Color.green);
|
||||
repaint();
|
||||
}
|
||||
|
||||
|
|
@ -376,7 +378,8 @@ public class CardPanel extends MagePermanent implements MouseListener, MouseMoti
|
|||
g2d.fillRoundRect(cardXOffset, cardYOffset, cardWidth, cardHeight, cornerSize, cornerSize);
|
||||
if (isSelected) {
|
||||
//g2d.setColor(new Color(0,250,0,200));
|
||||
g2d.setColor(new Color(200, 120, 40, 200));
|
||||
//g2d.setColor(new Color(200, 120, 40, 200));
|
||||
g2d.setColor(Color.green);
|
||||
g2d.fillRoundRect(cardXOffset + 1, cardYOffset + 1, cardWidth - 2, cardHeight - 2, cornerSize, cornerSize);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,7 @@
|
|||
package org.mage.card.arcane;
|
||||
|
||||
import java.awt.AlphaComposite;
|
||||
import java.awt.Color;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Graphics;
|
||||
import java.awt.Graphics2D;
|
||||
import java.awt.RenderingHints;
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.awt.font.FontRenderContext;
|
||||
import java.awt.font.LineBreakMeasurer;
|
||||
import java.awt.font.TextAttribute;
|
||||
|
|
@ -15,8 +11,6 @@ import java.text.AttributedString;
|
|||
import java.text.BreakIterator;
|
||||
import java.util.Locale;
|
||||
|
||||
import javax.swing.JLabel;
|
||||
|
||||
public class GlowText extends JLabel {
|
||||
private static final long serialVersionUID = 1827677946939348001L;
|
||||
private int glowSize;
|
||||
|
|
@ -99,4 +93,8 @@ public class GlowText extends JLabel {
|
|||
public int getLineCount() {
|
||||
return this.lineCount;
|
||||
}
|
||||
|
||||
public void setGlowColor(Color glowColor) {
|
||||
this.glowColor = glowColor;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue