mirror of
https://github.com/yawaflua/Informatis.git
synced 2025-12-10 12:09:27 +02:00
Added missing strings to bundles
This commit is contained in:
@@ -94,10 +94,24 @@ setting.shar-draw = Overdrawing Settings
|
|||||||
setting.shar-etc = Other
|
setting.shar-etc = Other
|
||||||
|
|
||||||
#Hud
|
#Hud
|
||||||
|
hud.schematic-list = Schematic List
|
||||||
hud.unit = Unit Info
|
hud.unit = Unit Info
|
||||||
hud.wave = Wave Info
|
hud.wave = Wave Info
|
||||||
hud.item = Resource Info
|
hud.item = Resource Info
|
||||||
hud.cancel = Hidden
|
hud.cancel = Hidden
|
||||||
|
hud.enabled = [accent]Enabled[]
|
||||||
|
hud.disabled = [gray]Disabled[]
|
||||||
|
hud.pathline = Path Line
|
||||||
|
hud.unitline = Unit Line
|
||||||
|
hud.logicline = Logic Line
|
||||||
|
|
||||||
|
#Other
|
||||||
|
sec = sec
|
||||||
|
default-bar = default bar
|
||||||
|
th-bar = th bar
|
||||||
|
empty = [lightgray]<Empty>[]
|
||||||
|
none = <none>
|
||||||
|
tiles = tiles
|
||||||
|
|
||||||
#Mod
|
#Mod
|
||||||
shar-description = Multifunctional information mod that shows various information in game.\n\n[#AE00FB]In-game UI:[] Located at left side, shows unit/build by cursor, wave list, core and resource info.\n\n[#B5FFD9]Unit/Build Info:[] Shows unit/build information by cursor.\n\n[#B5FFD9]Wave Info:[] Shows wave list, including type/amount/boss. can click to view detail info.\n\n[#B5FFD9]Core Info:[] Shows core position/health for each team. can click to change camera.\n\n[#B5FFD9]Tile Info:[] Shows block/floor/ore icon and position on the cursor. if map has wave, shows remaining wave units too.\n\n[#B5FFD9]Resource Info:[] Shows current resources(inc/decrement), unit amount for each team.\n\n\n[#AE00FB]In-game Drawer:[] draws on the screen, drawing location can be each block or unit.\n\n[#B5FFD9]Block Scanner:[] draws turret/wall health and range near the cursor.\n\n[#B5FFD9]Unit Bar:[] draws unit ammo/shield/health under each unit.\n\n[#B5FFD9]Turret Range:[] draws turret range.\n\n[#B5FFD9]Power Link:[] overdraws green power node on blocks which is power-connected with the selected block.\n\n[#B5FFD9]Mass Link:[] draws mass link lines between selected mass driver and another mass driver.
|
shar-description = Multifunctional information mod that shows various information in game.\n\n[#AE00FB]In-game UI:[] Located at left side, shows unit/build by cursor, wave list, core and resource info.\n\n[#B5FFD9]Unit/Build Info:[] Shows unit/build information by cursor.\n\n[#B5FFD9]Wave Info:[] Shows wave list, including type/amount/boss. can click to view detail info.\n\n[#B5FFD9]Core Info:[] Shows core position/health for each team. can click to change camera.\n\n[#B5FFD9]Tile Info:[] Shows block/floor/ore icon and position on the cursor. if map has wave, shows remaining wave units too.\n\n[#B5FFD9]Resource Info:[] Shows current resources(inc/decrement), unit amount for each team.\n\n\n[#AE00FB]In-game Drawer:[] draws on the screen, drawing location can be each block or unit.\n\n[#B5FFD9]Block Scanner:[] draws turret/wall health and range near the cursor.\n\n[#B5FFD9]Unit Bar:[] draws unit ammo/shield/health under each unit.\n\n[#B5FFD9]Turret Range:[] draws turret range.\n\n[#B5FFD9]Power Link:[] overdraws green power node on blocks which is power-connected with the selected block.\n\n[#B5FFD9]Mass Link:[] draws mass link lines between selected mass driver and another mass driver.
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ setting.distanceLine.name = Показати лінію, що показує в
|
|||||||
setting.distanceLine.description = Показує пунктирні лінії і числа, щоб показати відстань до цілі.
|
setting.distanceLine.description = Показує пунктирні лінії і числа, щоб показати відстань до цілі.
|
||||||
setting.spawnerarrow.name = Вказує точку появи хвиль.
|
setting.spawnerarrow.name = Вказує точку появи хвиль.
|
||||||
setting.spawnerarrow.description = Показує стрілку, направлену на точку появи хвиль.
|
setting.spawnerarrow.description = Показує стрілку, направлену на точку появи хвиль.
|
||||||
|
|
||||||
setting.autoShooting.name = Ввімкнути автострільбу
|
setting.autoShooting.name = Ввімкнути автострільбу
|
||||||
setting.autoShooting.description = Ні, не гакай.
|
setting.autoShooting.description = Ні, не гакай.
|
||||||
|
|
||||||
@@ -93,11 +94,24 @@ setting.shar-draw = Налаштування промальовки
|
|||||||
setting.shar-etc = Інше
|
setting.shar-etc = Інше
|
||||||
|
|
||||||
#Hud
|
#Hud
|
||||||
|
hud.schematic-list = Перелік схем
|
||||||
hud.unit = Інформація про одиницю
|
hud.unit = Інформація про одиницю
|
||||||
hud.wave = Інформація про хвилю
|
hud.wave = Інформація про хвилю
|
||||||
hud.item = Інформація про ресурси
|
hud.item = Інформація про ресурси
|
||||||
hud.cancel = Сховано
|
hud.cancel = Сховано
|
||||||
|
hud.enabled = [accent]Увімкнено[]
|
||||||
|
hud.disabled = [gray]Вимкнено[]
|
||||||
|
hud.pathline = Лінія шляху
|
||||||
|
hud.unitline = Лінія одиниць
|
||||||
|
hud.logicline = Лінія логіки
|
||||||
|
|
||||||
|
#Other
|
||||||
|
sec = сек.
|
||||||
|
default-bar = усталена панель
|
||||||
|
th-bar = -а панель
|
||||||
|
empty = [lightgray]<Порожньо>[]
|
||||||
|
none = <нічого>
|
||||||
|
tiles = плиток
|
||||||
|
|
||||||
#Mod
|
#Mod
|
||||||
shar-description = Multifunctional information mod that shows various information in game.\n\n[#AE00FB]In-game UI:[] Located at left side, shows unit/build by cursor, wave list, core and resource info.\n\n[#B5FFD9]Unit/Build Info:[] Shows unit/build information by cursor.\n\n[#B5FFD9]Wave Info:[] Shows wave list, including type/amount/boss. can click to view detail info.\n\n[#B5FFD9]Core Info:[] Shows core position/health for each team. can click to change camera.\n\n[#B5FFD9]Tile Info:[] Shows block/floor/ore icon and position on the cursor. if map has wave, shows remaining wave units too.\n\n[#B5FFD9]Resource Info:[] Shows current resources(inc/decrement), unit amount for each team.\n\n\n[#AE00FB]In-game Drawer:[] draws on the screen, drawing location can be each block or unit.\n\n[#B5FFD9]Block Scanner:[] draws turret/wall health and range near the cursor.\n\n[#B5FFD9]Unit Bar:[] draws unit ammo/shield/health under each unit.\n\n[#B5FFD9]Turret Range:[] draws turret range.\n\n[#B5FFD9]Power Link:[] overdraws green power node on blocks which is power-connected with the selected block.\n\n[#B5FFD9]Mass Link:[] draws mass link lines between selected mass driver and another mass driver.
|
shar-description = Multifunctional information mod that shows various information in game.\n\n[#AE00FB]In-game UI:[] Located at left side, shows unit/build by cursor, wave list, core and resource info.\n\n[#B5FFD9]Unit/Build Info:[] Shows unit/build information by cursor.\n\n[#B5FFD9]Wave Info:[] Shows wave list, including type/amount/boss. can click to view detail info.\n\n[#B5FFD9]Core Info:[] Shows core position/health for each team. can click to change camera.\n\n[#B5FFD9]Tile Info:[] Shows block/floor/ore icon and position on the cursor. if map has wave, shows remaining wave units too.\n\n[#B5FFD9]Resource Info:[] Shows current resources(inc/decrement), unit amount for each team.\n\n\n[#AE00FB]In-game Drawer:[] draws on the screen, drawing location can be each block or unit.\n\n[#B5FFD9]Block Scanner:[] draws turret/wall health and range near the cursor.\n\n[#B5FFD9]Unit Bar:[] draws unit ammo/shield/health under each unit.\n\n[#B5FFD9]Turret Range:[] draws turret range.\n\n[#B5FFD9]Power Link:[] overdraws green power node on blocks which is power-connected with the selected block.\n\n[#B5FFD9]Mass Link:[] draws mass link lines between selected mass driver and another mass driver.
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public class BarInfo {
|
|||||||
|
|
||||||
public static <T extends Teamc> void getInfo(T target) throws IllegalAccessException, NoSuchFieldException {
|
public static <T extends Teamc> void getInfo(T target) throws IllegalAccessException, NoSuchFieldException {
|
||||||
for(int i = 0; i < 6; i++) { //init
|
for(int i = 0; i < 6; i++) { //init
|
||||||
strings.set(i, "[lightgray]<Empty>[]");
|
strings.set(i, bundle.get("empty"));
|
||||||
colors.set(i, Color.clear);
|
colors.set(i, Color.clear);
|
||||||
numbers.set(i, 0f);
|
numbers.set(i, 0f);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -239,19 +239,19 @@ public class HudUi {
|
|||||||
Button unitBtn = new ImageButton(new ScaledNinePatchDrawable(new NinePatch(Icon.grid.getRegion()), 0.5f), Styles.clearToggleTransi);
|
Button unitBtn = new ImageButton(new ScaledNinePatchDrawable(new NinePatch(Icon.grid.getRegion()), 0.5f), Styles.clearToggleTransi);
|
||||||
Button logicBtn = new ImageButton(new ScaledNinePatchDrawable(new NinePatch(Icon.grid.getRegion()), 0.5f), Styles.clearToggleTransi);
|
Button logicBtn = new ImageButton(new ScaledNinePatchDrawable(new NinePatch(Icon.grid.getRegion()), 0.5f), Styles.clearToggleTransi);
|
||||||
|
|
||||||
pathBtn.addListener(new Tooltip(l -> l.label(() -> "PathLine " + (pathLine ? "[accent]Enabled[]" : "[gray]Disabled[]"))));
|
pathBtn.addListener(new Tooltip(l -> l.label(() -> bundle.get("hud.pathline") + " " + (pathLine ? bundle.get("hud.enabled") : bundle.get("hud.disabled")))));
|
||||||
pathBtn.clicked(() -> {
|
pathBtn.clicked(() -> {
|
||||||
pathLine = !pathLine;
|
pathLine = !pathLine;
|
||||||
pathBtn.setChecked(pathLine);
|
pathBtn.setChecked(pathLine);
|
||||||
});
|
});
|
||||||
|
|
||||||
unitBtn.addListener(new Tooltip(l -> l.label(() -> "UnitLine " + (unitLine ? "[accent]Enabled[]" : "[gray]Disabled[]"))));
|
unitBtn.addListener(new Tooltip(l -> l.label(() -> bundle.get("hud.unitline") + " " + (unitLine ? bundle.get("hud.enabled") : bundle.get("hud.disabled")))));
|
||||||
unitBtn.clicked(() -> {
|
unitBtn.clicked(() -> {
|
||||||
unitLine = !unitLine;
|
unitLine = !unitLine;
|
||||||
unitBtn.setChecked(unitLine);
|
unitBtn.setChecked(unitLine);
|
||||||
});
|
});
|
||||||
|
|
||||||
logicBtn.addListener(new Tooltip(l -> l.label(() -> "LogicLine " + (logicLine ? "[accent]Enabled[]" : "[gray]Disabled[]"))));
|
logicBtn.addListener(new Tooltip(l -> l.label(() -> bundle.get("hud.logicline") + " " + (logicLine ? bundle.get("hud.enabled") : bundle.get("hud.disabled")))));
|
||||||
logicBtn.clicked(() -> {
|
logicBtn.clicked(() -> {
|
||||||
logicLine = !logicLine;
|
logicLine = !logicLine;
|
||||||
logicBtn.setChecked(logicLine);
|
logicBtn.setChecked(logicLine);
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ public class OverDrawer {
|
|||||||
Lines.stroke(1f, Pal.placing);
|
Lines.stroke(1f, Pal.placing);
|
||||||
Lines.dashLine(x1, y1, x2, y2, segs);
|
Lines.dashLine(x1, y1, x2, y2, segs);
|
||||||
|
|
||||||
Fonts.outline.draw(Strings.fixed(to.dst(from.x(), from.y()), 2) + " (" + segs + "tiles)",
|
Fonts.outline.draw(Strings.fixed(to.dst(from.x(), from.y()), 2) + " (" + segs + " " + bundle.get("tiles") + ")",
|
||||||
from.x() + Angles.trnsx(Angles.angle(from.x(), from.y(), to.getX(), to.getY()), player.unit().hitSize() + Math.min(segs, 6) * 8f),
|
from.x() + Angles.trnsx(Angles.angle(from.x(), from.y(), to.getX(), to.getY()), player.unit().hitSize() + Math.min(segs, 6) * 8f),
|
||||||
from.y() + Angles.trnsy(Angles.angle(from.x(), from.y(), to.getX(), to.getY()), player.unit().hitSize() + Math.min(segs, 6) * 8f) - 3,
|
from.y() + Angles.trnsy(Angles.angle(from.x(), from.y(), to.getX(), to.getY()), player.unit().hitSize() + Math.min(segs, 6) * 8f) - 3,
|
||||||
Pal.accent, 0.25f, false, Align.center);
|
Pal.accent, 0.25f, false, Align.center);
|
||||||
|
|||||||
@@ -93,12 +93,12 @@ public class SettingS {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void init(){
|
public void init(){
|
||||||
BaseDialog dialog = new BaseDialog("UnitInfo Setting");
|
BaseDialog dialog = new BaseDialog(bundle.get("setting.shar-title"));
|
||||||
dialog.addCloseButton();
|
dialog.addCloseButton();
|
||||||
sharset = new SettingsMenuDialog.SettingsTable();
|
sharset = new SettingsMenuDialog.SettingsTable();
|
||||||
dialog.cont.center().add(new Table(t -> t.pane(sharset).grow().row()));
|
dialog.cont.center().add(new Table(t -> t.pane(sharset).grow().row()));
|
||||||
ui.settings.shown(() -> {
|
ui.settings.shown(() -> {
|
||||||
Table settingUi = (Table)((Group)((Group)(ui.settings.getChildren().get(1))).getChildren().get(0)).getChildren().get(0); //This looks so stupid lol - lmfao
|
Table settingUi = (Table)((Group)((Group)(ui.settings.getChildren().get(1))).getChildren().get(0)).getChildren().get(0); //This looks so stupid lol - lmfao - hehe
|
||||||
settingUi.row();
|
settingUi.row();
|
||||||
settingUi.button(bundle.get("setting.shar-title"), Styles.cleart, dialog::show);
|
settingUi.button(bundle.get("setting.shar-title"), Styles.cleart, dialog::show);
|
||||||
});
|
});
|
||||||
@@ -106,9 +106,9 @@ public class SettingS {
|
|||||||
|
|
||||||
Seq<Seq<SharSetting>> settingSeq = new Seq<>();
|
Seq<Seq<SharSetting>> settingSeq = new Seq<>();
|
||||||
Seq<SharSetting> tapSeq = new Seq<>();
|
Seq<SharSetting> tapSeq = new Seq<>();
|
||||||
addGraphicSlideSetting("barstyle", 0, 0, 5, 1, s -> s == 0 ? "default bar" : s + "th bar", tapSeq);
|
addGraphicSlideSetting("barstyle", 0, 0, 5, 1, s -> s == 0 ? bundle.get("default-bar") : s + bundle.get("th-bar"), tapSeq);
|
||||||
addGraphicSlideSetting("infoUiScale", mobile ? 25 : 50, 25, 100, 5, s -> s + "%", tapSeq);
|
addGraphicSlideSetting("infoUiScale", mobile ? 25 : 50, 25, 100, 5, s -> s + "%", tapSeq);
|
||||||
addGraphicSlideSetting("coreItemCheckRate", 60, 6, 180, 6, s -> Strings.fixed(s/60f,1) + "sec", tapSeq);
|
addGraphicSlideSetting("coreItemCheckRate", 60, 6, 180, 6, s -> Strings.fixed(s/60f,1) + bundle.get("sec"), tapSeq);
|
||||||
addGraphicTypeSetting("wavemax", 0, 200,100, true, () -> true, s -> s + "waves", tapSeq);
|
addGraphicTypeSetting("wavemax", 0, 200,100, true, () -> true, s -> s + "waves", tapSeq);
|
||||||
addGraphicCheckSetting("infoui", true, tapSeq);
|
addGraphicCheckSetting("infoui", true, tapSeq);
|
||||||
addGraphicCheckSetting("pastwave", false, tapSeq);
|
addGraphicCheckSetting("pastwave", false, tapSeq);
|
||||||
|
|||||||
@@ -21,8 +21,7 @@ import mindustry.graphics.Pal;
|
|||||||
import mindustry.ui.Styles;
|
import mindustry.ui.Styles;
|
||||||
import mindustry.ui.dialogs.*;
|
import mindustry.ui.dialogs.*;
|
||||||
|
|
||||||
import static arc.Core.input;
|
import static arc.Core.*;
|
||||||
import static arc.Core.scene;
|
|
||||||
import static mindustry.Vars.*;
|
import static mindustry.Vars.*;
|
||||||
import static mindustry.Vars.ui;
|
import static mindustry.Vars.ui;
|
||||||
|
|
||||||
@@ -41,7 +40,7 @@ public class SchemDisplay extends Table {
|
|||||||
void setSchemTable() {
|
void setSchemTable() {
|
||||||
clear();
|
clear();
|
||||||
right();
|
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 image = (Image)b.getCells().first().get();
|
||||||
image.setDrawable(schemShown ? Icon.upOpen : Icon.downOpen);
|
image.setDrawable(schemShown ? Icon.upOpen : Icon.downOpen);
|
||||||
return schemShown;
|
return schemShown;
|
||||||
@@ -84,7 +83,7 @@ public class SchemDisplay extends Table {
|
|||||||
p.table(tt -> {
|
p.table(tt -> {
|
||||||
firstSchematic = null;
|
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()){
|
for(Schematic s : schematics.all()){
|
||||||
if(selectedTags.any() && !s.labels.containsAll(selectedTags)) continue;
|
if(selectedTags.any() && !s.labels.containsAll(selectedTags)) continue;
|
||||||
if(firstSchematic == null) firstSchematic = s;
|
if(firstSchematic == null) firstSchematic = s;
|
||||||
@@ -177,7 +176,7 @@ public class SchemDisplay extends Table {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(firstSchematic == null){
|
if(firstSchematic == null){
|
||||||
tt.add("@none");
|
tt.add(bundle.get("none"));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}).grow().get();
|
}).grow().get();
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ public class WaveDisplay extends Table {
|
|||||||
t.marginLeft(Scl.scl(modUiScale) * 3 * 8f);
|
t.marginLeft(Scl.scl(modUiScale) * 3 * 8f);
|
||||||
if(settings.getBool("emptywave") && state.rules.spawns.find(g -> g.getSpawned(j) > 0) == null) {
|
if(settings.getBool("emptywave") && state.rules.spawns.find(g -> g.getSpawned(j) > 0) == null) {
|
||||||
t.center();
|
t.center();
|
||||||
Label label = new Label("[lightgray]<Empty>[]");
|
Label label = new Label(bundle.get("empty"));
|
||||||
label.setFontScale(Scl.scl(modUiScale));
|
label.setFontScale(Scl.scl(modUiScale));
|
||||||
t.add(label);
|
t.add(label);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user