mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Reverting previous commit, didn't work very well in practice.
This commit is contained in:
@@ -292,20 +292,14 @@ public abstract class CardPanelContainer extends SkinnedPanel {
|
|||||||
remove(CardPanel.getDragAnimationPanel());
|
remove(CardPanel.getDragAnimationPanel());
|
||||||
setMouseDragPanel(null);
|
setMouseDragPanel(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean selected = fromPanel != null && fromPanel.isSelected();
|
|
||||||
|
|
||||||
hoveredPanel = null;
|
hoveredPanel = null;
|
||||||
fromPanel.dispose();
|
fromPanel.dispose();
|
||||||
getCardPanels().remove(fromPanel);
|
getCardPanels().remove(fromPanel);
|
||||||
remove(fromPanel);
|
remove(fromPanel);
|
||||||
invalidate();
|
invalidate();
|
||||||
repaint();
|
repaint();
|
||||||
|
|
||||||
if (selected) {
|
|
||||||
FView.SINGLETON_INSTANCE.getFrame().repaint(); // necessary to get rid of lingering visual artifacts (e.g. unneeded targeting arrows)
|
FView.SINGLETON_INSTANCE.getFrame().repaint(); // necessary to get rid of lingering visual artifacts (e.g. unneeded targeting arrows)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public final void setCardPanels(final List<CardPanel> cardPanels) {
|
public final void setCardPanels(final List<CardPanel> cardPanels) {
|
||||||
if (cardPanels.size() == 0) {
|
if (cardPanels.size() == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user