mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 21:03:08 +08:00
Fix both covers showing if cover is not fully opaque
This commit is contained in:
parent
040d393dd4
commit
32b3ea70b9
@ -41,6 +41,10 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
protected override DelayedLoadWrapper CreateDelayedLoadWrapper(Func<Drawable> createContentFunc, double timeBeforeLoad)
|
||||
=> new DelayedLoadUnloadWrapper(createContentFunc, timeBeforeLoad);
|
||||
|
||||
// by default, ModelBackedDrawable hides the old drawable only after the new one has been fully loaded.
|
||||
// this can lead to weird appearance if the cover is not fully opaque, so fade out as soon as a new load is requested in this particular case.
|
||||
protected override void OnLoadStarted() => ApplyHideTransforms(DisplayedDrawable);
|
||||
|
||||
protected override Drawable CreateDrawable(BeatmapSetInfo model)
|
||||
{
|
||||
if (model == null)
|
||||
|
Loading…
Reference in New Issue
Block a user