From c181204700c7ba948bd89a70d7d25fbf8da15165 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 7 Feb 2021 10:44:45 -0500 Subject: [PATCH] Fixed mod descriptions going off-screen --- core/src/mindustry/ui/dialogs/ModsDialog.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/ui/dialogs/ModsDialog.java b/core/src/mindustry/ui/dialogs/ModsDialog.java index 802960f715..084a85baff 100644 --- a/core/src/mindustry/ui/dialogs/ModsDialog.java +++ b/core/src/mindustry/ui/dialogs/ModsDialog.java @@ -481,9 +481,9 @@ public class ModsDialog extends BaseDialog{ }, Styles.clearPartialt, () -> { var sel = new BaseDialog(mod.name); - sel.cont.add(mod.description + "\n\n[accent]" + Core.bundle.get("editor.author") + "[lightgray] " + mod.author).width(mobile ? 400f : 500f).wrap().pad(4f).labelAlign(Align.center, Align.left); + sel.cont.pane(p -> p.add(mod.description + "\n\n[accent]" + Core.bundle.get("editor.author") + "[lightgray] " + mod.author) + .width(mobile ? 400f : 500f).wrap().pad(4f).labelAlign(Align.center, Align.left)).grow(); sel.buttons.defaults().size(150f, 54f).pad(2f); - sel.setFillParent(false); sel.buttons.button("@back", Icon.left, () -> { sel.clear(); sel.hide();