Change HealthDisplay to be a CompositeDrawable

This commit is contained in:
Dean Herbert
2021-05-11 12:21:31 +09:00
parent 4be15cfc5a
commit 048677846b
4 changed files with 7 additions and 5 deletions

View File

@ -78,7 +78,7 @@ namespace osu.Game.Screens.Play.HUD
RelativeSizeAxes = Axes.X;
Margin = new MarginPadding { Top = 20 };
Children = new Drawable[]
InternalChildren = new Drawable[]
{
new Box
{

View File

@ -43,7 +43,7 @@ namespace osu.Game.Screens.Play.HUD
public FailingLayer()
{
RelativeSizeAxes = Axes.Both;
Children = new Drawable[]
InternalChildren = new Drawable[]
{
boxes = new Container
{

View File

@ -14,7 +14,7 @@ namespace osu.Game.Screens.Play.HUD
/// A container for components displaying the current player health.
/// Gets bound automatically to the <see cref="Rulesets.Scoring.HealthProcessor"/> when inserted to <see cref="DrawableRuleset.Overlays"/> hierarchy.
/// </summary>
public abstract class HealthDisplay : Container
public abstract class HealthDisplay : CompositeDrawable
{
[Resolved]
protected HealthProcessor HealthProcessor { get; private set; }