Better inset borders for phones

This commit is contained in:
Anuken
2022-11-09 13:56:53 -05:00
parent ef526a6d83
commit 1651dc520c
5 changed files with 24 additions and 1 deletions

View File

@@ -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 -> {