Fixed editor not showing after second view
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user