2017-06-02 17:20:14 +08:00
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
2017-06-02 19:17:44 +08:00
|
|
|
using osu.Game.Rulesets.Timing;
|
|
|
|
|
2017-06-01 14:13:52 +08:00
|
|
|
namespace osu.Game.Rulesets.Mania.Timing.Drawables
|
|
|
|
{
|
2017-06-07 18:09:51 +08:00
|
|
|
/// <summary>
|
|
|
|
/// A basic timing change which scrolls along with a timing change.
|
|
|
|
/// </summary>
|
|
|
|
public class DrawableManiaScrollingTimingChange : DrawableManiaTimingChange
|
2017-06-01 14:13:52 +08:00
|
|
|
{
|
2017-06-07 18:09:51 +08:00
|
|
|
public DrawableManiaScrollingTimingChange(TimingChange timingChange)
|
2017-06-01 14:13:52 +08:00
|
|
|
: base(timingChange)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
protected override void Update()
|
|
|
|
{
|
|
|
|
base.Update();
|
|
|
|
|
|
|
|
Content.Y = (float)(TimingChange.Time - Time.Current);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|