1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:17:23 +08:00

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>();

View File

@ -1,14 +0,0 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics.Containers;
using osu.Game.Graphics;
using osuTK.Graphics;
namespace osu.Game.Rulesets.Mania.UI.Components
{
public abstract class StageHint : CompositeDrawable, IHasAccentColour
{
public virtual Color4 AccentColour { get; set; }
}
}