Minor tweaks to make Android inset area look less awful

This commit is contained in:
Anuken
2025-09-28 16:02:49 -04:00
parent 6c0884a8d9
commit dd8db10e72
2 changed files with 30 additions and 0 deletions

View File

@@ -194,6 +194,21 @@ public class HudFragment{
//.padLeft(dsize * 5 + 4f) to prevent alpha overlap on left
});
//left/right gutter areas
parent.fill((x, y, w, h) -> {
x = 0f;
y = 0f;
w = Core.graphics.getWidth();
h = Core.graphics.getHeight();
if(Core.scene.marginLeft > 0){
paneRight.draw(x, y, Core.scene.marginLeft, h);
}
if(Core.scene.marginRight > 0){
paneLeft.draw(x + w - Core.scene.marginRight, y, Core.scene.marginRight, h);
}
});
//"waiting for players"
parent.fill(t -> {
t.name = "waiting";

View File

@@ -66,6 +66,21 @@ public class MenuFragment{
//info icon
if(mobile){
//left/right gutter areas
parent.fill((x, y, w, h) -> {
x = 0f;
y = 0f;
w = Core.graphics.getWidth();
h = Core.graphics.getHeight();
if(Core.scene.marginLeft > 0){
paneRight.draw(x, y, Core.scene.marginLeft, h);
}
if(Core.scene.marginRight > 0){
paneLeft.draw(x + w - Core.scene.marginRight, y, Core.scene.marginRight, h);
}
});
parent.fill(c -> c.bottom().left().button("", new TextButtonStyle(){{
font = Fonts.def;
fontColor = Color.white;