Fixed editor not showing after second view

This commit is contained in:
Anuken
2019-08-01 11:26:28 -04:00
parent 69ee5257f2
commit b1980a17ac
5 changed files with 10 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
package io.anuke.mindustry.ui.fragments;
import io.anuke.arc.scene.Group;
import io.anuke.arc.scene.actions.*;
import io.anuke.arc.scene.event.Touchable;
import io.anuke.arc.scene.ui.Label;
import io.anuke.arc.scene.ui.TextButton;
@@ -44,11 +45,12 @@ public class LoadingFragment extends Fragment{
public void show(String text){
table.<Label>find("namelabel").setText(text);
table.visible(true);
table.getColor().a = 1f;
table.toFront();
}
public void hide(){
table.visible(false);
button.visible(false);
table.toFront();
table.actions(Actions.fadeOut(1f), Actions.visible(false));
}
}