mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-20 00:39:37 +00:00
Move java to package
Remove OpenSKin(CLosed)
This commit is contained in:
1 parent
bf69fb5d42
commit
d99e82224b
10 files changed
+59
-39
No files matched your search
Binary file not shown.
Binary file not shown.
@@ -1,14 +1,21 @@
|
||||
package idv.jlchntoz;
|
||||
|
||||
import idv.jlchntoz.gui.MainFrame;
|
||||
|
||||
import java.util.logging.Logger;
|
||||
|
||||
public class CustomSkinLoaderGUI {
|
||||
|
||||
public static final String VERSION ="1.0.2";
|
||||
|
||||
public static final Logger log=Logger.getLogger("CustomSkinLoader-GUI");
|
||||
|
||||
public static void main(String[] args) {
|
||||
log.info("Thanks for using CustomSkinLoader!");
|
||||
log.info("Version 1.0.2!");
|
||||
MainFrame.main(args);
|
||||
log.info("Version "+VERSION+" !");
|
||||
MainFrame mf=new MainFrame();
|
||||
mf.init(args);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
package idv.jlchntoz;
|
||||
package idv.jlchntoz.gui;
|
||||
|
||||
import idv.jlchntoz.lang.Language;
|
||||
import idv.jlchntoz.lang.DefaultLang;
|
||||
|
||||
import java.awt.Container;
|
||||
import java.awt.Font;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.FileReader;
|
||||
@@ -20,7 +21,7 @@ import javax.swing.JTextArea;
|
||||
import javax.swing.WindowConstants;
|
||||
|
||||
public class CloakFrame {
|
||||
private static LangParent lang=Lang.refresh();
|
||||
private static DefaultLang lang=Language.getLanguage();
|
||||
public static boolean mod=false;
|
||||
public static final String[] urls={
|
||||
"#"+lang.minecraftOffical(),
|
||||
@@ -28,8 +29,11 @@ public class CloakFrame {
|
||||
"http://skins.minecraft.net/MinecraftCloaks/*.png",
|
||||
"#MineCrack",
|
||||
"http://minecrack.fr.nf/mc/cloaksminecrackd/*.png",
|
||||
/*
|
||||
* XFL03's Skin Website Closed
|
||||
"#OpenSkin",
|
||||
"http://skin.axdt.net/MinecraftCloaks/*.png",
|
||||
*/
|
||||
"#SkinMe",
|
||||
"http://www.skinme.cc:88/MinecraftCloaks/*.png"
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
package idv.jlchntoz;
|
||||
package idv.jlchntoz.gui;
|
||||
|
||||
import idv.jlchntoz.lang.Language;
|
||||
import idv.jlchntoz.lang.DefaultLang;
|
||||
|
||||
import java.awt.Container;
|
||||
import java.awt.Font;
|
||||
@@ -11,9 +14,9 @@ import javax.swing.JLabel;
|
||||
import javax.swing.WindowConstants;
|
||||
|
||||
public class MainFrame {
|
||||
private static LangParent lang=Lang.refresh();
|
||||
private static DefaultLang lang=Language.getLanguage();
|
||||
|
||||
public static void main(String[] args) {
|
||||
public void init(String[] args) {
|
||||
|
||||
JFrame jf = new JFrame (lang.title()+lang.gui());
|
||||
Container con = jf.getContentPane();
|
||||
@@ -30,15 +33,15 @@ public class MainFrame {
|
||||
con.add(title);
|
||||
|
||||
if(args.length>0 && args[0].equalsIgnoreCase("f")){
|
||||
JLabel tip1=new JLabel();
|
||||
tip1.setText(lang.first1());
|
||||
tip1.setBounds(30, 55, 370, 15);
|
||||
con.add(tip1);
|
||||
JLabel tip1=new JLabel();
|
||||
tip1.setText(lang.first1());
|
||||
tip1.setBounds(30, 55, 370, 15);
|
||||
con.add(tip1);
|
||||
|
||||
JLabel tip2=new JLabel();
|
||||
tip2.setText(lang.first2());
|
||||
tip2.setBounds(30, 70, 370, 15);
|
||||
con.add(tip2);
|
||||
JLabel tip2=new JLabel();
|
||||
tip2.setText(lang.first2());
|
||||
tip2.setBounds(30, 70, 370, 15);
|
||||
con.add(tip2);
|
||||
}
|
||||
|
||||
JButton skinBtn=new JButton();
|
||||
@@ -1,11 +1,12 @@
|
||||
package idv.jlchntoz;
|
||||
package idv.jlchntoz.gui;
|
||||
|
||||
import idv.jlchntoz.lang.Language;
|
||||
import idv.jlchntoz.lang.DefaultLang;
|
||||
|
||||
import java.awt.Container;
|
||||
import java.awt.Font;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.FileReader;
|
||||
@@ -20,7 +21,7 @@ import javax.swing.JTextArea;
|
||||
import javax.swing.WindowConstants;
|
||||
|
||||
public class SkinFrame {
|
||||
private static LangParent lang=Lang.refresh();
|
||||
private static DefaultLang lang=Language.getLanguage();
|
||||
public static boolean mod=false;
|
||||
public static final String[] urls={
|
||||
"#"+lang.minecraftOffical(),
|
||||
@@ -28,8 +29,11 @@ public class SkinFrame {
|
||||
"http://skins.minecraft.net/MinecraftSkins/*.png",
|
||||
"#MineCrack",
|
||||
"http://minecrack.fr.nf/mc/skinsminecrackd/*.png",
|
||||
/*
|
||||
* XFL03's Skin Website Closed
|
||||
"#OpenSkin",
|
||||
"http://skin.axdt.net/MinecraftSkins/*.png",
|
||||
*/
|
||||
"#SkinMe",
|
||||
"http://www.skinme.cc:88/MinecraftSkins/*.png"
|
||||
|
||||
@@ -64,7 +68,7 @@ public class SkinFrame {
|
||||
public void actionPerformed (ActionEvent e){
|
||||
String temp="";
|
||||
for(int i=0;i<=2;i++)
|
||||
temp+=urls[i]+"\n";
|
||||
temp+=urls[i]+"\r\n";
|
||||
skinList.setText(temp);
|
||||
};
|
||||
});
|
||||
@@ -75,9 +79,9 @@ public class SkinFrame {
|
||||
urlBtn.addActionListener(new ActionListener(){ //单击事件
|
||||
@Override
|
||||
public void actionPerformed (ActionEvent e){
|
||||
String temp=skinList.getText()+"\n";
|
||||
String temp=skinList.getText()+"\r\n";
|
||||
for(int i=0;i<urls.length;i++)
|
||||
temp+=urls[i]+"\n";
|
||||
temp+=urls[i]+"\r\n";
|
||||
skinList.setText(temp);
|
||||
|
||||
};
|
||||
@@ -1,6 +1,7 @@
|
||||
package idv.jlchntoz;
|
||||
package idv.jlchntoz.lang;
|
||||
|
||||
public class LangChineseSimp extends LangParent {
|
||||
|
||||
public class ChineseSimpLang extends DefaultLang {
|
||||
@Override
|
||||
public String title(){
|
||||
return "自定义皮肤加载器";
|
||||
@@ -1,6 +1,7 @@
|
||||
package idv.jlchntoz;
|
||||
package idv.jlchntoz.lang;
|
||||
|
||||
public class LangChineseTran extends LangParent {
|
||||
|
||||
public class ChineseTranLang extends DefaultLang {
|
||||
@Override
|
||||
public String title(){
|
||||
return "萬用皮膚模組";
|
||||
@@ -1,6 +1,6 @@
|
||||
package idv.jlchntoz;
|
||||
package idv.jlchntoz.lang;
|
||||
|
||||
public class LangParent {
|
||||
public class DefaultLang {
|
||||
public String title(){
|
||||
return "CustomSkinLoader";
|
||||
}
|
||||
@@ -1,23 +1,23 @@
|
||||
package idv.jlchntoz;
|
||||
package idv.jlchntoz.lang;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
public class Lang {
|
||||
public class Language {
|
||||
|
||||
public static LangParent refresh(){
|
||||
public static DefaultLang getLanguage(){
|
||||
Locale locale = Locale.getDefault();
|
||||
String l=locale.getLanguage().toLowerCase();
|
||||
String c=locale.getCountry().toLowerCase();
|
||||
if(l.equalsIgnoreCase("zh")){
|
||||
if(c.equalsIgnoreCase("cn")){
|
||||
//zh_cn();
|
||||
return new LangChineseSimp();
|
||||
//zh_cn
|
||||
return new ChineseSimpLang();
|
||||
}
|
||||
//zh();
|
||||
return new LangChineseTran();
|
||||
//zh
|
||||
return new ChineseTranLang();
|
||||
}
|
||||
//en();
|
||||
return new LangParent();
|
||||
//en
|
||||
return new DefaultLang();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user