[UI] new game background

This commit is contained in:
magenoxx 2012-07-17 10:32:14 +04:00
parent 4282afe023
commit e198b317e4
3 changed files with 9 additions and 11 deletions

View file

@ -1,23 +1,21 @@
package org.mage.plugins.theme; package org.mage.plugins.theme;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.Map;
import javax.imageio.ImageIO;
import javax.swing.JComponent;
import mage.components.ImagePanel; import mage.components.ImagePanel;
import mage.interfaces.plugin.ThemePlugin; import mage.interfaces.plugin.ThemePlugin;
import net.xeoh.plugins.base.annotations.PluginImplementation; import net.xeoh.plugins.base.annotations.PluginImplementation;
import net.xeoh.plugins.base.annotations.events.Init; import net.xeoh.plugins.base.annotations.events.Init;
import net.xeoh.plugins.base.annotations.events.PluginLoaded; import net.xeoh.plugins.base.annotations.events.PluginLoaded;
import net.xeoh.plugins.base.annotations.meta.Author; import net.xeoh.plugins.base.annotations.meta.Author;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.Map;
@PluginImplementation @PluginImplementation
@Author(name = "nantuko") @Author(name = "nantuko")
public class ThemePluginImpl implements ThemePlugin { public class ThemePluginImpl implements ThemePlugin {
@ -39,7 +37,7 @@ public class ThemePluginImpl implements ThemePlugin {
} }
public void applyInGame(Map<String, JComponent> ui) { public void applyInGame(Map<String, JComponent> ui) {
String filename = "/wood.png"; String filename = "/dragon.png";
try { try {
InputStream is = this.getClass().getResourceAsStream(filename); InputStream is = this.getClass().getResourceAsStream(filename);

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 KiB