Deploy animation

This commit is contained in:
Anuken
2019-09-11 16:54:18 -04:00
parent d9c7665aca
commit 44842d3221
5 changed files with 92 additions and 16 deletions

View File

@@ -520,6 +520,21 @@ public class HudFragment extends Fragment{
Core.scene.add(image);
}
public void showLand(){
Image image = new Image();
image.getColor().a = 1f;
image.touchable(Touchable.disabled);
image.setFillParent(true);
image.actions(Actions.fadeOut(0.8f), Actions.remove());
image.update(() -> {
image.toFront();
if(state.is(State.menu)){
image.remove();
}
});
Core.scene.add(image);
}
private void showLaunchConfirm(){
FloatingDialog dialog = new FloatingDialog("$launch");
dialog.update(() -> {