From 274184e234c0c328e6d986319a15aeb7dac571a0 Mon Sep 17 00:00:00 2001 From: MEEPofFaith <54301439+MEEPofFaith@users.noreply.github.com> Date: Tue, 16 Apr 2024 18:04:00 -0700 Subject: [PATCH] Less table --- core/src/mindustry/mod/Mods.java | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/core/src/mindustry/mod/Mods.java b/core/src/mindustry/mod/Mods.java index 49f4af97e2..85481aaf9e 100644 --- a/core/src/mindustry/mod/Mods.java +++ b/core/src/mindustry/mod/Mods.java @@ -653,9 +653,9 @@ public class Mods implements Loadable{ new Dialog(""){{ setFillParent(true); cont.margin(15); - cont.add("@mod.dependencies.error"); + cont.add("@mod.dependencies.error").colspan(2); cont.row(); - cont.image().width(300f).pad(2).height(4f).color(Color.scarlet); + cont.image().width(300f).colspan(2).pad(2).height(4f).color(Color.scarlet); cont.row(); cont.pane(p -> { mods.each(LoadedMod::hasUnmetDependencies, mod -> { @@ -669,24 +669,22 @@ public class Mods implements Loadable{ }).growX().padBottom(8f).padLeft(12f); p.row(); }); - }).fillX(); + }).fillX().colspan(2); cont.row(); - cont.table(b -> { - b.button("@ok", this::hide).size(150, 50); - b.button("@mod.dependencies.download", () -> { - hide(); - Seq toImport = new Seq<>(); - mods.each(LoadedMod::hasUnmetDependencies, mod -> { - mod.missingDependencies.each(toImport::addUnique); - }); - Seq remaining = toImport.copy(); - ui.mods.importDependencies(remaining); - toImport.removeAll(remaining); - displayDependencyImportStatus(remaining, toImport); - }).size(150, 50); - }); + cont.button("@ok", this::hide).size(150, 50); + cont.button("@mod.dependencies.download", () -> { + hide(); + Seq toImport = new Seq<>(); + mods.each(LoadedMod::hasUnmetDependencies, mod -> { + mod.missingDependencies.each(toImport::addUnique); + }); + Seq remaining = toImport.copy(); + ui.mods.importDependencies(remaining); + toImport.removeAll(remaining); + displayDependencyImportStatus(remaining, toImport); + }).size(150, 50); }}.show(); } }