From e92e08f86d805ab1b7e387920d8e2dd72d11c64b Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Thu, 20 Apr 2017 17:11:15 +0900 Subject: [PATCH] Make StandardHealthDisplay glow extrude beyond the end of the bar. --- osu.Game/Rulesets/UI/StandardHealthDisplay.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/osu.Game/Rulesets/UI/StandardHealthDisplay.cs b/osu.Game/Rulesets/UI/StandardHealthDisplay.cs index 9294cc3a1a..e2016896c9 100644 --- a/osu.Game/Rulesets/UI/StandardHealthDisplay.cs +++ b/osu.Game/Rulesets/UI/StandardHealthDisplay.cs @@ -34,7 +34,8 @@ namespace osu.Game.Rulesets.UI { Colour = glowColour, Radius = 8, - Type = EdgeEffectType.Glow + Roundness = 4, + Type = EdgeEffectType.Glow, }; } } @@ -51,7 +52,7 @@ namespace osu.Game.Rulesets.UI fill = new Container { RelativeSizeAxes = Axes.Both, - Scale = new Vector2(0, 1), + Size = new Vector2(0, 1), Masking = true, Children = new[] { @@ -64,6 +65,6 @@ namespace osu.Game.Rulesets.UI }; } - protected override void SetHealth(float value) => fill.ScaleTo(new Vector2(value, 1), 200, EasingTypes.OutQuint); + protected override void SetHealth(float value) => fill.ResizeTo(new Vector2(value, 1), 200, EasingTypes.OutQuint); } }