mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:52:53 +08:00
Fix post-merge issues
This commit is contained in:
parent
ded2644df8
commit
604b0fa20a
@ -16,13 +16,9 @@ namespace osu.Game.Rulesets.Osu.Edit.Layers.Selection.Overlays
|
||||
{
|
||||
private readonly SliderBody body;
|
||||
|
||||
private readonly DrawableSlider hitObject;
|
||||
|
||||
public SliderOverlay(DrawableSlider slider)
|
||||
: base(slider)
|
||||
{
|
||||
hitObject = slider;
|
||||
|
||||
var obj = (Slider)slider.HitObject;
|
||||
|
||||
InternalChildren = new Drawable[]
|
||||
@ -48,8 +44,8 @@ namespace osu.Game.Rulesets.Osu.Edit.Layers.Selection.Overlays
|
||||
{
|
||||
base.Update();
|
||||
|
||||
hitObject.GetCurrentProgress(out int span, out double progress);
|
||||
body.UpdateProgress(progress, span);
|
||||
// Need to cause one update
|
||||
body.UpdateProgress(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -157,19 +157,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Finds the progress along the slider at the current time.
|
||||
/// </summary>
|
||||
/// <param name="span">The current span.</param>
|
||||
/// <param name="progress">The current progress in the current span.</param>
|
||||
public void GetCurrentProgress(out int span, out double progress)
|
||||
{
|
||||
double offset = MathHelper.Clamp((Time.Current - slider.StartTime) / slider.Duration, 0, 1);
|
||||
|
||||
span = slider.SpanAt(offset);
|
||||
progress = slider.ProgressAt(offset);
|
||||
}
|
||||
|
||||
public Drawable ProxiedLayer => HeadCircle.ApproachCircle;
|
||||
|
||||
public override bool ReceiveMouseInputAt(Vector2 screenSpacePos) => Body.ReceiveMouseInputAt(screenSpacePos);
|
||||
|
Loading…
Reference in New Issue
Block a user