added icons

This commit is contained in:
Raybz@Raybz 2013-07-05 13:04:06 +02:00
parent b1c8439a38
commit 893c926ed0
6 changed files with 13 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 842 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

View File

@ -17,12 +17,15 @@
package org.wyrez.shootingstars.states.util;
import com.jme3.system.AppSettings;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Set;
import javax.imageio.ImageIO;
import org.wyrez.shootingstars.helper.PathHelper;
/**
@ -41,6 +44,16 @@ public class OptionSettings {
init(true);
save();
}
try {
settings.setIcons(new BufferedImage[]{
ImageIO.read(getClass().getResourceAsStream("../../icons/icon256.png")),
ImageIO.read(getClass().getResourceAsStream("../../icons/icon128.png")),
ImageIO.read(getClass().getResourceAsStream("../../icons/icon64.png")),
ImageIO.read(getClass().getResourceAsStream("../../icons/icon32.png")),
ImageIO.read(getClass().getResourceAsStream("../../icons/icon16.png"))});
} catch (IOException ex) {
ex.printStackTrace();
}
}
public void init(boolean loadDefault) {