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

Adjust gradient size slightly and make const

This commit is contained in:
Dean Herbert 2020-04-09 14:55:02 +09:00
parent 1c72afe8c4
commit c5005eb378

View File

@ -33,6 +33,8 @@ namespace osu.Game.Screens.Play.HUD
/// </summary>
public double LowHealthThreshold = 0.20f;
private const float gradient_size = 0.3f;
private readonly Container boxes;
public FailingLayer()
@ -51,12 +53,12 @@ namespace osu.Game.Screens.Play.HUD
{
RelativeSizeAxes = Axes.Both,
Colour = ColourInfo.GradientVertical(Color4.White, Color4.White.Opacity(0)),
Height = 0.2f,
Height = gradient_size,
},
new Box
{
RelativeSizeAxes = Axes.Both,
Height = 0.2f,
Height = gradient_size,
Colour = ColourInfo.GradientVertical(Color4.White.Opacity(0), Color4.White),
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,