Skip to content

Commit

Permalink
Fixed dialog padding
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Sep 16, 2019
1 parent 4a50192 commit 0c59553
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/io/anuke/mindustry/core/UI.java
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,13 @@ public void showInfo(String info){

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();
}
Expand Down

0 comments on commit 0c59553

Please sign in to comment.