Remove class StageHint and usage

This commit is contained in:
mcendu
2019-12-29 23:18:50 +08:00
parent cdfbe96e9b
commit 61fb9f5613
2 changed files with 5 additions and 18 deletions

View File

@ -22,11 +22,11 @@ namespace osu.Game.Rulesets.Mania.UI.Components
private readonly IBindable<ScrollingDirection> direction = new Bindable<ScrollingDirection>();
private readonly StageHint stageHint;
private readonly Drawable stageHint;
public ColumnHitObjectArea(HitObjectContainer hitObjectContainer)
{
InternalChildren = new Drawable[]
InternalChildren = new[]
{
stageHint = new DefaultStageHint
{
@ -60,11 +60,12 @@ namespace osu.Game.Rulesets.Mania.UI.Components
accentColour = value;
stageHint.AccentColour = accentColour;
if (stageHint is IHasAccentColour colouredHitTarget)
colouredHitTarget.AccentColour = accentColour;
}
}
private class DefaultStageHint : StageHint
private class DefaultStageHint : CompositeDrawable, IHasAccentColour
{
private readonly IBindable<ScrollingDirection> direction = new Bindable<ScrollingDirection>();