Fix taiko right background not scaling with the playfield as intended.

This commit is contained in:
smoogipooo 2017-05-11 17:18:22 +09:00
parent 6fd95e0c52
commit 6cc54773e8

View File

@ -54,33 +54,33 @@ namespace osu.Game.Rulesets.Taiko.UI
{ {
AddInternal(new Drawable[] AddInternal(new Drawable[]
{ {
rightBackgroundContainer = new Container
{
Name = "Transparent playfield background",
RelativeSizeAxes = Axes.Both,
BorderThickness = 2,
Masking = true,
EdgeEffect = new EdgeEffect
{
Type = EdgeEffectType.Shadow,
Colour = Color4.Black.Opacity(0.2f),
Radius = 5,
},
Children = new Drawable[]
{
rightBackground = new Box
{
RelativeSizeAxes = Axes.Both,
Alpha = 0.6f
},
}
},
new ScaleFixContainer new ScaleFixContainer
{ {
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
Height = DEFAULT_PLAYFIELD_HEIGHT, Height = DEFAULT_PLAYFIELD_HEIGHT,
Children = new[] Children = new[]
{ {
rightBackgroundContainer = new Container
{
Name = "Transparent playfield background",
RelativeSizeAxes = Axes.Both,
BorderThickness = 2,
Masking = true,
EdgeEffect = new EdgeEffect
{
Type = EdgeEffectType.Shadow,
Colour = Color4.Black.Opacity(0.2f),
Radius = 5,
},
Children = new Drawable[]
{
rightBackground = new Box
{
RelativeSizeAxes = Axes.Both,
Alpha = 0.6f
},
}
},
new Container new Container
{ {
Name = "Transparent playfield elements", Name = "Transparent playfield elements",