1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

do not move timeline when EndPlacement

This commit is contained in:
cdwcgt 2022-09-27 20:12:40 +09:00
parent 9c4ae768f1
commit 344015a6e6
No known key found for this signature in database
GPG Key ID: 144396D01095C3A2

View File

@ -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 @@ namespace osu.Game.Rulesets.Taiko.Edit
{
}
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(),