forked from External/mage
Mana symbols in ColorsChooser for deck generator.
This commit is contained in:
parent
2e86ffa300
commit
30b341f7d9
9 changed files with 66 additions and 9 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue