diff --git a/core/assets-raw/sprites/ui/pane-left.9.png b/core/assets-raw/sprites/ui/pane-left.9.png new file mode 100644 index 0000000000..8019c41497 Binary files /dev/null and b/core/assets-raw/sprites/ui/pane-left.9.png differ diff --git a/core/assets-raw/sprites/ui/pane-right.9.png b/core/assets-raw/sprites/ui/pane-right.9.png new file mode 100644 index 0000000000..62f65042dd Binary files /dev/null and b/core/assets-raw/sprites/ui/pane-right.9.png differ diff --git a/core/src/mindustry/input/MobileInput.java b/core/src/mindustry/input/MobileInput.java index 489ec70add..958fe18b9d 100644 --- a/core/src/mindustry/input/MobileInput.java +++ b/core/src/mindustry/input/MobileInput.java @@ -279,7 +279,14 @@ public class MobileInput extends InputHandler implements GestureListener{ t.bottom().left(); t.button("@command", Icon.units, Styles.squareTogglet, () -> { commandMode = !commandMode; - }).width(155f).height(50f).margin(12f).checked(b -> commandMode); + }).width(155f).height(50f).margin(12f).checked(b -> commandMode).row(); + + //for better looking insets + t.rect((x, y, w, h) -> { + if(Core.scene.marginBottom > 0){ + Tex.paneRight.draw(x, 0, w, y); + } + }).fillX().row(); }); group.fill(t -> { diff --git a/core/src/mindustry/ui/fragments/HudFragment.java b/core/src/mindustry/ui/fragments/HudFragment.java index bda2c93c23..6b1fe1b2d6 100644 --- a/core/src/mindustry/ui/fragments/HudFragment.java +++ b/core/src/mindustry/ui/fragments/HudFragment.java @@ -129,6 +129,13 @@ public class HudFragment{ cont.top().left(); if(mobile){ + //for better inset visuals + cont.rect((x, y, w, h) -> { + if(Core.scene.marginTop > 0){ + Tex.paneRight.draw(x, y, w, Core.scene.marginTop); + } + }).fillX().row(); + cont.table(select -> { select.name = "mobile buttons"; select.left(); diff --git a/core/src/mindustry/ui/fragments/PlacementFragment.java b/core/src/mindustry/ui/fragments/PlacementFragment.java index a18d3af0c1..dc1eba79b5 100644 --- a/core/src/mindustry/ui/fragments/PlacementFragment.java +++ b/core/src/mindustry/ui/fragments/PlacementFragment.java @@ -421,6 +421,15 @@ public class PlacementFragment{ frame.add(mainStack).colspan(3).fill(); + frame.row(); + + //for better inset visuals at the bottom + frame.rect((x, y, w, h) -> { + if(Core.scene.marginBottom > 0){ + Tex.paneLeft.draw(x, 0, w, y); + } + }).colspan(3).fillX().row(); + //commandTable: commanded units { commandTable.touchable = Touchable.enabled;