Add back default content fade transitions

This commit is contained in:
Lucas A 2020-02-13 21:40:08 +01:00
parent dac0148c94
commit 049b0d93d1
2 changed files with 3 additions and 7 deletions

View File

@ -54,10 +54,6 @@ namespace osu.Game.Tests.Visual.Online
}
};
}
protected override void PopContentOut(Drawable content) => content.Hide();
protected override void PopContentIn(Drawable content) => content.Show();
}
[Test]

View File

@ -21,7 +21,7 @@ namespace osu.Game.Online
protected const double TRANSFORM_TIME = 300.0;
private Container viewContent;
private readonly Container viewContent;
protected override Container<Drawable> Content => viewContent;
[Resolved]
@ -69,9 +69,9 @@ namespace osu.Game.Online
}
}
protected abstract void PopContentOut(Drawable content);
protected virtual void PopContentOut(Drawable content) => content.FadeOut(TRANSFORM_TIME / 2, Easing.OutQuint);
protected abstract void PopContentIn(Drawable content);
protected virtual void PopContentIn(Drawable content) => content.FadeIn(TRANSFORM_TIME, Easing.OutQuint);
protected override void LoadComplete()
{