summaryrefslogtreecommitdiff
path: root/core/src/com/ilotterytea/maxoning/ui
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2022-09-05 00:34:36 +0600
committerilotterytea <iltsu@alright.party>2022-09-05 00:34:36 +0600
commit147c726a5ce0adedc8713ff32607b66b8abaf289 (patch)
tree06216b437af14b9c3a9f34f44b0e47ad656d8b0c /core/src/com/ilotterytea/maxoning/ui
parent49361b0396f6fad7f4d37555200f950c1b18281a (diff)
я в рот ебал создателей этого фреймворка
Diffstat (limited to 'core/src/com/ilotterytea/maxoning/ui')
-rw-r--r--core/src/com/ilotterytea/maxoning/ui/OptionsTable.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/src/com/ilotterytea/maxoning/ui/OptionsTable.java b/core/src/com/ilotterytea/maxoning/ui/OptionsTable.java
index 5a3b73b..983da5e 100644
--- a/core/src/com/ilotterytea/maxoning/ui/OptionsTable.java
+++ b/core/src/com/ilotterytea/maxoning/ui/OptionsTable.java
@@ -13,12 +13,12 @@ import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import com.badlogic.gdx.scenes.scene2d.ui.Table;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
import com.badlogic.gdx.utils.Align;
+import com.ilotterytea.maxoning.MaxonConstants;
import com.ilotterytea.maxoning.MaxonGame;
import com.ilotterytea.maxoning.screens.SplashScreen;
import com.ilotterytea.maxoning.utils.I18N;
import java.util.ArrayList;
-import java.util.Arrays;
import java.util.Locale;
public class OptionsTable extends Table {
@@ -129,8 +129,9 @@ public class OptionsTable extends Table {
@Override
public void clicked(InputEvent event, float x, float y) {
int index = 0;
- FileHandle folder = Gdx.files.internal("i18n");
- ArrayList<FileHandle> fhArray = new ArrayList<>(Arrays.asList(folder.list()));
+ ArrayList<FileHandle> fhArray = new ArrayList<>();
+ fhArray.add(MaxonConstants.FILE_RU_RU);
+ fhArray.add(MaxonConstants.FILE_EN_US);
if (fhArray.indexOf(game.locale.getFileHandle()) + 1 < fhArray.size()) {
index = fhArray.indexOf(game.locale.getFileHandle()) + 1;