mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Display difficulty and sample control points associated with hitobjects
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user