mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-20 17:28:14 +07: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:
parent
16b9d68773
commit
7dce2ee9ec
@ -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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user