mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Cleanups.
This commit is contained in:
@ -6,7 +6,6 @@ using osu.Framework.Graphics.Containers;
|
||||
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 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
|
||||
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 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user