Added missing strings to bundles

This commit is contained in:
Prosta4ok_ua
2021-11-17 21:53:56 +02:00
parent a4cec1d003
commit 1a4e4f2c62
8 changed files with 43 additions and 16 deletions

View File

@@ -21,8 +21,7 @@ import mindustry.graphics.Pal;
import mindustry.ui.Styles;
import mindustry.ui.dialogs.*;
import static arc.Core.input;
import static arc.Core.scene;
import static arc.Core.*;
import static mindustry.Vars.*;
import static mindustry.Vars.ui;
@@ -41,7 +40,7 @@ public class SchemDisplay extends Table {
void setSchemTable() {
clear();
right();
button("Schematic List", Icon.downOpen, Styles.squareTogglet, () -> schemShown = !schemShown).width(160f).height(60f).checked(b -> {
button(bundle.get("hud.schematic-list"), Icon.downOpen, Styles.squareTogglet, () -> schemShown = !schemShown).width(160f).height(60f).checked(b -> {
Image image = (Image)b.getCells().first().get();
image.setDrawable(schemShown ? Icon.upOpen : Icon.downOpen);
return schemShown;
@@ -84,7 +83,7 @@ public class SchemDisplay extends Table {
p.table(tt -> {
firstSchematic = null;
tt.button("Import", Icon.download, this::showImport).width(160f).height(64f).row();
tt.button("@editor.import", Icon.download, this::showImport).width(160f).height(64f).row();
for(Schematic s : schematics.all()){
if(selectedTags.any() && !s.labels.containsAll(selectedTags)) continue;
if(firstSchematic == null) firstSchematic = s;
@@ -177,7 +176,7 @@ public class SchemDisplay extends Table {
}
if(firstSchematic == null){
tt.add("@none");
tt.add(bundle.get("none"));
}
});
}).grow().get();

View File

@@ -83,7 +83,7 @@ public class WaveDisplay extends Table {
t.marginLeft(Scl.scl(modUiScale) * 3 * 8f);
if(settings.getBool("emptywave") && state.rules.spawns.find(g -> g.getSpawned(j) > 0) == null) {
t.center();
Label label = new Label("[lightgray]<Empty>[]");
Label label = new Label(bundle.get("empty"));
label.setFontScale(Scl.scl(modUiScale));
t.add(label);
return;