mirror of
https://github.com/ppy/osu.git
synced 2024-11-08 10:47:24 +08:00
Advance editor clock after a snapped placement (#6754)
Advance editor clock after a snapped placement
This commit is contained in:
commit
b1b354c420
@ -40,6 +40,9 @@ namespace osu.Game.Rulesets.Edit
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
protected IFrameBasedClock EditorClock { get; private set; }
|
protected IFrameBasedClock EditorClock { get; private set; }
|
||||||
|
|
||||||
|
[Resolved]
|
||||||
|
private IAdjustableClock adjustableClock { get; set; }
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private BindableBeatDivisor beatDivisor { get; set; }
|
private BindableBeatDivisor beatDivisor { get; set; }
|
||||||
|
|
||||||
@ -256,6 +259,9 @@ namespace osu.Game.Rulesets.Edit
|
|||||||
public void EndPlacement(HitObject hitObject)
|
public void EndPlacement(HitObject hitObject)
|
||||||
{
|
{
|
||||||
EditorBeatmap.Add(hitObject);
|
EditorBeatmap.Add(hitObject);
|
||||||
|
|
||||||
|
adjustableClock.Seek(hitObject.StartTime);
|
||||||
|
|
||||||
showGridFor(Enumerable.Empty<HitObject>());
|
showGridFor(Enumerable.Empty<HitObject>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user