added icons
This commit is contained in:
1 parent
b1c8439a38
commit
893c926ed0
6 files changed
+13
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 25 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 |
@@ -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) {
|
||||||
|
|||||||
Reference in new issue
Block a user