Fixed dialog padding

This commit is contained in:
Anuken
2019-09-15 21:57:19 -04:00
parent 4a50192937
commit 0c59553b3d

View File

@@ -319,13 +319,13 @@ public class UI implements ApplicationListener, Loadable{
public void showErrorMessage(String text){
new Dialog(""){{
setFillParent(false);
setFillParent(true);
cont.margin(15f);
cont.add("$error.title");
cont.row();
cont.addImage().fillX().pad(2).height(4f).color(Color.scarlet);
cont.addImage().width(300f).pad(2).height(4f).color(Color.scarlet);
cont.row();
cont.add(text).pad(2f);
cont.add(text).pad(2f).growX().wrap();
buttons.addButton("$ok", this::hide).size(120, 50).pad(4);
}}.show();
}