Mana symbols in ColorsChooser for deck generator.

This commit is contained in:
magenoxx 2010-11-30 18:14:15 +00:00
parent 2e86ffa300
commit 30b341f7d9
9 changed files with 66 additions and 9 deletions

View file

@ -1,5 +1,6 @@
package mage.client.plugins;
import java.awt.Image;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
@ -30,4 +31,5 @@ public interface MagePlugins {
void downloadSymbols();
int getGamesPlayed();
void addGamesPlayed();
Image getManaSymbolImage(String symbol);
}

View file

@ -1,5 +1,6 @@
package mage.client.plugins.impl;
import java.awt.Image;
import java.io.File;
import java.util.Collection;
import java.util.Map;
@ -158,4 +159,12 @@ public class Plugins implements MagePlugins {
public boolean isThemePluginLoaded() {
return this.themePlugin != null;
}
@Override
public Image getManaSymbolImage(String symbol) {
if (this.cardPlugin != null) {
return this.cardPlugin.getManaSymbolImage(symbol);
}
return null;
}
}