Added korean font

This commit is contained in:
Anuken
2018-01-18 22:33:20 -05:00
parent 3b8b3dc345
commit e9c606bc75
5 changed files with 3030 additions and 1 deletions

View File

@@ -11,7 +11,8 @@ import io.anuke.ucore.scene.ui.layout.Table;
import java.util.Locale;
public class LanguageDialog extends FloatingDialog{
private Locale[] locales = {Locale.ENGLISH, new Locale("fr", "FR"), new Locale("es", "LA"), new Locale("pt", "BR")};
private Locale[] locales = {Locale.ENGLISH, new Locale("fr", "FR"),
new Locale("es", "LA"), new Locale("pt", "BR"), new Locale("ko")};
public LanguageDialog(){
super("$text.settings.language");
@@ -29,6 +30,7 @@ public class LanguageDialog extends FloatingDialog{
for(Locale loc : locales){
TextButton button = new TextButton(loc.getDisplayName(loc), "toggle");
UCore.log(loc.getDisplayName(loc));
button.setChecked(Vars.ui.getLocale().equals(loc));
button.clicked(() -> {
if(Vars.ui.getLocale().equals(loc)) return;