Dialog fix

This commit is contained in:
Anuken
2019-09-08 23:30:15 -04:00
parent c4c0f45228
commit 3bac32e04a
2 changed files with 3 additions and 3 deletions

View File

@ -15926,7 +15926,7 @@ window-empty
rotate: false rotate: false
xy: 1308, 494 xy: 1308, 494
size: 27, 61 size: 27, 61
split: 2, 2, 2, 2 split: 4, 4, 2, 2
orig: 27, 61 orig: 27, 61
offset: 0, 0 offset: 0, 0
index: -1 index: -1

View File

@ -327,9 +327,9 @@ public class UI implements ApplicationListener, Loadable{
cont.margin(15); cont.margin(15);
cont.add("$error.title").colspan(2); cont.add("$error.title").colspan(2);
cont.row(); cont.row();
cont.addImage().fillX().pad(2).colspan(2).height(4f).color(Color.SCARLET); cont.addImage().width(300f).pad(2).colspan(2).height(4f).color(Color.SCARLET);
cont.row(); cont.row();
cont.add((text.startsWith("$") ? Core.bundle.get(text.substring(1)) : text) + (message == null ? "" : "\n[lightgray](" + message + ")")).colspan(2).center().get().setAlignment(Align.center); cont.add((text.startsWith("$") ? Core.bundle.get(text.substring(1)) : text) + (message == null ? "" : "\n[lightgray](" + message + ")")).colspan(2).wrap().growX().center().get().setAlignment(Align.center);
cont.row(); cont.row();
Collapser col = new Collapser(base -> base.pane(t -> t.margin(14f).add(Strings.parseException(exc, true)).color(Color.LIGHT_GRAY).left()), true); Collapser col = new Collapser(base -> base.pane(t -> t.margin(14f).add(Strings.parseException(exc, true)).color(Color.LIGHT_GRAY).left()), true);