2023-09-20 14:28:13 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using osu.Framework.Bindables;
|
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
using osu.Game.Configuration;
|
|
|
|
using osu.Game.Rulesets.Mods;
|
|
|
|
using osu.Game.Rulesets.Taiko.UI;
|
2024-10-25 16:17:19 +08:00
|
|
|
using osu.Game.Rulesets.UI;
|
2023-09-20 14:28:13 +08:00
|
|
|
using osu.Game.Rulesets.UI.Scrolling;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Edit
|
|
|
|
{
|
|
|
|
public partial class DrawableTaikoEditorRuleset : DrawableTaikoRuleset, ISupportConstantAlgorithmToggle
|
|
|
|
{
|
2023-10-06 15:51:24 +08:00
|
|
|
public BindableBool ShowSpeedChanges { get; } = new BindableBool();
|
2023-09-20 14:28:13 +08:00
|
|
|
|
|
|
|
public DrawableTaikoEditorRuleset(Ruleset ruleset, IBeatmap beatmap, IReadOnlyList<Mod> mods)
|
|
|
|
: base(ruleset, beatmap, mods)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2024-10-25 16:17:19 +08:00
|
|
|
protected override Playfield CreatePlayfield() => new TaikoEditorPlayfield();
|
|
|
|
|
2023-09-20 14:28:13 +08:00
|
|
|
protected override void LoadComplete()
|
|
|
|
{
|
|
|
|
base.LoadComplete();
|
|
|
|
|
|
|
|
ShowSpeedChanges.BindValueChanged(showChanges => VisualisationMethod = showChanges.NewValue ? ScrollVisualisationMethod.Overlapping : ScrollVisualisationMethod.Constant, true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|