1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-10 12:22:54 +08:00

Apply post-merge fixes to LegacyStageBackground

This commit is contained in:
smoogipoo 2020-08-25 19:39:03 +09:00
parent 8dde512657
commit c09cef4fca

View File

@ -108,37 +108,38 @@ namespace osu.Game.Rulesets.Mania.Skinning
InternalChildren = new Drawable[] InternalChildren = new Drawable[]
{ {
new Container LegacyColourCompatibility.ApplyWithDoubledAlpha(new Box
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both
Child = new Box }, backgroundColour),
{
RelativeSizeAxes = Axes.Both,
Colour = backgroundColour
},
},
new HitTargetInsetContainer new HitTargetInsetContainer
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Children = new[] Children = new[]
{ {
new Box new Container
{ {
RelativeSizeAxes = Axes.Y, RelativeSizeAxes = Axes.Y,
Width = leftLineWidth, Width = leftLineWidth,
Scale = new Vector2(0.740f, 1), Scale = new Vector2(0.740f, 1),
Colour = lineColour, Alpha = hasLeftLine ? 1 : 0,
Alpha = hasLeftLine ? 1 : 0 Child = LegacyColourCompatibility.ApplyWithDoubledAlpha(new Box
{
RelativeSizeAxes = Axes.Both
}, lineColour)
}, },
new Box new Container
{ {
Anchor = Anchor.TopRight, Anchor = Anchor.TopRight,
Origin = Anchor.TopRight, Origin = Anchor.TopRight,
RelativeSizeAxes = Axes.Y, RelativeSizeAxes = Axes.Y,
Width = rightLineWidth, Width = rightLineWidth,
Scale = new Vector2(0.740f, 1), Scale = new Vector2(0.740f, 1),
Colour = lineColour, Alpha = hasRightLine ? 1 : 0,
Alpha = hasRightLine ? 1 : 0 Child = LegacyColourCompatibility.ApplyWithDoubledAlpha(new Box
{
RelativeSizeAxes = Axes.Both
}, lineColour)
}, },
} }
} }