diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index abd78ad4eb..592a92c8c0 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -3202,8 +3202,8 @@ cutsceneaction.label.pan = pan cutsceneaction.label.zoom = zoom cutsceneaction.label.stop = stop cutsceneaction.label.shake = shake -cutsceneaction.label.gethud = get Hud -cutsceneaction.label.sethud = set Hud +cutsceneaction.label.gethud = get HUD +cutsceneaction.label.sethud = set HUD fetchtype.label.unit = unit fetchtype.label.player = player fetchtype.label.core = core @@ -3386,7 +3386,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast @@ -3410,7 +3410,7 @@ tilelayer.label.ore = ore tilelayer.label.block = block tilelayer.label.building = building -name.token.Jump = jump +name.token.jump = Jump name.token.color = color name.token.width = width name.token.height = height @@ -3483,6 +3483,7 @@ name.token.natural = natural name.token.speed = speed name.token.level = level name.token.duration = duration +name.token.seconds = seconds name.token.shown = shown name.token.data = data name.token.effect = effect @@ -3494,7 +3495,7 @@ name.token.volume = volume name.token.pitch = pitch name.token.pan = pan name.token.limit = limit -name.token.of-id- = of id\# +name.token.id = id \# name.token.replace = replace? name.token.for = for name.token.success = success @@ -3578,13 +3579,13 @@ name.token.wave = wave name.token.bubble = bubble name.token.music = music name.token.interrupt = interrupt -name.token.all = All -name.token.beams = Beams -name.token.block = Block -name.token.charge = Charge -name.token.environment = Environment -name.token.explosions = Explosions -name.token.loops = Loops -name.token.movement = Movement -name.token.shoot = Shoot +name.token.all = all +name.token.beams = beams +name.token.block = block +name.token.charge = charge +name.token.environment = environment +name.token.explosions = explosions +name.token.loops = loops +name.token.movement = movement +name.token.shoot = shoot name.token.ui = UI diff --git a/core/assets/bundles/bundle_be.properties b/core/assets/bundles/bundle_be.properties index 1660df36f8..7d1b6a9c25 100644 --- a/core/assets/bundles/bundle_be.properties +++ b/core/assets/bundles/bundle_be.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_bg.properties b/core/assets/bundles/bundle_bg.properties index 17fe168d7f..0580b08455 100644 --- a/core/assets/bundles/bundle_bg.properties +++ b/core/assets/bundles/bundle_bg.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_ca.properties b/core/assets/bundles/bundle_ca.properties index 49c7b25849..df3ab6a621 100644 --- a/core/assets/bundles/bundle_ca.properties +++ b/core/assets/bundles/bundle_ca.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_cs.properties b/core/assets/bundles/bundle_cs.properties index 333f4795cb..287901d1ea 100644 --- a/core/assets/bundles/bundle_cs.properties +++ b/core/assets/bundles/bundle_cs.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_da.properties b/core/assets/bundles/bundle_da.properties index 47cd3f7eb7..92b183cbe6 100644 --- a/core/assets/bundles/bundle_da.properties +++ b/core/assets/bundles/bundle_da.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_de.properties b/core/assets/bundles/bundle_de.properties index e75a9bc224..bad5e5204e 100644 --- a/core/assets/bundles/bundle_de.properties +++ b/core/assets/bundles/bundle_de.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_et.properties b/core/assets/bundles/bundle_et.properties index 1df944d6d5..a18c43f9a1 100644 --- a/core/assets/bundles/bundle_et.properties +++ b/core/assets/bundles/bundle_et.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_eu.properties b/core/assets/bundles/bundle_eu.properties index cb07c8e498..880f7f7783 100644 --- a/core/assets/bundles/bundle_eu.properties +++ b/core/assets/bundles/bundle_eu.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_fi.properties b/core/assets/bundles/bundle_fi.properties index 985f6e832f..30ffc7c5b1 100644 --- a/core/assets/bundles/bundle_fi.properties +++ b/core/assets/bundles/bundle_fi.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_fil.properties b/core/assets/bundles/bundle_fil.properties index d6d01f9613..15c729a0c3 100644 --- a/core/assets/bundles/bundle_fil.properties +++ b/core/assets/bundles/bundle_fil.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_fr.properties b/core/assets/bundles/bundle_fr.properties index 66ba09793c..175da2740c 100644 --- a/core/assets/bundles/bundle_fr.properties +++ b/core/assets/bundles/bundle_fr.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_it.properties b/core/assets/bundles/bundle_it.properties index b1b9f6487a..d0be59e2fc 100644 --- a/core/assets/bundles/bundle_it.properties +++ b/core/assets/bundles/bundle_it.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_ja.properties b/core/assets/bundles/bundle_ja.properties index 6ff969c7f9..49122c3600 100644 --- a/core/assets/bundles/bundle_ja.properties +++ b/core/assets/bundles/bundle_ja.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_ko.properties b/core/assets/bundles/bundle_ko.properties index 603e333a7d..b4ca4c613a 100644 --- a/core/assets/bundles/bundle_ko.properties +++ b/core/assets/bundles/bundle_ko.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_lt.properties b/core/assets/bundles/bundle_lt.properties index 4f3d05b182..1bfc4ed6e5 100644 --- a/core/assets/bundles/bundle_lt.properties +++ b/core/assets/bundles/bundle_lt.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_nl.properties b/core/assets/bundles/bundle_nl.properties index d9b31a8923..5f7604c920 100644 --- a/core/assets/bundles/bundle_nl.properties +++ b/core/assets/bundles/bundle_nl.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_nl_BE.properties b/core/assets/bundles/bundle_nl_BE.properties index df4bac4154..08eeac6308 100644 --- a/core/assets/bundles/bundle_nl_BE.properties +++ b/core/assets/bundles/bundle_nl_BE.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_pl.properties b/core/assets/bundles/bundle_pl.properties index ccd46af300..42cc37c6b3 100644 --- a/core/assets/bundles/bundle_pl.properties +++ b/core/assets/bundles/bundle_pl.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_pt_BR.properties b/core/assets/bundles/bundle_pt_BR.properties index de5dcd99a5..3edef12df1 100644 --- a/core/assets/bundles/bundle_pt_BR.properties +++ b/core/assets/bundles/bundle_pt_BR.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_pt_PT.properties b/core/assets/bundles/bundle_pt_PT.properties index 23c07e6166..61f4a17274 100644 --- a/core/assets/bundles/bundle_pt_PT.properties +++ b/core/assets/bundles/bundle_pt_PT.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_ro.properties b/core/assets/bundles/bundle_ro.properties index 4ac13bebcf..ae644c9ddb 100644 --- a/core/assets/bundles/bundle_ro.properties +++ b/core/assets/bundles/bundle_ro.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_ru.properties b/core/assets/bundles/bundle_ru.properties index ec115c2bce..4c1043e8c4 100644 --- a/core/assets/bundles/bundle_ru.properties +++ b/core/assets/bundles/bundle_ru.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_sr.properties b/core/assets/bundles/bundle_sr.properties index 0ee76817de..9ecb6f2a4a 100644 --- a/core/assets/bundles/bundle_sr.properties +++ b/core/assets/bundles/bundle_sr.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_sv.properties b/core/assets/bundles/bundle_sv.properties index 66526fc023..f6f0076002 100644 --- a/core/assets/bundles/bundle_sv.properties +++ b/core/assets/bundles/bundle_sv.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_th.properties b/core/assets/bundles/bundle_th.properties index ca01bdfd98..a7963cefea 100644 --- a/core/assets/bundles/bundle_th.properties +++ b/core/assets/bundles/bundle_th.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_tk.properties b/core/assets/bundles/bundle_tk.properties index 3e943313b2..4ad7b9ded1 100644 --- a/core/assets/bundles/bundle_tk.properties +++ b/core/assets/bundles/bundle_tk.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_tr.properties b/core/assets/bundles/bundle_tr.properties index 8228d5cddd..a7f6f0c1d3 100644 --- a/core/assets/bundles/bundle_tr.properties +++ b/core/assets/bundles/bundle_tr.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_uk_UA.properties b/core/assets/bundles/bundle_uk_UA.properties index 7b28c12ab3..67cb48b922 100644 --- a/core/assets/bundles/bundle_uk_UA.properties +++ b/core/assets/bundles/bundle_uk_UA.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_vi.properties b/core/assets/bundles/bundle_vi.properties index fcefe4b41e..85468de3be 100644 --- a/core/assets/bundles/bundle_vi.properties +++ b/core/assets/bundles/bundle_vi.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/assets/bundles/bundle_zh_TW.properties b/core/assets/bundles/bundle_zh_TW.properties index 877dba7242..8525a2f755 100644 --- a/core/assets/bundles/bundle_zh_TW.properties +++ b/core/assets/bundles/bundle_zh_TW.properties @@ -3381,7 +3381,7 @@ lunitcontrol.label.build = build block lunitcontrol.label.getblock = get block lunitcontrol.label.deconstruct = deconstruct lunitcontrol.label.within = within? -lunitcontrol.label.boost = boost? +lunitcontrol.label.boost = boost messagetype.label.notify = notify messagetype.label.announce = announce messagetype.label.toast = toast diff --git a/core/src/mindustry/logic/LCanvas.java b/core/src/mindustry/logic/LCanvas.java index 18a88c7aa3..767af6ba1d 100644 --- a/core/src/mindustry/logic/LCanvas.java +++ b/core/src/mindustry/logic/LCanvas.java @@ -60,10 +60,14 @@ public class LCanvas extends Table{ } /** @return if statement elements should have rows. */ - public static boolean useRows(){ + public static boolean isCompact(){ return Core.graphics.getWidth() < Scl.scl(900f) * 1.2f; } + public static float getTargetWidth(){ + return isCompact() ? 410f : Mathf.clamp(Core.graphics.getWidth() / Scl.scl(1f) * 0.95f - Scl.scl(80f), 400f, 1200f); + } + public static void tooltip(Cell cell, String key){ String lkey = key.toLowerCase().replace(" ", ""); if(Core.bundle.has(lkey)){ @@ -101,7 +105,7 @@ public class LCanvas extends Table{ } public void rebuild(){ - targetWidth = useRows() ? 400f : 900f; + targetWidth = getTargetWidth(); float s = pane != null ? pane.getVisualScrollY() : 0f; String toLoad = statements != null ? save() : null; @@ -492,12 +496,15 @@ public class LCanvas extends Table{ row(); - table(t -> { - t.left(); - t.marginLeft(4); - t.setColor(color); - st.build(t); - }).pad(4).padTop(2).left().grow(); + Table t = st.useWrapping() ? new WrapTable() : new Table(); + + t.left(); + t.marginLeft(4); + t.setColor(color); + if(st.useWrapping()) t.marginRight(4f); + st.build(t); + + add(t).pad(4).padTop(2).left().grow(); marginBottom(7); } diff --git a/core/src/mindustry/logic/LStatement.java b/core/src/mindustry/logic/LStatement.java index 8691fb06fd..915841e889 100644 --- a/core/src/mindustry/logic/LStatement.java +++ b/core/src/mindustry/logic/LStatement.java @@ -62,6 +62,10 @@ public abstract class LStatement{ return read.size == 0 ? null : read.first(); } + public boolean useWrapping(){ + return true; + } + public boolean hidden(){ return false; } @@ -181,24 +185,32 @@ public abstract class LStatement{ protected Cell field(Table table, String value, Cons setter){ return table.field(value, Styles.nodeField, s -> setter.get(sanitize(s))) - .size(144f, 40f).pad(2f).color(table.color); + .size(180f, 40f).pad(2f).color(table.color); } protected Cell fields(Table table, String desc, String value, Cons setter){ - table.add(desc).padLeft(10).left().self(this::param); - return field(table, value, setter).width(85f).padRight(10).left(); + return fields(table, desc, LCanvas.isCompact(), value, setter); } - /** Puts the text and field in one table, taking up one cell. */ - protected Cell fieldst(Table table, String desc, String value, Cons setter){ - Cell[] result = {null}; - table.table(t -> { - t.setColor(table.color); - t.add(desc).padLeft(10).left().self(this::param); - result[0] = field(t, value, setter).width(85f).padRight(10).left(); - }); + protected Cell fields(Table table, String value, Cons setter){ + return field(table, value, setter).width(180f); + } - return result[0]; + protected Cell fields(Table table, String desc, boolean nameAfterField, String value, Cons setter){ + Table sub = new Table(); + sub.setColor(table.color); + table.add(sub); + float width = 180f; + String text = bundle(desc); + + if(nameAfterField){ + var result = field(sub, value, setter).width(width).padRight(4f).left(); + sub.add(text).padRight(12f).self(this::param); + return result; + }else{ + sub.add(text).padLeft(10).self(this::param); + return field(sub, value, setter).width(width).padRight(10).left(); + } } /** Adds color edit button */ @@ -218,16 +230,6 @@ public abstract class LStatement{ }, Styles.logict, () -> {}).size(40f).padLeft(-11).color(table.color); } - protected Cell fields(Table table, String value, Cons setter){ - return field(table, value, setter).width(85f); - } - - protected void row(Table table){ - if(LCanvas.useRows()){ - table.row(); - } - } - protected void showSelect(Button b, T[] values, T current, Cons getter, int cols, Cons sizer){ showSelectTable(b, (t, hide) -> { ButtonGroup