mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 15:52:54 +08:00
Keep distance spacing reset to one on test scenes with slider snapping for now
This commit is contained in:
parent
bfc6bfc91b
commit
a5defbe496
@ -3,11 +3,9 @@
|
||||
|
||||
using System.Linq;
|
||||
using NUnit.Framework;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Testing;
|
||||
using osu.Framework.Utils;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Rulesets.Edit;
|
||||
using osu.Game.Rulesets.Osu.Objects;
|
||||
using osu.Game.Rulesets.Osu.UI;
|
||||
using osu.Game.Tests.Beatmaps;
|
||||
@ -21,18 +19,16 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
|
||||
{
|
||||
private OsuPlayfield playfield;
|
||||
|
||||
protected override IBeatmap CreateBeatmap(RulesetInfo ruleset) => new TestBeatmap(Ruleset.Value, false);
|
||||
protected override IBeatmap CreateBeatmap(RulesetInfo ruleset) => new TestBeatmap(Ruleset.Value, false)
|
||||
{
|
||||
BeatmapInfo = { DistanceSpacing = 1 }
|
||||
};
|
||||
|
||||
public override void SetUpSteps()
|
||||
{
|
||||
base.SetUpSteps();
|
||||
AddStep("get playfield", () => playfield = Editor.ChildrenOfType<OsuPlayfield>().First());
|
||||
AddStep("seek to first control point", () => EditorClock.Seek(Beatmap.Value.Beatmap.ControlPointInfo.TimingPoints.First().Time));
|
||||
AddStep("set distance spacing to 1", () =>
|
||||
{
|
||||
var distanceSpacing = (BindableDouble)Editor.ChildrenOfType<IDistanceSnapProvider>().Single().DistanceSpacingMultiplier;
|
||||
distanceSpacing.Value = 1;
|
||||
});
|
||||
}
|
||||
|
||||
[TestCase(true)]
|
||||
|
@ -4,14 +4,12 @@
|
||||
using System.Linq;
|
||||
using NUnit.Framework;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Input.Events;
|
||||
using osu.Framework.Testing;
|
||||
using osu.Framework.Utils;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Beatmaps.ControlPoints;
|
||||
using osu.Game.Input.Bindings;
|
||||
using osu.Game.Rulesets.Edit;
|
||||
using osu.Game.Rulesets.Objects;
|
||||
using osu.Game.Rulesets.Osu.Edit;
|
||||
using osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components;
|
||||
@ -38,7 +36,8 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
|
||||
controlPointInfo.Add(0, new TimingControlPoint { BeatLength = beat_length });
|
||||
return new TestBeatmap(ruleset, false)
|
||||
{
|
||||
ControlPointInfo = controlPointInfo
|
||||
ControlPointInfo = controlPointInfo,
|
||||
BeatmapInfo = { DistanceSpacing = 1 },
|
||||
};
|
||||
}
|
||||
|
||||
@ -67,11 +66,6 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
|
||||
var beatDivisor = Editor.Dependencies.Get<BindableBeatDivisor>();
|
||||
beatDivisor.Value = 1;
|
||||
});
|
||||
AddStep("set distance spacing to 1", () =>
|
||||
{
|
||||
var distanceSpacing = (BindableDouble)Editor.ChildrenOfType<IDistanceSnapProvider>().Single().DistanceSpacingMultiplier;
|
||||
distanceSpacing.Value = 1;
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
Loading…
Reference in New Issue
Block a user