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
1 changed files with 11 additions and 0 deletions

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 @@ 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(),