diff --git a/ShootingStars/src/org/wyrez/shootingstars/icons/icon128.png b/ShootingStars/src/org/wyrez/shootingstars/icons/icon128.png new file mode 100644 index 0000000..f2971c4 Binary files /dev/null and b/ShootingStars/src/org/wyrez/shootingstars/icons/icon128.png differ diff --git a/ShootingStars/src/org/wyrez/shootingstars/icons/icon16.png b/ShootingStars/src/org/wyrez/shootingstars/icons/icon16.png new file mode 100644 index 0000000..253f50c Binary files /dev/null and b/ShootingStars/src/org/wyrez/shootingstars/icons/icon16.png differ diff --git a/ShootingStars/src/org/wyrez/shootingstars/icons/icon256.png b/ShootingStars/src/org/wyrez/shootingstars/icons/icon256.png new file mode 100644 index 0000000..27d5e34 Binary files /dev/null and b/ShootingStars/src/org/wyrez/shootingstars/icons/icon256.png differ diff --git a/ShootingStars/src/org/wyrez/shootingstars/icons/icon32.png b/ShootingStars/src/org/wyrez/shootingstars/icons/icon32.png new file mode 100644 index 0000000..7b035c9 Binary files /dev/null and b/ShootingStars/src/org/wyrez/shootingstars/icons/icon32.png differ diff --git a/ShootingStars/src/org/wyrez/shootingstars/icons/icon64.png b/ShootingStars/src/org/wyrez/shootingstars/icons/icon64.png new file mode 100644 index 0000000..7d83ed9 Binary files /dev/null and b/ShootingStars/src/org/wyrez/shootingstars/icons/icon64.png differ diff --git a/ShootingStars/src/org/wyrez/shootingstars/states/util/OptionSettings.java b/ShootingStars/src/org/wyrez/shootingstars/states/util/OptionSettings.java index 0cf18eb..a90b8f7 100644 --- a/ShootingStars/src/org/wyrez/shootingstars/states/util/OptionSettings.java +++ b/ShootingStars/src/org/wyrez/shootingstars/states/util/OptionSettings.java @@ -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) {