Possible fix for notched insets

This commit is contained in:
Anuken
2020-12-02 13:02:27 -05:00
parent c26a9bd123
commit 9c616fd03b
9 changed files with 26 additions and 13 deletions

View File

@@ -1,5 +1,6 @@
package mindustry.ui.fragments;
import arc.*;
import arc.func.*;
import arc.graphics.*;
import arc.scene.*;
@@ -18,7 +19,11 @@ public class LoadingFragment extends Fragment{
@Override
public void build(Group parent){
parent.fill(Styles.black8, t -> {
parent.fill(t -> {
//rect must fill screen completely.
t.rect((x, y, w, h) -> {
Styles.black8.draw(0, 0, Core.graphics.getWidth(), Core.graphics.getHeight());
});
t.visible = false;
t.touchable = Touchable.enabled;
t.add().height(133f).row();