mirror of
https://github.com/correl/mage.git
synced 2024-12-24 03:00:14 +00:00
now plugins are not shaded with log4j, so take 10 times less place (about 40k each)
This commit is contained in:
parent
80ce52bd24
commit
c346276b0d
6 changed files with 11 additions and 13 deletions
BIN
Mage.Client/plugins/mage-theme-plugin.jar
Normal file
BIN
Mage.Client/plugins/mage-theme-plugin.jar
Normal file
Binary file not shown.
|
@ -37,6 +37,11 @@
|
|||
<artifactId>jspf-core</artifactId>
|
||||
<version>0.9.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>log4j</groupId>
|
||||
<artifactId>log4j</artifactId>
|
||||
<version>1.2.9</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
<groupId>log4j</groupId>
|
||||
<artifactId>log4j</artifactId>
|
||||
<version>1.2.9</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
|
|
@ -31,16 +31,16 @@ public class ThemePluginImpl implements ThemePlugin {
|
|||
}
|
||||
|
||||
public String toString() {
|
||||
return "[Theme plugin, version 0.1]";
|
||||
return "[Theme plugin, version 0.2]";
|
||||
}
|
||||
|
||||
public void apply(Map<String, JComponent> ui) {
|
||||
log.info("Adding background...");
|
||||
//log.info("Adding background...");
|
||||
try {
|
||||
BufferedImage background = ImageIO.read(this.getClass().getResourceAsStream("/green.jpg"));
|
||||
BufferedImage background = ImageIO.read(this.getClass().getResourceAsStream("/dk_gray.jpg"));
|
||||
|
||||
if (background == null)
|
||||
throw new FileNotFoundException("Couldn't find green.jpg in resources.");
|
||||
throw new FileNotFoundException("Couldn't find dk_gray.jpg in resources.");
|
||||
|
||||
if (ui.containsKey("gamePanel") && ui.containsKey("jLayeredPane")) {
|
||||
ImagePanel bgPanel = new ImagePanel(background, ImagePanel.TILED);
|
||||
|
@ -62,7 +62,7 @@ public class ThemePluginImpl implements ThemePlugin {
|
|||
return;
|
||||
}
|
||||
|
||||
log.info("Done.");
|
||||
//log.info("Done.");
|
||||
}
|
||||
|
||||
private void unsetOpaque(JComponent c) {
|
||||
|
|
BIN
Mage.Plugins/Mage.Theme.Plugin/src/main/resources/dk_gray.jpg
Normal file
BIN
Mage.Plugins/Mage.Theme.Plugin/src/main/resources/dk_gray.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
|
@ -1,8 +0,0 @@
|
|||
#default levels
|
||||
log4j.rootLogger=debug, console
|
||||
|
||||
#console log
|
||||
log4j.appender.console=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.console.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.console.layout.ConversionPattern=%-5p [%d{yyyy-MM-dd HH:mm [ss:SSS]}] %C{1}[%t]: %m%n
|
||||
log4j.appender.console.Threshold=DEBUG
|
Loading…
Reference in a new issue