Display difficulty and sample control points associated with hitobjects

This commit is contained in:
Dean Herbert
2021-09-10 13:44:39 +09:00
parent a7ae3cc03e
commit 6015b5037a
4 changed files with 114 additions and 63 deletions

View File

@ -2,11 +2,12 @@
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Bindables;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps.ControlPoints;
namespace osu.Game.Screens.Edit.Compose.Components.Timeline
{
public class DifficultyPointPiece : TopPointPiece
public class DifficultyPointPiece : HitObjectPointPiece
{
private readonly BindableNumber<double> speedMultiplier;
@ -14,13 +15,12 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
: base(point)
{
speedMultiplier = point.SliderVelocityBindable.GetBoundCopy();
Y = Height;
}
protected override void LoadComplete()
{
base.LoadComplete();
speedMultiplier.BindValueChanged(multiplier => Label.Text = $"{multiplier.NewValue:n2}x", true);
}
}