From f87d297155056119528e291fb0938d2e16ae32c4 Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 24 Oct 2018 13:09:42 -0400 Subject: [PATCH] Added filename entry --- core/assets/bundles/bundle.properties | 1 + core/src/io/anuke/mindustry/ui/dialogs/FileChooser.java | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index 425582106f..c947dc383d 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -22,6 +22,7 @@ text.level.delete.title=Confirm Delete text.map.delete=Are you sure you want to delete the map "[orange]{0}[]"? text.level.select=Level Select text.level.mode=Gamemode: +text.filename=File Name: text.construction.desktop=To deselect a block or stop building, [accent]use space[]. text.construction.title=Block Construction Guide text.construction=\ diff --git a/core/src/io/anuke/mindustry/ui/dialogs/FileChooser.java b/core/src/io/anuke/mindustry/ui/dialogs/FileChooser.java index 3204fbb107..ac5f78457b 100644 --- a/core/src/io/anuke/mindustry/ui/dialogs/FileChooser.java +++ b/core/src/io/anuke/mindustry/ui/dialogs/FileChooser.java @@ -52,7 +52,6 @@ public class FileChooser extends FloatingDialog{ } private void setupWidgets(){ - //getCell(content()).maxWidth(UIUtils.portrait() ? Gdx.graphics.getWidth() : Gdx.graphics.getWidth()/Unit.dp.scl(2f)); content().margin(-10); Table content = new Table(); @@ -137,7 +136,7 @@ public class FileChooser extends FloatingDialog{ icontable.add(up); Table fieldcontent = new Table(); - fieldcontent.bottom().left().add(new Label("File Name:")); + fieldcontent.bottom().left().add(new Label("$text.filename")); fieldcontent.add(filefield).height(40f).fillX().expandX().padLeft(10f); Table buttons = new Table();