From 843a215df5bf0af03ea34a9c4e9ce4bda33701a6 Mon Sep 17 00:00:00 2001 From: Anuken Date: Mon, 29 Sep 2025 19:50:05 -0400 Subject: [PATCH] Screen border fix in menu --- core/src/mindustry/ui/fragments/MenuFragment.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/core/src/mindustry/ui/fragments/MenuFragment.java b/core/src/mindustry/ui/fragments/MenuFragment.java index 9677a606bb..9151714bd4 100644 --- a/core/src/mindustry/ui/fragments/MenuFragment.java +++ b/core/src/mindustry/ui/fragments/MenuFragment.java @@ -79,6 +79,10 @@ public class MenuFragment{ if(Core.scene.marginRight > 0){ paneLeft.draw(x + w - Core.scene.marginRight, y, Core.scene.marginRight, h); } + + if(Core.scene.marginBottom > 0){ + Tex.paneTop.draw(Core.scene.marginLeft, 0, Core.graphics.getWidth() - Core.scene.marginRight, Core.scene.marginBottom); + } }); parent.fill(c -> c.bottom().left().button("", new TextButtonStyle(){{ @@ -86,12 +90,6 @@ public class MenuFragment{ fontColor = Color.white; up = infoBanner; }}, ui.about::show).size(84, 45).name("info")); - - parent.fill((x, y, w, h) -> { - if(Core.scene.marginBottom > 0){ - Tex.paneTop.draw(0, 0, Core.graphics.getWidth(), Core.scene.marginBottom); - } - }); }else if(becontrol.active()){ parent.fill(c -> c.bottom().right().button("@be.check", Icon.refresh, () -> { ui.loadfrag.show();