mirror of https://github.com/ppy/osu
do not move timeline when EndPlacement
This commit is contained in:
parent
9c4ae768f1
commit
344015a6e6
|
@ -6,6 +6,7 @@
|
|||
using System.Collections.Generic;
|
||||
using osu.Game.Rulesets.Edit;
|
||||
using osu.Game.Rulesets.Edit.Tools;
|
||||
using osu.Game.Rulesets.Objects;
|
||||
using osu.Game.Rulesets.Taiko.Objects;
|
||||
using osu.Game.Screens.Edit.Compose.Components;
|
||||
|
||||
|
@ -18,6 +19,16 @@ public TaikoHitObjectComposer(TaikoRuleset ruleset)
|
|||
{
|
||||
}
|
||||
|
||||
public override void EndPlacement(HitObject hitObject, bool commit)
|
||||
{
|
||||
EditorBeatmap.PlacementObject.Value = null;
|
||||
|
||||
if (commit)
|
||||
{
|
||||
EditorBeatmap.Add(hitObject);
|
||||
}
|
||||
}
|
||||
|
||||
protected override IReadOnlyList<HitObjectCompositionTool> CompositionTools => new HitObjectCompositionTool[]
|
||||
{
|
||||
new HitCompositionTool(),
|
||||
|
|
Loading…
Reference in New Issue