1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-10-06 21:07:25 +03:00

Do not the overlap. (#6555)

I got sick of waiting for this to get patched in vanilla so I did it myself.
This commit is contained in:
buthed010203 2022-02-04 18:53:14 -05:00 committed by GitHub
parent 16b9d68773
commit 7dce2ee9ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -303,6 +303,7 @@ public class UI implements ApplicationListener, Loadable{
Table table = new Table();
table.touchable = Touchable.disabled;
table.setFillParent(true);
table.marginTop(Core.scene.find("coreinfo").getPrefHeight() / Scl.scl() / 2);
table.actions(Actions.fadeOut(7f, Interp.fade), Actions.remove());
table.top().add(info).style(Styles.outlineLabel).padTop(10);
Core.scene.add(table);
@ -311,8 +312,9 @@ public class UI implements ApplicationListener, Loadable{
/** Shows a fading label at the top of the screen. */
public void showInfoToast(String info, float duration){
Table table = new Table();
table.setFillParent(true);
table.touchable = Touchable.disabled;
table.setFillParent(true);
table.marginTop(Core.scene.find("coreinfo").getPrefHeight() / Scl.scl() / 2);
table.update(() -> {
if(state.isMenu()) table.remove();
});