mirror of
https://github.com/ppy/osu.git
synced 2024-11-19 08:33:21 +08:00
27 lines
782 B
C#
27 lines
782 B
C#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Rulesets.Timing;
|
|
|
|
namespace osu.Game.Rulesets.Mania.Timing
|
|
{
|
|
internal class BasicScrollingDrawableTimingSection : DrawableTimingSection
|
|
{
|
|
private readonly MultiplierControlPoint timingSection;
|
|
|
|
public BasicScrollingDrawableTimingSection(MultiplierControlPoint timingSection)
|
|
: base(Axes.Y)
|
|
{
|
|
this.timingSection = timingSection;
|
|
}
|
|
|
|
protected override void Update()
|
|
{
|
|
base.Update();
|
|
|
|
Y = (float)(timingSection.StartTime - Time.Current);
|
|
}
|
|
}
|
|
}
|