mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Add adjustable clock to testcase.
This commit is contained in:
@ -5,6 +5,7 @@ using osu.Framework.Graphics;
|
|||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.MathUtils;
|
using osu.Framework.MathUtils;
|
||||||
using osu.Framework.Testing;
|
using osu.Framework.Testing;
|
||||||
|
using osu.Framework.Timing;
|
||||||
using osu.Game.Modes.Objects.Drawables;
|
using osu.Game.Modes.Objects.Drawables;
|
||||||
using osu.Game.Modes.Taiko.Judgements;
|
using osu.Game.Modes.Taiko.Judgements;
|
||||||
using osu.Game.Modes.Taiko.Objects;
|
using osu.Game.Modes.Taiko.Objects;
|
||||||
@ -37,8 +38,12 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
AddStep("Add bar line", () => addBarLine(false));
|
AddStep("Add bar line", () => addBarLine(false));
|
||||||
AddStep("Add major bar line", () => addBarLine(true));
|
AddStep("Add major bar line", () => addBarLine(true));
|
||||||
|
|
||||||
|
|
||||||
|
var rateAdjustClock = new StopwatchClock(true) { Rate = 1 };
|
||||||
|
|
||||||
Add(new Container
|
Add(new Container
|
||||||
{
|
{
|
||||||
|
Clock = new FramedClock(rateAdjustClock),
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Y = 200,
|
Y = 200,
|
||||||
Children = new[]
|
Children = new[]
|
||||||
|
Reference in New Issue
Block a user