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

Apply adjustments on the "miss" bar display

This commit is contained in:
Salman Ahmed 2023-10-01 13:39:36 +03:00
parent 9e2b8254d9
commit 446c9c2efe

View File

@ -96,21 +96,20 @@ namespace osu.Game.Screens.Play.HUD
},
missBar = new BarPath
{
AutoSizeAxes = Axes.None,
RelativeSizeAxes = Axes.Both,
BarColour = miss_bar_colour,
GlowColour = miss_bar_glow_colour,
Alpha = 0f,
PathRadius = 10f,
PathRadius = 20f,
GlowPortion = 0.75f,
Margin = new MarginPadding(-10f),
Vertices = vertices
},
healthBar = new BarPath
{
AutoSizeAxes = Axes.None,
RelativeSizeAxes = Axes.Both,
BarColour = health_bar_colour,
GlowColour = health_bar_glow_colour,
PathRadius = 10f,
GlowPortion = 0.6f,
Vertices = vertices
},
}
@ -270,9 +269,11 @@ namespace osu.Game.Screens.Play.HUD
}
}
public float GlowPortion { get; init; }
protected override Color4 ColourAt(float position)
{
if (position >= 0.6f)
if (position >= GlowPortion)
return BarColour;
return Interpolation.ValueAt(position, Colour4.Black.Opacity(0.0f), GlowColour, 0.0, 0.6);