mirror of https://github.com/ppy/osu
Reword comments to make more sense
This commit is contained in:
parent
6f66e2fdd7
commit
7b3bd0b042
|
@ -56,7 +56,7 @@ private void load(LadderInfo ladder)
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Colour = Color4.Black,
|
Colour = Color4.Black,
|
||||||
},
|
},
|
||||||
new TournamentUpdateableOnlineBeatmapSetCover
|
new NoUnloadBeatmapSetCover
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Colour = OsuColour.Gray(0.5f),
|
Colour = OsuColour.Gray(0.5f),
|
||||||
|
@ -181,13 +181,12 @@ private void updateState()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private partial class TournamentUpdateableOnlineBeatmapSetCover : UpdateableOnlineBeatmapSetCover
|
private partial class NoUnloadBeatmapSetCover : UpdateableOnlineBeatmapSetCover
|
||||||
{
|
{
|
||||||
// no need to wait for Load because beatmap cover information does not change.
|
// As covers are displayed on stream, we want them to load as soon as possible.
|
||||||
protected override double LoadDelay => 0;
|
protected override double LoadDelay => 0;
|
||||||
|
|
||||||
// Use DelayedLoadWrapper to avoid beatmap cover unload in map pool.
|
// Use DelayedLoadWrapper to avoid content unloading when switching away to another screen.
|
||||||
// see https://github.com/ppy/osu/discussions/24337
|
|
||||||
protected override DelayedLoadWrapper CreateDelayedLoadWrapper(Func<Drawable> createContentFunc, double timeBeforeLoad)
|
protected override DelayedLoadWrapper CreateDelayedLoadWrapper(Func<Drawable> createContentFunc, double timeBeforeLoad)
|
||||||
=> new DelayedLoadWrapper(createContentFunc, timeBeforeLoad);
|
=> new DelayedLoadWrapper(createContentFunc, timeBeforeLoad);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue