1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 14:02:55 +08:00

Avoid triangle bleeding by masking the triangle container without smoothness.

This commit is contained in:
Thomas Müller 2017-02-05 16:34:47 +01:00
parent fe86a9e431
commit d291103d22

View File

@ -203,13 +203,22 @@ namespace osu.Game.Overlays.Pause
EdgeSmoothness = new Vector2(2, 0), EdgeSmoothness = new Vector2(2, 0),
RelativeSizeAxes = Axes.Both RelativeSizeAxes = Axes.Both
}, },
new Triangles new Container
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
TriangleScale = 4, Masking = true,
ColourDark = OsuColour.Gray(0.88f), MaskingSmoothness = 0,
Shear = new Vector2(-0.2f, 0) Children = new[]
} {
new Triangles
{
RelativeSizeAxes = Axes.Both,
TriangleScale = 4,
ColourDark = OsuColour.Gray(0.88f),
Shear = new Vector2(-0.2f, 0)
}
}
},
} }
} }
} }