Cleanups.

This commit is contained in:
smoogipooo 2017-04-02 02:06:58 +09:00
parent 38bbf2ac77
commit 2510a9fd32
2 changed files with 5 additions and 10 deletions

View File

@ -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();

View File

@ -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);
}
}
}