mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
adjust highlighting for new manipulation interface
This commit is contained in:
@@ -273,8 +273,8 @@ public class CardPanel extends SkinnedPanel implements CardContainer, IDisposabl
|
|||||||
g2d.setColor(Color.magenta);
|
g2d.setColor(Color.magenta);
|
||||||
final int n2 = Math.max(1, Math.round(2 * cardWidth * CardPanel.SELECTED_BORDER_SIZE));
|
final int n2 = Math.max(1, Math.round(2 * cardWidth * CardPanel.SELECTED_BORDER_SIZE));
|
||||||
g2d.fillRoundRect(cardXOffset - n2, (cardYOffset - n2) + offset, cardWidth + (n2 * 2), cardHeight + (n2 * 2), cornerSize + n2, cornerSize + n2);
|
g2d.fillRoundRect(cardXOffset - n2, (cardYOffset - n2) + offset, cardWidth + (n2 * 2), cardHeight + (n2 * 2), cornerSize + n2, cornerSize + n2);
|
||||||
} else if (matchUI.isSelectable(getCard())) { // Yellow outline for selectable cards
|
} else if (matchUI.isSelectable(getCard())) { // Cyan outline for selectable cards
|
||||||
g2d.setColor(Color.yellow);
|
g2d.setColor(Color.cyan);
|
||||||
final int n2 = Math.max(1, Math.round(2 * cardWidth * CardPanel.SELECTED_BORDER_SIZE));
|
final int n2 = Math.max(1, Math.round(2 * cardWidth * CardPanel.SELECTED_BORDER_SIZE));
|
||||||
g2d.fillRoundRect(cardXOffset - n2, (cardYOffset - n2) + offset, cardWidth + (n2 * 2), cardHeight + (n2 * 2), cornerSize + n2, cornerSize + n2);
|
g2d.fillRoundRect(cardXOffset - n2, (cardYOffset - n2) + offset, cardWidth + (n2 * 2), cardHeight + (n2 * 2), cornerSize + n2, cornerSize + n2);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ public interface IGuiGame {
|
|||||||
void restoreOldZones(Map<PlayerView, Object> playersToRestoreZonesFor);
|
void restoreOldZones(Map<PlayerView, Object> playersToRestoreZonesFor);
|
||||||
void setHighlighted(PlayerView pv, boolean b);
|
void setHighlighted(PlayerView pv, boolean b);
|
||||||
void setUsedToPay(CardView card, boolean value);
|
void setUsedToPay(CardView card, boolean value);
|
||||||
void setSelectables(final List<CardView> cards);
|
void setSelectables(final Iterable<CardView> cards);
|
||||||
void clearSelectables();
|
void clearSelectables();
|
||||||
|
|
||||||
void awaitNextInput();
|
void awaitNextInput();
|
||||||
|
|||||||
@@ -221,8 +221,8 @@ public abstract class AbstractGuiGame implements IGuiGame, IMayViewCards {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private final Set<CardView> selectableCards = Sets.newHashSet();
|
private final Set<CardView> selectableCards = Sets.newHashSet();
|
||||||
public void setSelectables(final List<CardView> cards) {
|
public void setSelectables(final Iterable<CardView> cards) {
|
||||||
selectableCards.addAll(cards);
|
for ( CardView cv : cards ) { selectableCards.add(cv); }
|
||||||
}
|
}
|
||||||
public void clearSelectables() {
|
public void clearSelectables() {
|
||||||
selectableCards.clear();
|
selectableCards.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user