add new icons.
After Width: | Height: | Size: 793 B |
After Width: | Height: | Size: 781 B |
After Width: | Height: | Size: 797 B |
After Width: | Height: | Size: 938 B |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 671 B |
After Width: | Height: | Size: 985 B |
After Width: | Height: | Size: 1.2 KiB |
|
@ -23,6 +23,7 @@ public class IconImages {
|
|||
// White transparent icons used by various components of AbstractScreen.
|
||||
public static final ImageIcon HEADER_ICON = loadIcon("headerIcon.png");
|
||||
public static final ImageIcon OPTIONS_ICON = loadIcon("w_book.png");
|
||||
public static final ImageIcon OPTIONBAR_ICON = loadIcon("w_book24.png");
|
||||
public static final ImageIcon REFRESH_ICON = loadIcon("w_refresh.png");
|
||||
public static final ImageIcon MULLIGAN_ICON = loadIcon("w_mulligan.png");
|
||||
public static final ImageIcon HAND_ICON = loadIcon("w_hand.png");
|
||||
|
@ -42,6 +43,13 @@ public class IconImages {
|
|||
public static final ImageIcon EDIT_ICON = loadIcon("w_edit.png");
|
||||
public static final ImageIcon HELP_ICON = loadIcon("w_help.png");
|
||||
public static final ImageIcon OPEN_ICON = loadIcon("w_open.png");
|
||||
public static final ImageIcon RANDOM_ICON = loadIcon("w_random32.png");
|
||||
public static final ImageIcon CLEAR_ICON = loadIcon("w_clear28.png");
|
||||
public static final ImageIcon FILTER_ICON = loadIcon("w_filter24.png");
|
||||
public static final ImageIcon ARROWDOWN_ICON = loadIcon("w_arrowdown.png");
|
||||
public static final ImageIcon ARROWUP_ICON = loadIcon("w_arrowup.png");
|
||||
public static final ImageIcon PLUS_ICON = loadIcon("w_plus28.png");
|
||||
public static final ImageIcon MINUS_ICON = loadIcon("w_minus28.png");
|
||||
|
||||
public static final ImageIcon ARENA=loadIcon("arena.png");
|
||||
public static final ImageIcon ANY=loadIcon("any.png");
|
||||
|
|
|
@ -103,7 +103,7 @@ public class CardPoolTabPanel extends JPanel {
|
|||
|
||||
private ActionBarButton getFilterActionButton() {
|
||||
return new ActionBarButton(
|
||||
IconImages.MISSING_ICON, // FILTER24_ICON,
|
||||
IconImages.FILTER_ICON,
|
||||
"Toggle Filter Panel",
|
||||
"Hide/show the card pool filter panel.",
|
||||
new AbstractAction() {
|
||||
|
@ -117,7 +117,7 @@ public class CardPoolTabPanel extends JPanel {
|
|||
|
||||
private ActionBarButton getRandomDeckActionButton() {
|
||||
return new ActionBarButton(
|
||||
IconImages.MISSING_ICON, //RANDOM32_ICON,
|
||||
IconImages.RANDOM_ICON,
|
||||
"Random Deck",
|
||||
"Generate a random deck using current set of cards in card pool.",
|
||||
new AbstractAction() {
|
||||
|
|
|
@ -41,7 +41,7 @@ public class DeckCardPoolActionBar extends TexturedPanel {
|
|||
|
||||
private ActionBarButton getOptionBarButton() {
|
||||
final ActionBarButton btn = new ActionBarButton(
|
||||
IconImages.MISSING_ICON, // OPTIONS28_ICON,
|
||||
IconImages.OPTIONBAR_ICON,
|
||||
"Options", "Toggle visibility of options bar.",
|
||||
new AbstractAction() {
|
||||
@Override
|
||||
|
|
|
@ -30,17 +30,17 @@ class DeckCardPoolActionPanel extends JPanel {
|
|||
setOpaque(false);
|
||||
|
||||
addButton = new ActionBarButton(
|
||||
IconImages.MISSING_ICON, // PLUS28_ICON,
|
||||
IconImages.PLUS_ICON,
|
||||
"Add Card(s)", "Add selected cards to deck",
|
||||
plusButtonAction);
|
||||
|
||||
minusButton = new ActionBarButton(
|
||||
IconImages.MISSING_ICON, // MINUS28_ICON,
|
||||
IconImages.MINUS_ICON,
|
||||
"Remove Card(s)", "Remove selected cards from deck",
|
||||
minusButtonAction);
|
||||
|
||||
incrementButton = new ActionBarButton(
|
||||
IconImages.MISSING_ICON, // ARROWUP_ICON,
|
||||
IconImages.ARROWUP_ICON,
|
||||
"Increment Quantity",
|
||||
"Increase the quantity by one. Maximum is ten.",
|
||||
new AbstractAction() {
|
||||
|
@ -56,7 +56,7 @@ class DeckCardPoolActionPanel extends JPanel {
|
|||
}
|
||||
});
|
||||
decrementButton = new ActionBarButton(
|
||||
IconImages.MISSING_ICON, // ARROWDOWN_ICON,
|
||||
IconImages.ARROWDOWN_ICON,
|
||||
"Decrement Quantity",
|
||||
"Decrease the quantity by one. Minium is one.",
|
||||
new AbstractAction() {
|
||||
|
|
|
@ -90,7 +90,7 @@ public class DeckTabPanel extends JPanel {
|
|||
private void setOptionBarActions() {
|
||||
optionBar.addActionButton(
|
||||
new ActionBarButton(
|
||||
IconImages.MISSING_ICON, //CLEAR32_ICON,
|
||||
IconImages.CLEAR_ICON,
|
||||
"Clear deck",
|
||||
"Remove all cards from deck. Confirmation required.",
|
||||
new AbstractAction() {
|
||||
|
@ -244,7 +244,6 @@ public class DeckTabPanel extends JPanel {
|
|||
deck.add(card);
|
||||
deckTable.setCards(deck);
|
||||
deckTable.setSelectedCard(card);
|
||||
System.out.println("added to deck : " + card.getName());
|
||||
firePropertyChange(CP_DECKLIST, false, true);
|
||||
}
|
||||
|
||||
|
|
|
@ -151,7 +151,6 @@ public class HistoryTabPanel extends JPanel {
|
|||
void addCardToHistory(final MagicCardDefinition card) {
|
||||
if (!history.contains(card)) {
|
||||
history.add(card);
|
||||
System.out.println("add to deck history : " + card.getName() + ", " + history.size());
|
||||
historyTable.setCards(history);
|
||||
historyTable.setSelectedCard(card);
|
||||
}
|
||||
|
|