add new icons.

master
Lodici 2014-09-23 12:58:22 +01:00
parent aaede00cc1
commit bd557b4a9c
14 changed files with 16 additions and 10 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 793 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 781 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 797 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 938 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 671 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 985 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -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");

View File

@ -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() {

View File

@ -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

View File

@ -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() {

View File

@ -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);
}

View File

@ -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);
}