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