mirror of
https://github.com/ppy/osu.git
synced 2025-01-21 06:02:56 +08:00
Remove buffered container (doesn't seem like it's doing anything anymore)
This commit is contained in:
parent
9451613391
commit
a8c9c2bf17
@ -48,7 +48,7 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
private Container difficultyColourBar = null!;
|
private Container difficultyColourBar = null!;
|
||||||
private StarCounter starCounter = null!;
|
private StarCounter starCounter = null!;
|
||||||
private BufferedContainer bufferedContent = null!;
|
private Container content = null!;
|
||||||
|
|
||||||
public BeatmapInfoWedgeV2()
|
public BeatmapInfoWedgeV2()
|
||||||
{
|
{
|
||||||
@ -69,7 +69,7 @@ namespace osu.Game.Screens.Select
|
|||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
// We want to buffer the wedge to avoid weird transparency overlaps between the colour bar and the background.
|
// We want to buffer the wedge to avoid weird transparency overlaps between the colour bar and the background.
|
||||||
Child = bufferedContent = new BufferedContainer(pixelSnapping: true)
|
Child = content = new Container
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
@ -177,13 +177,13 @@ namespace osu.Game.Screens.Select
|
|||||||
Info = new WedgeInfoText(beatmap) { Shear = -Shear }
|
Info = new WedgeInfoText(beatmap) { Shear = -Shear }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, loaded =>
|
}, d =>
|
||||||
{
|
{
|
||||||
// Ensure we are the most recent loaded wedge.
|
// Ensure we are the most recent loaded wedge.
|
||||||
if (loaded != loadingInfo) return;
|
if (d != loadingInfo) return;
|
||||||
|
|
||||||
removeOldInfo();
|
removeOldInfo();
|
||||||
bufferedContent.Add(DisplayedContent = loaded);
|
content.Add(DisplayedContent = d);
|
||||||
|
|
||||||
Info.DisplayedStars.BindValueChanged(s =>
|
Info.DisplayedStars.BindValueChanged(s =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user