Remove unnecessary fading

This commit is contained in:
iiSaLMaN 2019-07-06 12:10:30 +03:00
parent ae28d82b2f
commit 6fd3ad5c1d
1 changed files with 3 additions and 3 deletions

View File

@ -35,15 +35,15 @@ public UpdateableBeatmapBackgroundSprite(BeatmapSetCoverType beatmapSetCoverType
protected override DelayedLoadWrapper CreateDelayedLoadWrapper(Func<Drawable> createContentFunc, double timeBeforeLoad)
=> new DelayedLoadUnloadWrapper(createContentFunc, timeBeforeLoad, UnloadDelay);
protected override double TransformDuration => 400;
protected override Drawable CreateDrawable(BeatmapInfo model)
{
Drawable drawable = getDrawableForModel(model);
var drawable = getDrawableForModel(model);
drawable.RelativeSizeAxes = Axes.Both;
drawable.Anchor = Anchor.Centre;
drawable.Origin = Anchor.Centre;
drawable.FillMode = FillMode.Fill;
drawable.OnLoadComplete += d => d.FadeInFromZero(400);
return drawable;
}