GWT compilation fixes
This commit is contained in:
@@ -3,6 +3,7 @@ package io.anuke.mindustry.io;
|
||||
import io.anuke.ucore.scene.ui.TextField;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.Locale;
|
||||
|
||||
public abstract class PlatformFunction{
|
||||
public String format(Date date){return "invalid";}
|
||||
@@ -17,4 +18,5 @@ public abstract class PlatformFunction{
|
||||
public void onGameExit(){}
|
||||
public void openDonations(){}
|
||||
public void requestWritePerms(){}
|
||||
public String getLocaleName(Locale locale){return locale.toString();}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package io.anuke.mindustry.ui.dialogs;
|
||||
|
||||
import io.anuke.mindustry.Mindustry;
|
||||
import io.anuke.mindustry.Vars;
|
||||
import io.anuke.ucore.UCore;
|
||||
import io.anuke.ucore.core.Settings;
|
||||
@@ -29,8 +30,7 @@ public class LanguageDialog extends FloatingDialog{
|
||||
ButtonGroup<TextButton> group = new ButtonGroup<>();
|
||||
|
||||
for(Locale loc : locales){
|
||||
TextButton button = new TextButton(loc.getDisplayName(loc), "toggle");
|
||||
UCore.log(loc.getDisplayName(loc));
|
||||
TextButton button = new TextButton(Mindustry.platforms.getLocaleName(loc), "toggle");
|
||||
button.setChecked(Vars.ui.getLocale().equals(loc));
|
||||
button.clicked(() -> {
|
||||
if(Vars.ui.getLocale().equals(loc)) return;
|
||||
|
||||
Reference in New Issue
Block a user