Minor tweaks to make Android inset area look less awful
This commit is contained in:
@@ -194,6 +194,21 @@ public class HudFragment{
|
|||||||
//.padLeft(dsize * 5 + 4f) to prevent alpha overlap on left
|
//.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"
|
//"waiting for players"
|
||||||
parent.fill(t -> {
|
parent.fill(t -> {
|
||||||
t.name = "waiting";
|
t.name = "waiting";
|
||||||
|
|||||||
@@ -66,6 +66,21 @@ public class MenuFragment{
|
|||||||
|
|
||||||
//info icon
|
//info icon
|
||||||
if(mobile){
|
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(){{
|
parent.fill(c -> c.bottom().left().button("", new TextButtonStyle(){{
|
||||||
font = Fonts.def;
|
font = Fonts.def;
|
||||||
fontColor = Color.white;
|
fontColor = Color.white;
|
||||||
|
|||||||
Reference in New Issue
Block a user