Revert "Buffer the entire star rating range to fix overlapping alpha"

This reverts commit c680012523.
This commit is contained in:
smoogipoo
2021-08-11 18:15:53 +09:00
parent 0f5bea235c
commit eb59f3c591

View File

@ -33,41 +33,38 @@ namespace osu.Game.Screens.OnlinePlay.Components
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load()
{ {
InternalChild = new BufferedContainer InternalChildren = new Drawable[]
{ {
AutoSizeAxes = Axes.Both, new Container
Children = new Drawable[]
{ {
new Container RelativeSizeAxes = Axes.Both,
Masking = true,
CornerRadius = 1,
Children = new[]
{ {
RelativeSizeAxes = Axes.Both, minBackground = new Box
Padding = new MarginPadding { Vertical = 1 },
Children = new[]
{ {
minBackground = new Box Anchor = Anchor.TopCentre,
{ Origin = Anchor.TopCentre,
Anchor = Anchor.TopCentre, RelativeSizeAxes = Axes.Both,
Origin = Anchor.TopCentre, Size = new Vector2(0.5f),
RelativeSizeAxes = Axes.Both, },
Size = new Vector2(0.5f), maxBackground = new Box
}, {
maxBackground = new Box Anchor = Anchor.BottomCentre,
{ Origin = Anchor.BottomCentre,
Anchor = Anchor.BottomCentre, RelativeSizeAxes = Axes.Both,
Origin = Anchor.BottomCentre, Size = new Vector2(0.5f),
RelativeSizeAxes = Axes.Both, },
Size = new Vector2(0.5f), }
}, },
} new FillFlowContainer
}, {
new FillFlowContainer AutoSizeAxes = Axes.Both,
Children = new Drawable[]
{ {
AutoSizeAxes = Axes.Both, minDisplay = new StarRatingDisplay(default),
Children = new Drawable[] maxDisplay = new StarRatingDisplay(default)
{
minDisplay = new StarRatingDisplay(default),
maxDisplay = new StarRatingDisplay(default)
}
} }
} }
}; };