Make StandardHealthDisplay glow extrude beyond the end of the bar.

This commit is contained in:
smoogipooo 2017-04-20 17:11:15 +09:00
parent 61090d918c
commit e92e08f86d

View File

@ -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);
}
}