mirror of https://github.com/ppy/osu
Cleanups.
This commit is contained in:
parent
38bbf2ac77
commit
2510a9fd32
|
@ -6,7 +6,6 @@
|
|||
using osu.Framework.Graphics.Primitives;
|
||||
using osu.Framework.MathUtils;
|
||||
using osu.Framework.Testing;
|
||||
using osu.Framework.Timing;
|
||||
using osu.Game.Modes.Objects.Drawables;
|
||||
using osu.Game.Modes.Taiko.Judgements;
|
||||
using osu.Game.Modes.Taiko.Objects;
|
||||
|
@ -21,11 +20,6 @@ internal class TestCaseTaikoPlayfield : TestCase
|
|||
|
||||
private TaikoPlayfield playfield;
|
||||
|
||||
public TestCaseTaikoPlayfield()
|
||||
{
|
||||
Clock = new FramedClock();
|
||||
}
|
||||
|
||||
public override void Reset()
|
||||
{
|
||||
base.Reset();
|
||||
|
|
|
@ -14,12 +14,12 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable
|
|||
public class DrawableBarLine : Container
|
||||
{
|
||||
/// <summary>
|
||||
/// The line.
|
||||
/// The visual line tracker.
|
||||
/// </summary>
|
||||
protected Box Tracker;
|
||||
|
||||
/// <summary>
|
||||
/// The
|
||||
/// The bar line.
|
||||
/// </summary>
|
||||
protected readonly BarLine BarLine;
|
||||
|
||||
|
@ -61,12 +61,13 @@ protected override void LoadComplete()
|
|||
FadeOut(100 * BarLine.PreEmpt / 1000);
|
||||
}
|
||||
|
||||
private void moveToTimeOffset(double time) => MoveToX((float)((BarLine.StartTime - time) / BarLine.PreEmpt));
|
||||
private void updateScrollPosition(double time) => MoveToX((float)((BarLine.StartTime - time) / BarLine.PreEmpt));
|
||||
|
||||
protected override void Update()
|
||||
{
|
||||
base.Update();
|
||||
moveToTimeOffset(Time.Current);
|
||||
|
||||
updateScrollPosition(Time.Current);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue