mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
very minor tweaks
This commit is contained in:
@@ -68,7 +68,7 @@ import forge.gui.toolbox.FSkin;
|
||||
import forge.gui.toolbox.FSkin.SkinColor;
|
||||
import forge.gui.toolbox.FSkin.SkinImage;
|
||||
import forge.gui.toolbox.FTextField;
|
||||
import forge.item.IPaperCard;
|
||||
|
||||
import forge.item.PaperCard;
|
||||
import forge.properties.ForgePreferences;
|
||||
import forge.properties.ForgePreferences.FPref;
|
||||
@@ -515,8 +515,6 @@ public enum VSubmenuConstructed implements IVSubmenu<CSubmenuConstructed> {
|
||||
|
||||
addHandlersToVariantsControls();
|
||||
updateVariantControlsVisibility();
|
||||
|
||||
|
||||
}
|
||||
|
||||
private final FMouseAdapter radioMouseAdapter = new FMouseAdapter() {
|
||||
@@ -1004,8 +1002,8 @@ public enum VSubmenuConstructed implements IVSubmenu<CSubmenuConstructed> {
|
||||
CardDetailPanel cdp = vgdAvatarDetails.get(index);
|
||||
|
||||
if (obj instanceof PaperCard) {
|
||||
pp.setVanguardButtonText(((IPaperCard) obj).getName());
|
||||
cdp.setCard(Card.getCardForUi((IPaperCard) obj));
|
||||
pp.setVanguardButtonText(((PaperCard) obj).getName());
|
||||
cdp.setCard(Card.getCardForUi((PaperCard) obj));
|
||||
cdp.setVisible(true);
|
||||
refreshPanels(false, true);
|
||||
} else {
|
||||
|
||||
@@ -45,13 +45,11 @@ public enum CDetail implements ICDoc {
|
||||
* @param c   Card object
|
||||
*/
|
||||
public void showCard(final Card c) {
|
||||
if (null == c) {
|
||||
return;
|
||||
}
|
||||
|
||||
view.getLblFlipcard().setVisible(c != null && (c.isDoubleFaced() || c.isFlipCard() || c.isFaceDown() && Singletons.getControl().mayShowCard(c)));
|
||||
view.getPnlDetail().setCard(c);
|
||||
view.getParentCell().repaintSelf();
|
||||
if( view.getParentCell() != null)
|
||||
view.getParentCell().repaintSelf();
|
||||
}
|
||||
|
||||
public void showCard(InventoryItem item) {
|
||||
|
||||
Reference in New Issue
Block a user