added icons
This commit is contained in:
parent
b1c8439a38
commit
893c926ed0
BIN
ShootingStars/src/org/wyrez/shootingstars/icons/icon128.png
Normal file
BIN
ShootingStars/src/org/wyrez/shootingstars/icons/icon128.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
BIN
ShootingStars/src/org/wyrez/shootingstars/icons/icon16.png
Normal file
BIN
ShootingStars/src/org/wyrez/shootingstars/icons/icon16.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 842 B |
BIN
ShootingStars/src/org/wyrez/shootingstars/icons/icon256.png
Normal file
BIN
ShootingStars/src/org/wyrez/shootingstars/icons/icon256.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 62 KiB |
BIN
ShootingStars/src/org/wyrez/shootingstars/icons/icon32.png
Normal file
BIN
ShootingStars/src/org/wyrez/shootingstars/icons/icon32.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
BIN
ShootingStars/src/org/wyrez/shootingstars/icons/icon64.png
Normal file
BIN
ShootingStars/src/org/wyrez/shootingstars/icons/icon64.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.3 KiB |
@ -17,12 +17,15 @@
|
|||||||
package org.wyrez.shootingstars.states.util;
|
package org.wyrez.shootingstars.states.util;
|
||||||
|
|
||||||
import com.jme3.system.AppSettings;
|
import com.jme3.system.AppSettings;
|
||||||
|
import java.awt.image.BufferedImage;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
import javax.imageio.ImageIO;
|
||||||
import org.wyrez.shootingstars.helper.PathHelper;
|
import org.wyrez.shootingstars.helper.PathHelper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -41,6 +44,16 @@ public class OptionSettings {
|
|||||||
init(true);
|
init(true);
|
||||||
save();
|
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) {
|
public void init(boolean loadDefault) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user